@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:400;font-display:swap;src:url(../media/53e45098eac42afb-s.p.0l2qk94b1u89y.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:400;font-display:swap;src:url(../media/85ea1b3aadcead52-s.01rdcbu-77uoy.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:400;font-display:swap;src:url(../media/3c285486269019b7-s.p.0sn2213rkw2e_.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:500;font-display:swap;src:url(../media/625a092f804baad3-s.p.0mrp_qm_8jqq_.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:500;font-display:swap;src:url(../media/6afabefbb32d7517-s.05-22z7vt.jl1.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:500;font-display:swap;src:url(../media/a4f4f75ad654963f-s.p.0h6jagi-ln9qy.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:600;font-display:swap;src:url(../media/a3bcb02a0e9e5d11-s.p.0p40-daftjh_g.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:600;font-display:swap;src:url(../media/b35fd19aef91b293-s.07en.a1_ufzzv.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:600;font-display:swap;src:url(../media/8f46d218c8f79e34-s.p.0xhl7b6zs4.~j.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:700;font-display:swap;src:url(../media/8ffc259da9d23054-s.p.0b_.2~bprftx..woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:700;font-display:swap;src:url(../media/9e486ba39c38fb8a-s.0qxf2_hlpbci0.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:700;font-display:swap;src:url(../media/6f42e0a3b0519c4d-s.p.0czffigx~77c..woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:800;font-display:swap;src:url(../media/fcf129058e6e31f2-s.p.0k.rt6-fab6y0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:800;font-display:swap;src:url(../media/7b74840ea7c05e95-s.08-6qa~ryw15i.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:800;font-display:swap;src:url(../media/3eca85881bcfa204-s.p.09gf3ff1ir7gl.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Be Vietnam Pro Fallback;src:local(Arial);ascent-override:90.61%;descent-override:24.01%;line-gap-override:0.0%;size-adjust:110.36%}.be_vietnam_pro_5dfef8b8-module__-ZhM-q__className{font-family:Be Vietnam Pro,Be Vietnam Pro Fallback;font-style:normal}.be_vietnam_pro_5dfef8b8-module__-ZhM-q__variable{--font-be-vietnam:"Be Vietnam Pro", "Be Vietnam Pro Fallback"}
:root{--bg:#c24642;--panel:#fff;--border:#121212;--field-border:#cbd5e1;--muted:#64748b;--soft:#f8fafc}*,:before,:after{box-sizing:border-box;word-break:break-word;overflow-wrap:break-word;margin:0;padding:0}html,body{background:var(--bg);color:#111;width:100%;max-width:100%;min-height:100%;font-family:var(--font-be-vietnam), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative;overflow-x:hidden}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit;font-size:16px}.page-shell{width:100%;max-width:100%;min-height:100vh;padding:8px 10px 20px;position:relative;overflow-x:hidden}@media (min-width:768px){.page-shell{padding:14px 16px 28px}}@media (min-width:1024px){.page-shell:before,.page-shell:after{content:"";pointer-events:none;z-index:0;border-radius:999px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.page-shell:before{border:12px solid #ffffff57;width:560px;height:560px}.page-shell:after{border:12px solid #fff3;width:360px;height:360px}}.simple-layout{z-index:1;width:100%;max-width:1380px;margin:0 auto;position:relative}.single-column-layout{justify-content:center;width:100%;display:flex}.single-column-layout .left-panel{width:100%;max-width:480px;margin:0 auto}.two-column-layout{flex-direction:column;gap:12px;width:100%;display:flex}@media (min-width:1024px){.two-column-layout{grid-template-columns:380px minmax(0,1fr);align-items:start;gap:18px;display:grid}}.panel-simple,.preview-simple,.analysis-card{background:var(--panel);border:2px solid var(--border);border-radius:14px;width:100%;max-width:100%;box-shadow:0 4px 12px #00000014}.left-panel,.right-panel{padding:14px}@media (min-width:768px){.left-panel,.right-panel{padding:16px 18px}}.panel-simple h1,.panel-simple h2{text-align:center;color:#0f172a;letter-spacing:-.01em;margin:0 0 10px;font-size:1.15rem;font-weight:800;line-height:1.2}.simple-form{flex-direction:column;gap:9px;width:100%;display:flex}.field-list{flex-direction:column;gap:8px;width:100%;display:flex}.field-row{flex-direction:column;gap:4px;width:100%;display:flex}.field-label{color:#1e293b;font-size:.88rem;font-weight:700}.field-row input,.field-row select{box-sizing:border-box;border:1.5px solid var(--field-border);color:#0f172a;background:#fff;border-radius:8px;outline:none;width:100%;min-width:0;max-width:100%;height:42px;padding:0 12px;font-size:1rem;transition:border-color .2s,box-shadow .2s}.time-row{width:100%!important;min-width:0!important;max-width:100%!important}input[type=time],.time-input{text-align:center;appearance:none;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;display:block!important}input[type=time]::-webkit-date-and-time-value{text-align:center;height:100%;line-height:44px}.field-row input:focus,.field-row select:focus{border-color:#0f172a;box-shadow:0 0 0 3px #0f172a1a}.field-group{grid-template-columns:1fr 1fr;gap:10px;width:100%;display:grid}.field-group.three-cols{grid-template-columns:1fr 1fr 1fr;gap:6px;width:100%;display:grid}.field-group.three-cols .field-row{flex-direction:column;gap:2px;display:flex}.field-group.three-cols .field-label{font-size:.82rem}.field-group.three-cols input{text-align:center;padding:0 6px}.check-row{color:#334155;cursor:pointer;align-items:center;gap:8px;padding:4px 0;font-size:.92rem;font-weight:600;display:flex}.check-row input[type=checkbox]{cursor:pointer;accent-color:#0f172a;width:18px;height:18px}.error-box{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:0;padding:10px 12px;font-size:.9rem;font-weight:600}.submit-row{width:100%;margin-top:4px;display:flex}.submit-row button{color:#fff;cursor:pointer;text-transform:uppercase;letter-spacing:.02em;background:#0f172a;border:none;border-radius:9px;width:100%;height:44px;font-size:1rem;font-weight:800;transition:background .2s,transform .1s}.submit-row button:hover{background:#1e293b}.submit-row button:active{transform:scale(.98)}.submit-row button:disabled{opacity:.7;cursor:wait}.preview-toolbar{flex-direction:column;gap:10px;width:100%;margin-bottom:12px;display:flex}@media (min-width:640px){.preview-toolbar{flex-direction:row;justify-content:space-between;align-items:center;gap:16px}}.toolbar-title-group{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.preview-toolbar h2{color:#0f172a;margin:0;font-size:1.3rem;font-weight:800}.user-badge{color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:16px;padding:3px 8px;font-size:.8rem;font-weight:600}.toolbar-actions{gap:8px;width:100%;display:flex}@media (min-width:640px){.toolbar-actions{width:auto}}.action-btn{cursor:pointer;white-space:nowrap;border:none;border-radius:8px;justify-content:center;align-items:center;gap:6px;height:40px;padding:0 14px;font-size:.88rem;font-weight:700;transition:background .2s,transform .1s;display:inline-flex}.action-btn:active{transform:scale(.97)}.zoom-btn{color:#fff;background:#3b82f6}.zoom-btn:hover{background:#2563eb}.download-link{color:#fff;background:#059669;width:100%}@media (min-width:640px){.download-link{width:auto}}.download-link:hover{background:#047857}.preview-frame{background:#fff;border:1.5px solid #0f172a;border-radius:8px;width:100%;padding:4px;position:relative;overflow:hidden}.preview-frame.interactive-frame{cursor:zoom-in;-webkit-user-select:none;user-select:none;transition:transform .15s,box-shadow .15s}.preview-frame.interactive-frame:hover{box-shadow:0 6px 18px #0000001f}.preview-frame.interactive-frame:active{transform:scale(.995)}.preview-zoom-badge{-webkit-backdrop-filter:blur(6px);color:#fff;pointer-events:none;background:#0f172ad1;border:1px solid #ffffff40;border-radius:999px;padding:4px 9px;font-size:.72rem;font-weight:600;position:absolute;bottom:10px;right:10px;box-shadow:0 2px 8px #0003}.preview-image{object-fit:contain;width:100%;max-width:100%;height:auto;display:block}.image-hint{text-align:center;color:var(--muted);margin:8px 0 0;font-size:.82rem;font-style:italic}.chart-zoom-modal{z-index:99999;justify-content:center;align-items:center;width:100vw;height:100vh;padding:10px;animation:.2s ease-out fadeInModal;display:flex;position:fixed;top:0;left:0}@keyframes fadeInModal{0%{opacity:0}to{opacity:1}}.chart-zoom-backdrop{-webkit-backdrop-filter:blur(8px);background:#0a0505e0;position:absolute;inset:0}.chart-zoom-dialog{z-index:100000;background:#fff;border:1px solid #f5d06159;border-radius:16px;flex-direction:column;width:100%;max-width:1080px;max-height:92vh;display:flex;position:relative;overflow:hidden;box-shadow:0 24px 48px #00000080}.zoom-dialog-header{color:#fff;background:#0f172a;border-bottom:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;display:flex}.zoom-title-info{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.zoom-title-info h4{color:#fff2c2;margin:0;font-size:1.05rem;font-weight:800}.zoom-meta{color:#f5d061;font-size:.8rem;font-weight:500}.zoom-dialog-actions{flex-shrink:0;gap:8px;display:flex}.zoom-btn-action{cursor:pointer;border:none;border-radius:8px;padding:6px 14px;font-size:.84rem;font-weight:700;transition:all .15s}.zoom-btn-action:active{transform:scale(.96)}.zoom-btn-action.dl{color:#fff;background:#059669}.zoom-btn-action.dl:hover{background:#047857}.zoom-btn-action.close{color:#fff;background:#ffffff26;border:1px solid #fff3}.zoom-btn-action.close:hover{background:#ffffff40}.zoom-scroll-area{-webkit-overflow-scrolling:touch;background:#1e1212;justify-content:center;align-items:flex-start;width:100%;padding:16px;display:flex;overflow:auto}.zoom-full-img{background:#fff;border-radius:8px;max-width:100%;height:auto;box-shadow:0 8px 24px #0006}@media (max-width:768px){.chart-zoom-modal{padding:6px}.chart-zoom-dialog{border-radius:12px;max-height:96vh}.zoom-dialog-header{padding:10px 14px}.zoom-title-info h4{font-size:.92rem}.zoom-meta{font-size:.72rem}.zoom-scroll-area{padding:8px}}.analysis-section{width:100%;margin-top:16px}.analysis-card{padding:14px 12px}@media (min-width:768px){.analysis-card{padding:20px 24px}}.analysis-header{border-bottom:2px solid #f1f5f9;margin-bottom:14px;padding-bottom:10px}.header-title h3{color:#0f172a;letter-spacing:-.01em;margin:0 0 2px;font-size:1.15rem;font-weight:800}@media (min-width:768px){.header-title h3{font-size:1.35rem}}.header-subtitle{color:#64748b;margin:0;font-size:.85rem}.palace-tabs-container{-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap;gap:8px;margin-bottom:14px;padding:4px 2px 10px;display:flex;overflow-x:auto}.palace-tabs-container::-webkit-scrollbar{display:none}@media (min-width:768px){.palace-tabs-container{grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:18px;padding:0;display:grid;overflow-x:visible}}.palace-tab-btn{cursor:pointer;text-align:center;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:10px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:2px;min-width:92px;padding:8px 6px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}@media (min-width:768px){.palace-tab-btn{border-radius:12px;min-width:auto;padding:10px 8px}}.palace-tab-btn:hover{background:#f1f5f9;border-color:#cbd5e1}.palace-tab-btn.active{color:#fff;background:#0f172a;border-color:#0f172a;box-shadow:0 4px 10px #0f172a40}.tab-main-info{flex-direction:column;align-items:center;display:flex}.tab-palace-name{font-size:.88rem;font-weight:800;line-height:1.2}@media (min-width:768px){.tab-palace-name{font-size:.95rem}}.palace-tab-btn.active .tab-palace-name{color:#fff}.tab-canchi{color:#64748b;font-size:.74rem;font-weight:600}.palace-tab-btn.active .tab-canchi{color:#94a3b8}.tab-badges{gap:3px;margin-top:2px;display:flex}.mini-badge{border-radius:4px;padding:1px 4px;font-size:.62rem;font-weight:800;line-height:1.2}.mini-badge.sinh-nien{color:#fff;background:#dc2626}.mini-badge.tu-hoa{color:#fff;background:#d97706}.palace-detail-content{flex-direction:column;gap:14px;width:100%;display:flex}.palace-overview-banner{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:10px;width:100%;padding:12px 14px;display:flex}@media (min-width:768px){.palace-overview-banner{border-radius:12px;flex-direction:row;justify-content:space-between;align-items:center;padding:14px 18px}}.overview-left h4{color:#0f172a;margin:0 0 4px;font-size:1.1rem;font-weight:800}.canchi-tag{color:#b91c1c;font-size:.95rem}.limit-text{color:#475569;margin:0;font-size:.85rem;line-height:1.4}.overview-stars{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.stars-label{color:#64748b;font-size:.82rem;font-weight:700}.star-tag-list{flex-wrap:wrap;gap:4px;display:flex}.star-tag{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:6px;align-items:center;gap:4px;padding:2px 6px;font-size:.82rem;font-weight:700;display:inline-flex}.star-badge{border-radius:3px;padding:1px 3px;font-size:.68rem;font-weight:800}.star-badge.sn{color:#b91c1c;background:#fee2e2}.star-badge.th{color:#b45309;background:#fef3c7}.chain-section{border-radius:14px;width:100%;margin-bottom:16px;padding:14px}@media (min-width:768px){.chain-section{border-radius:16px;margin-bottom:20px;padding:18px 20px}}.chain-section.ky-chain-section{background:#fffbfb;border:1.5px solid #fecaca}.chain-section.loc-chain-section{background:#f9fdfa;border:1.5px solid #a7f3d0}.chain-section-header{border-bottom:1.5px solid #0000000f;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;padding-bottom:10px;display:flex}.chain-header-title{align-items:center;gap:8px;display:flex}.chain-header-title h4{color:#0f172a;margin:0;font-size:1.05rem;font-weight:800}@media (min-width:768px){.chain-header-title h4{font-size:1.18rem}}.chain-timeline{flex-direction:column;gap:12px;width:100%;display:flex}.chain-step-wrapper{flex-direction:column;gap:10px;width:100%;display:flex}.chain-step-card{background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:10px;width:100%;padding:14px;display:flex;box-shadow:0 2px 5px #00000008}@media (min-width:768px){.chain-step-card{border-radius:14px;padding:16px 18px}}.chain-step-card.ky-card{border-left:5px solid #dc2626}.chain-step-card.loc-card{border-left:5px solid #059669}.badge-step-index{color:#991b1b;letter-spacing:.02em;white-space:nowrap;background:#fee2e2;border-radius:5px;padding:2px 7px;font-size:.72rem;font-weight:800}.badge-step-index.loc{color:#065f46;background:#d1fae5}.step-narrative-box{color:#334155;background:#f8fafc;border-left:3px solid #64748b;border-radius:0 6px 6px 0;padding:8px 12px;font-size:.9rem;font-style:italic;line-height:1.55}.step-narrative-box.loc-narrative{color:#166534;background:#f0fdf4;border-left-color:#10b981}.resonance-alert-box{border-radius:8px;flex-direction:column;gap:4px;padding:8px 12px;font-size:.85rem;font-weight:700;line-height:1.4;display:flex}.resonance-alert-box.ky-alert{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.resonance-alert-box.loc-alert{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}.tuong-box-label{color:#64748b;text-transform:uppercase;letter-spacing:.03em;margin-bottom:6px;font-size:.82rem;font-weight:800}.chain-flow-connector{text-align:center;border-radius:20px;justify-content:center;align-items:center;gap:6px;max-width:96%;margin:2px auto;padding:6px 12px;font-size:.82rem;font-weight:700;display:flex}.chain-flow-connector.ky-connector{color:#991b1b;background:#fee2e2;border:1px dashed #f87171}.chain-flow-connector.loc-connector{color:#065f46;background:#d1fae5;border:1px dashed #34d399}.chain-flow-end{text-align:center;border-radius:20px;justify-content:center;align-items:center;gap:6px;max-width:96%;margin:4px auto;padding:8px 14px;font-size:.85rem;font-weight:800;display:flex}.chain-flow-end.ky-end{color:#991b1b;background:#fef2f2;border:1.5px solid #f87171}.chain-flow-end.loc-end{color:#065f46;background:#f0fdf4;border:1.5px solid #34d399}.connector-arrow{font-size:.95rem}.chain-summary-box{border-radius:12px;margin-top:14px;padding:12px 14px}@media (min-width:768px){.chain-summary-box{border-radius:14px;padding:16px 18px}}.chain-summary-box.ky-summary{color:#7f1d1d;background:#fef2f2;border:1.5px solid #f87171}.chain-summary-box.loc-summary{color:#064e3b;background:#f0fdf4;border:1.5px solid #34d399}.summary-title-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.summary-title{letter-spacing:.02em;font-size:.95rem;font-weight:800}.badge-ai-powered{color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6);border-radius:12px;align-items:center;gap:4px;padding:3px 10px;font-size:.75rem;font-weight:700;animation:.4s ease-in-out fadeIn;display:inline-flex;box-shadow:0 1px 3px #6366f14d}@keyframes fadeIn{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}.summary-headline{color:#991b1b;border-bottom:1px dashed #991b1b40;margin-bottom:8px;padding-bottom:6px;font-size:1rem;font-weight:800;line-height:1.45}.summary-headline.loc{color:#065f46;border-bottom-color:#065f4640}.summary-body{color:#334155;margin:0 0 10px;font-size:.93rem;font-weight:500;line-height:1.65}@media (min-width:768px){.summary-body{font-size:.96rem}}.single-palace-fly-section{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-top:18px;padding:16px;box-shadow:0 1px 3px #0000000d}.section-title-bar{border-bottom:1.5px solid #f1f5f9;align-items:center;gap:8px;margin-bottom:14px;padding-bottom:10px;display:flex}.section-title-bar h4{color:#1e293b;letter-spacing:.02em;margin:0;font-size:1rem;font-weight:800}.section-icon{font-size:1.15rem}.dual-summary-container{grid-template-columns:1fr;gap:16px;margin-top:20px;display:grid}@media (min-width:900px){.dual-summary-container{grid-template-columns:1fr 1fr;gap:20px}}.dual-summary-col{border-radius:16px;flex-direction:column;padding:18px;transition:all .25s;display:flex;box-shadow:0 4px 16px #0000000f}@media (min-width:768px){.dual-summary-col{padding:20px}}.dual-summary-col.loc-col{background:linear-gradient(#fff 0%,#f0fdf4 100%);border:2px solid #86efac}.dual-summary-col.loc-col:hover{border-color:#22c55e;box-shadow:0 6px 22px #22c55e26}.dual-summary-col.ky-col{background:linear-gradient(#fff 0%,#fef2f2 100%);border:2px solid #fca5a5}.dual-summary-col.ky-col:hover{border-color:#ef4444;box-shadow:0 6px 22px #ef444426}.dual-col-header{border-bottom:1.5px dashed #00000014;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;padding-bottom:12px;display:flex}.dual-col-title{align-items:center;gap:8px;display:flex}.dual-col-title h4{letter-spacing:.02em;margin:0;font-size:.98rem;font-weight:800}.loc-col .dual-col-title h4{color:#14532d}.ky-col .dual-col-title h4{color:#7f1d1d}.badge-ai-source{border-radius:10px;padding:3px 8px;font-size:.72rem;font-weight:700}.badge-ai-source.loc{color:#15803d;background:#dcfce7;border:1px solid #86efac}.badge-ai-source.ky{color:#b91c1c;background:#fee2e2;border:1px solid #fca5a5}.dual-col-body{flex-direction:column;flex:1;display:flex}.card-ai-wrapper{border-top:1.5px dashed #00000014;width:100%;margin-top:14px;padding-top:12px}.card-ai-trigger{justify-content:center;align-items:center;padding:4px 0 2px;display:flex}.btn-card-ai{cursor:pointer;text-align:center;border:none;border-radius:10px;justify-content:center;align-items:center;padding:9px 18px;font-size:.88rem;font-weight:700;line-height:1.4;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex;box-shadow:0 2px 8px #00000014}.btn-card-ai.loc{color:#fff;background:linear-gradient(135deg,#16a34a,#15803d)}.btn-card-ai.loc:hover{background:linear-gradient(135deg,#15803d,#166534);transform:translateY(-2px);box-shadow:0 4px 12px #16a34a4d}.btn-card-ai.ky{color:#fff;background:linear-gradient(135deg,#dc2626,#b91c1c)}.btn-card-ai.ky:hover{background:linear-gradient(135deg,#b91c1c,#991b1b);transform:translateY(-2px);box-shadow:0 4px 12px #dc26264d}.card-ai-loading{border-radius:10px;justify-content:center;align-items:center;gap:10px;padding:12px;font-size:.88rem;font-weight:600;display:flex}.card-ai-loading.loc{color:#15803d;background:#f0fdf4;border:1px dashed #86efac}.card-ai-loading.ky{color:#b91c1c;background:#fef2f2;border:1px dashed #fca5a5}.card-ai-error{text-align:center;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px;display:flex}.card-ai-error.loc{background:#f0fdf4;border:1px dashed #86efac}.card-ai-error.ky{background:#fef2f2;border:1px dashed #fca5a5}.card-ai-error-text{color:#475569;margin:0;font-size:.88rem;font-weight:600}.card-ai-result{border-radius:12px;flex-direction:column;gap:6px;padding:12px 14px;animation:.3s ease-in-out fadeIn;display:flex}.card-ai-result.loc{background:linear-gradient(#f0fdf4 0%,#dcfce7 100%);border:1.5px solid #86efac}.card-ai-result.ky{background:linear-gradient(#fef2f2 0%,#fee2e2 100%);border:1.5px solid #fca5a5}.card-ai-badge{letter-spacing:.02em;border-radius:6px;align-self:flex-start;padding:2px 8px;font-size:.75rem;font-weight:800;display:inline-block}.card-ai-badge.loc{color:#fff;background:#15803d}.card-ai-badge.ky{color:#fff;background:#b91c1c}.card-ai-text{text-align:justify;margin:0;font-size:.92rem;line-height:1.7}.card-ai-result.loc .card-ai-text{color:#14532d}.card-ai-result.ky .card-ai-text{color:#7f1d1d}.ai-trigger-box{text-align:center;border:1.5px dashed;border-radius:14px;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:140px;padding:40px 16px;display:flex}.ai-trigger-box.loc{background:#fff9;border-color:#22c55e66}.ai-trigger-box.ky{background:#fff9;border-color:#ef444466}.ai-timeout-msg{color:#475569;text-align:center;margin:0 0 12px;font-size:.95rem;font-weight:700;line-height:1.5}.btn-trigger-ai{cursor:pointer;text-align:center;letter-spacing:.01em;border:none;border-radius:12px;justify-content:center;align-items:center;padding:12px 22px;font-size:.95rem;font-weight:700;transition:all .25s cubic-bezier(.4,0,.2,1);display:inline-flex;box-shadow:0 3px 10px #00000014}.btn-trigger-ai.loc{color:#fff;background:linear-gradient(135deg,#16a34a,#15803d)}.btn-trigger-ai.loc:hover{background:linear-gradient(135deg,#15803d,#166534);transform:translateY(-2px);box-shadow:0 6px 16px #16a34a59}.btn-trigger-ai.ky{color:#fff;background:linear-gradient(135deg,#dc2626,#b91c1c)}.btn-trigger-ai.ky:hover{background:linear-gradient(135deg,#b91c1c,#991b1b);transform:translateY(-2px);box-shadow:0 6px 16px #dc262659}.ai-loading-box{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:30px 16px;font-size:.9rem;font-weight:600;display:flex}.ai-loading-box.loc{color:#15803d}.ai-loading-box.ky{color:#b91c1c}.ai-spinner.loc{border:3px solid #dcfce7;border-top-color:#16a34a}.ai-spinner.ky{border:3px solid #fee2e2;border-top-color:#dc2626}.ai-result-wrapper{flex-direction:column;flex:1;display:flex}.ai-content-text.loc{color:#14532d;font-size:.94rem;line-height:1.7}.ai-content-text.ky{color:#7f1d1d;font-size:.94rem;line-height:1.7}.dual-col-actions{border-top:1px dashed #00000014;justify-content:flex-end;align-items:center;gap:8px;margin-top:14px;padding-top:10px;display:flex}.btn-col-action{cursor:pointer;border:1px solid;border-radius:8px;align-items:center;gap:4px;padding:5px 12px;font-size:.8rem;font-weight:700;transition:all .2s;display:inline-flex}.btn-col-action.loc{color:#15803d;background:#f0fdf4;border-color:#86efac}.btn-col-action.loc:hover{background:#dcfce7;border-color:#22c55e}.btn-col-action.ky{color:#b91c1c;background:#fef2f2;border-color:#fca5a5}.btn-col-action.ky:hover{background:#fee2e2;border-color:#ef4444}.ai-paragraph{text-align:justify;margin:0 0 12px;line-height:1.75}.ai-paragraph:last-child{margin-bottom:0}.supplemental-section{border-top:2px dashed #e2e8f0;width:100%;margin-top:16px;padding-top:14px}.supplemental-title h4{color:#0f172a;margin-bottom:12px;font-size:1.02rem;font-weight:800}.interpretation-grid{flex-direction:column;gap:12px;width:100%;display:flex}@media (min-width:768px){.interpretation-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}}.interpretation-card{background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:10px;width:100%;padding:14px;display:flex}@media (min-width:768px){.interpretation-card{border-radius:14px;padding:16px 18px}}.interpretation-card.loc-card{border-top:4px solid #059669}.interpretation-card.ky-card{border-top:4px solid #dc2626}.interpretation-card.quyen-card{border-top:4px solid #d97706}.interpretation-card.khoa-card{border-top:4px solid #2563eb}.chuyen-ky-section{border-top:1.5px dashed #cbd5e1;flex-direction:column;gap:10px;margin-top:14px;padding-top:12px;display:flex}.chuyen-ky-header{flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:4px;display:flex}.chuyen-ky-tag{letter-spacing:.02em;white-space:nowrap;border-radius:6px;padding:2px 8px;font-size:.72rem;font-weight:800}.chuyen-ky-tag.loc{color:#065f46;background:#d1fae5;border:1px solid #a7f3d0}.chuyen-ky-tag.ky{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.chuyen-ky-title{color:#0f172a;margin:0;font-size:.95rem;font-weight:800;line-height:1.4}.meaning-layers-list{flex-direction:column;gap:10px;display:flex}.meaning-layer-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:5px;padding:10px 12px;transition:all .2s;display:flex}.meaning-layer-item:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 2px 6px #0000000a}.layer-item-header{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.layer-badge{letter-spacing:.02em;border-radius:4px;padding:2px 6px;font-size:.68rem;font-weight:800}.layer-badge.loc{color:#fff;background:#059669}.layer-badge.ky{color:#fff;background:#dc2626}.layer-title-text{color:#1e293b;font-size:.88rem;font-weight:800}.layer-subtitle-text{color:#64748b;margin:0;font-size:.8rem;font-style:italic;font-weight:700}.layer-explanation-text{color:#334155;text-align:justify;margin:0;font-size:.88rem;line-height:1.6}.layer-bullets{color:#475569;flex-direction:column;gap:3px;margin:2px 0 0;padding-left:16px;font-size:.84rem;line-height:1.5;display:flex}.reaction-at-b-box,.reaction-at-c-box{border:1.5px solid;border-radius:12px;flex-direction:column;gap:8px;margin-top:8px;padding:12px 14px;animation:.3s ease-in-out fadeIn;display:flex}.reaction-at-b-box.song_loc,.reaction-at-c-box.song_loc{background:linear-gradient(#f0fdf4 0%,#ecfdf5 100%);border-color:#86efac;box-shadow:0 2px 8px #22c55e1f}.reaction-at-b-box.song_ky,.reaction-at-c-box.song_ky{background:linear-gradient(#fef2f2 0%,#fff1f2 100%);border-color:#fca5a5;box-shadow:0 2px 8px #ef44441f}.reaction-header{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.reaction-tag{letter-spacing:.02em;white-space:nowrap;border-radius:6px;padding:2px 8px;font-size:.72rem;font-weight:800}.reaction-tag.song_loc{color:#fff;background:#15803d}.reaction-tag.song_ky{color:#fff;background:#b91c1c}.reaction-title{color:#0f172a;margin:0;font-size:.92rem;font-weight:800}.reaction-explanation{color:#334155;text-align:justify;margin:0;font-size:.88rem;line-height:1.6}.transfer2-container{border-top:1px dashed #0000001f;flex-direction:column;gap:6px;margin-top:6px;padding-top:10px;display:flex}.transfer2-header{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.transfer2-tag{color:#fff;letter-spacing:.02em;background:#0f172a;border-radius:4px;padding:2px 6px;font-size:.68rem;font-weight:800}.transfer2-title{color:#0f172a;font-size:.88rem;font-weight:800}.final-impact-card{background:#fff;border:1px solid #00000014;border-radius:8px;flex-direction:column;gap:4px;padding:8px 10px;display:flex}.final-impact-title{color:#0f172a;margin:0;font-size:.88rem;font-weight:800}.final-impact-text{color:#334155;text-align:justify;margin:0;font-size:.86rem;line-height:1.55}.transfer2-layers{flex-direction:column;gap:8px;margin-top:6px;display:flex}.transfer2-layer-item{background:#ffffffb3;border:1px solid #0000000f;border-radius:8px;padding:8px 10px}.card-header{border-bottom:1px solid #f1f5f9;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:8px;display:flex}.card-header h5{color:#0f172a;margin:0;font-size:.98rem;font-weight:800}@media (min-width:768px){.card-header h5{font-size:1.05rem}}.badge-hoa{letter-spacing:.03em;white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:.72rem;font-weight:800}.badge-hoa.loc{color:#065f46;background:#d1fae5}.badge-hoa.ky{color:#991b1b;background:#fee2e2}.badge-hoa.quyen{color:#92400e;background:#fef3c7}.badge-hoa.khoa{color:#1e40af;background:#dbeafe}.badge-hoa.special{color:#6b21a8;background:#f3e8ff}.badge-hoa.special.sn{color:#9a3412;background:#ffedd5}.badge-hoa.special.sn.loc{color:#15803d;background:#dcfce7}.badge-hoa.special.sn.ky{color:#991b1b;background:#fee2e2}.special-card.sinh-nien.sn-loc-theme{background:#f0fdf4;border-left:4px solid #16a34a}.special-card.sinh-nien.sn-ky-theme{background:#fef2f2;border-left:4px solid #dc2626}.tuong-box{width:100%}.tuong-points{flex-direction:column;gap:8px;width:100%;margin:0;padding-left:16px;display:flex}.tuong-points li{color:#334155;font-size:.92rem;line-height:1.6}@media (min-width:768px){.tuong-points li{font-size:.95rem}}.tuong-points li::marker{color:#64748b}.special-tuong-section{flex-direction:column;gap:10px;width:100%;margin-top:14px;display:flex}@media (min-width:768px){.special-tuong-section{grid-template-columns:1fr 1fr;gap:14px;display:grid}}.special-card{background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:8px;width:100%;padding:12px 14px;display:flex}.special-card.tu-hoa{border-left:4px solid #a855f7}.special-card.sinh-nien{border-left:4px solid #f97316}.toast-simple{color:#fff;z-index:9999;pointer-events:none;white-space:nowrap;text-align:center;background:#0f172af2;border-radius:20px;max-width:90vw;padding:10px 18px;font-size:.9rem;font-weight:600;animation:2s forwards fadeInOut;position:fixed;bottom:30px;left:50%;transform:translate(-50%);box-shadow:0 8px 20px #0000004d}@keyframes fadeInOut{0%{opacity:0;bottom:20px}15%{opacity:1;bottom:30px}85%{opacity:1;bottom:30px}to{opacity:0;bottom:40px}}@media (max-width:767px){.page-shell{padding:8px 6px 30px}.analysis-section{margin-top:14px;padding:0}.analysis-card{border-radius:14px;padding:12px 10px}.analysis-header h3{font-size:1.12rem}.header-subtitle{font-size:.78rem}.palace-tabs-container{gap:6px;padding:2px 2px 8px}.palace-tab-btn{min-width:76px;padding:7px 4px}.tab-palace-name{font-size:.84rem}.tab-canchi{font-size:.7rem}.single-palace-fly-section{border-radius:12px;padding:12px 10px}.section-title-bar h4{font-size:.95rem}.interpretation-card{padding:10px}.card-header h5{font-size:.88rem}.tuong-points{padding-left:12px}.tuong-points li{font-size:.86rem;line-height:1.5}.dual-summary-container{gap:12px;margin-top:14px}.dual-summary-col{border-radius:14px;padding:14px 10px}.dual-col-title h4{font-size:.9rem}.ai-trigger-box{min-height:110px;padding:28px 10px}.btn-trigger-ai{width:100%;padding:11px 14px;font-size:.88rem;line-height:1.35}.ai-content-text.loc,.ai-content-text.ky{font-size:.9rem;line-height:1.65}.ai-paragraph{text-align:left}}.seo-guide-section{z-index:2;content-visibility:auto;contain-intrinsic-size:1px 800px;flex-direction:column;gap:10px;width:100%;max-width:1200px;margin:12px auto 0;display:flex;position:relative}.seo-highlights-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid}.highlight-item{background:#fffffff2;border:1.5px solid #00000014;border-radius:14px;padding:12px 14px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;box-shadow:0 3px 10px #00000012;cursor:default}.highlight-item:hover{transform:translateY(-2px);border-color:#d97706;box-shadow:0 0 0 1px #d97706,0 6px 18px rgba(0,0,0,.12),0 0 14px rgba(217,119,6,.3)}.highlight-icon{margin-bottom:4px;font-size:1.4rem}.highlight-item h5{color:#8b1e1e;margin-bottom:2px;font-size:.92rem;font-weight:700}.highlight-item p{color:#475569;font-size:.8rem;line-height:1.4}.seo-articles-container{flex-direction:column;gap:10px;display:flex}.seo-article-card{background:#fff;border:1px solid #00000014;border-radius:14px;padding:14px 16px;box-shadow:0 4px 14px #00000014;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}.seo-article-card:hover{border-color:rgba(217,119,6,0.4);box-shadow:0 8px 24px rgba(0,0,0,0.12),0 0 14px rgba(217,119,6,0.12);transform:translateY(-2px)}.seo-article-card h2{color:#8b1e1e;border-bottom:1.5px solid #8b1e1e1a;margin-bottom:8px;padding-bottom:6px;font-size:1.08rem;font-weight:800;line-height:1.35}.seo-article-card h3{color:#1e293b;margin:12px 0 8px;font-size:.96rem;font-weight:700}.seo-article-card p{color:#334155;margin-bottom:8px;font-size:.88rem;line-height:1.55}.tu-hoa-explainer-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;margin-top:10px;display:grid}.tu-hoa-box{border:1px solid;border-radius:10px;padding:10px 12px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;cursor:default}.tu-hoa-box:hover{transform:translateY(-2px)}.tu-hoa-box.loc:hover{border-color:#16a34a;box-shadow:0 6px 18px rgba(22,163,74,.25)}.tu-hoa-box.quyen:hover{border-color:#d97706;box-shadow:0 6px 18px rgba(217,119,6,.25)}.tu-hoa-box.khoa:hover{border-color:#2563eb;box-shadow:0 6px 18px rgba(37,99,235,.25)}.tu-hoa-box.ky:hover{border-color:#dc2626;box-shadow:0 6px 18px rgba(220,38,38,.25)}.tu-hoa-box strong{margin-bottom:3px;font-size:.88rem;display:block}.tu-hoa-box p{margin-bottom:0;font-size:.8rem;line-height:1.4}.tu-hoa-box.loc{color:#166534;background:#f0fdf4;border-color:#86efac}.tu-hoa-box.quyen{color:#9a3412;background:#fff7ed;border-color:#fdba74}.tu-hoa-box.khoa{color:#1e40af;background:#eff6ff;border-color:#93c5fd}.tu-hoa-box.ky{color:#991b1b;background:#fef2f2;border-color:#fca5a5}.guide-steps-list{flex-direction:column;gap:8px;margin-top:8px;padding-left:0;list-style:none;display:flex}.guide-steps-list li{background:#f8fafc;border-left:3.5px solid #8b1e1e;border-radius:0 8px 8px 0;padding:10px 14px}.guide-steps-list li strong{color:#1e293b;margin-bottom:3px;font-size:.9rem;display:block}.guide-steps-list li p{color:#475569;margin-bottom:0;font-size:.84rem}.faq-card{padding:14px 16px}.faq-list{flex-direction:column;gap:8px;margin-top:10px;display:flex}.faq-item{border:1px solid #e2e8f0;border-radius:10px;transition:all .2s;overflow:hidden}.faq-item.open{border-color:#cbd5e1;box-shadow:0 3px 10px #0000000d}.faq-question-btn{cursor:pointer;text-align:left;background:#f8fafc;border:none;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 14px;display:flex}.faq-question-btn:hover{background:#f1f5f9}.faq-question-text{color:#0f172a;font-size:.9rem;font-weight:600;line-height:1.35}.faq-toggle-icon{color:#8b1e1e;flex-shrink:0;font-size:1.1rem;font-weight:700}.faq-answer-content{background:#fff;border-top:1px solid #f1f5f9;padding:10px 14px}.faq-answer-content p{color:#475569;margin-bottom:0;font-size:.86rem;line-height:1.55}.seo-footer-bottom{text-align:center;color:#94a3b8;padding:24px 16px;margin-top:36px;border-top:1px solid rgba(255,255,255,0.08);font-size:.85rem;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;line-height:1.6}.seo-footer-bottom p{margin:4px 0;color:#94a3b8;font-size:.85rem;line-height:1.6}.seo-footer-bottom strong{color:#e2e8f0;font-weight:700}.seo-footer-bottom a,.footer-subtext a{color:#fbbf24;text-decoration:none;font-weight:600}.seo-footer-bottom a:hover,.footer-subtext a:hover{text-decoration:underline}.footer-subtext{color:#94a3b8;margin-top:4px;font-size:.85rem;line-height:1.6}@media (max-width:768px){.page-shell{padding:6px 8px 16px}.simple-layout{padding:0}.panel-simple,.preview-simple,.analysis-card{border-radius:12px;padding:12px 10px;box-shadow:0 2px 8px #0000000f}.seo-guide-section{padding-top:10px}.seo-article-card{padding:12px}.seo-article-card h2{font-size:.98rem}.tu-hoa-explainer-grid{grid-template-columns:1fr}}.province-selector-container{margin-top:-2px;position:relative}.province-header-row{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.province-clear-btn{color:#6b7280;cursor:pointer;background:0 0;border:none;padding:2px 6px;font-size:.84rem;font-weight:600;text-decoration:underline}.province-clear-btn:hover{color:#111}.province-input-wrapper{align-items:center;display:flex;position:relative}.province-search-input{border:1.5px solid var(--field-border,#d1d5db);color:#111;background:#fff;border-radius:8px;width:100%;height:46px;padding:0 65px 0 12px;font-size:1rem;transition:all .2s}.province-search-input:focus{border-color:#000;outline:none;box-shadow:0 0 0 3px #0000001a}.province-inline-clear{color:#4b5563;cursor:pointer;background:#e5e7eb;border:none;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;font-size:.75rem;transition:background .15s;display:flex;position:absolute;right:36px}.province-inline-clear:hover{color:#111;background:#d1d5db}.province-toggle-btn{color:#6b7280;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:30px;height:38px;font-size:1.1rem;display:flex;position:absolute;right:6px}.province-dropdown-menu{-webkit-overflow-scrolling:touch;z-index:100;background:#fff;border:1.5px solid #222;border-radius:8px;max-height:230px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 10px 25px -5px #0000002e}.province-dropdown-item{cursor:pointer;border-bottom:1px solid #f3f4f6;justify-content:space-between;align-items:center;min-height:44px;padding:10px 14px;transition:background .15s;display:flex}.province-dropdown-item:last-child{border-bottom:none}.province-dropdown-item:hover,.province-dropdown-item:active{background:#f3f4f6}.province-dropdown-item.active{background:#eff6ff;font-weight:700}.province-dropdown-item .item-main{align-items:baseline;gap:6px;display:flex}.province-dropdown-item .prov-name{color:#111;font-size:.96rem;font-weight:600}.province-dropdown-item .prov-capital{color:#6b7280;font-size:.85rem}.province-dropdown-item .item-coord{color:#9ca3af;font-family:monospace;font-size:.82rem}.province-dropdown-item .item-sub{color:#6b7280;font-size:.82rem;font-weight:400}.province-dropdown-empty{text-align:center;color:#6b7280;padding:14px;font-size:.92rem}.solar-preview-card{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;margin-top:8px;padding:10px 12px;font-size:.88rem;line-height:1.45;transition:all .2s}.solar-preview-card.branch-changed{color:#854d0e;background:#fffbeb;border-color:#fde68a}.solar-preview-card .preview-calc-line{color:inherit;opacity:.9;margin-bottom:4px;font-size:.82rem}.solar-preview-card .preview-result-line{flex-wrap:wrap;align-items:center;gap:8px;font-size:.92rem;display:flex}.solar-preview-card .branch-alert-tag{color:#713f12;background:#fef08a;border-radius:4px;padding:2px 7px;font-size:.8rem;font-weight:700;display:inline-block}@media (max-width:640px){.province-search-input{font-size:16px}.province-dropdown-menu{max-height:200px}.solar-preview-card{font-size:.84rem}}

.card-ai-wrapper,.card-ai-error,.card-ai-trigger,.card-ai-loading,.card-ai-result,.ai-trigger-box,.ai-loading-box,.ai-result-wrapper{display:none!important}

.ai-parse-box{background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%);border:1.5px dashed #d97706;border-radius:10px;padding:10px 12px;margin-bottom:10px;display:flex;flex-direction:column;gap:8px;transition:all .2s ease}
.ai-parse-box.drag-over{background:#fef08a;border-color:#b45309;border-style:solid;box-shadow:0 0 0 3px rgba(217,119,6,.25)}
.ai-parse-header{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.ai-badge{font-size:.76rem;font-weight:800;color:#92400e;letter-spacing:.02em}
.ai-model-tag{font-size:.68rem;font-weight:700;color:#b45309;background:rgba(217,119,6,.14);padding:2px 7px;border-radius:999px}
.ai-textarea{width:100%;box-sizing:border-box;border:1.5px solid #fcd34d;border-radius:8px;padding:8px 10px;font-size:.88rem;line-height:1.45;color:#0f172a;background:#fff;resize:vertical;min-height:54px;outline:none;transition:border-color .2s,box-shadow .2s}
.ai-textarea:focus{border-color:#d97706;box-shadow:0 0 0 3px rgba(217,119,6,.18)}
.ai-textarea::placeholder{color:#94a3b8;font-size:.82rem}
.ai-img-preview{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid #f59e0b;border-radius:8px;padding:6px 10px}
.ai-thumb-wrap{width:44px;height:44px;border-radius:6px;overflow:hidden;border:1px solid #e2e8f0;flex-shrink:0;background:#f8fafc;display:flex;align-items:center;justify-content:center}
.ai-thumb-img{width:100%;height:100%;object-fit:cover}
.ai-thumb-meta{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
.ai-thumb-name{font-size:.8rem;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-thumb-sub{font-size:.72rem;color:#059669;font-weight:600}
.ai-remove-img{background:#fee2e2;color:#b91c1c;border:none;border-radius:6px;width:26px;height:26px;font-size:.8rem;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s}
.ai-remove-img:hover{background:#fecaca}
.ai-parse-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;width:100%}
.ai-upload-btn{height:38px;border:1.5px solid #d97706;border-radius:8px;background:#fff;color:#92400e;font-size:.82rem;font-weight:700;cursor:pointer;transition:all .15s;display:flex;align-items:center;justify-content:center;gap:4px}
.ai-upload-btn:hover:not(:disabled){background:#fffbeb;border-color:#b45309}
.ai-upload-btn:disabled{opacity:.6;cursor:not-allowed}
.ai-parse-btn{width:100%;height:38px;border:none;border-radius:8px;background:linear-gradient(135deg,#d97706 0%,#b45309 100%);color:#fff;font-size:.84rem;font-weight:800;cursor:pointer;transition:opacity .15s,transform .1s;display:flex;align-items:center;justify-content:center;gap:6px}
.ai-parse-btn:hover:not(:disabled){opacity:.94}
.ai-parse-btn:active:not(:disabled){transform:scale(.98)}
.ai-parse-btn:disabled{opacity:.55;cursor:not-allowed}
.ai-parse-error{margin:0;font-size:.8rem;font-weight:600;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:6px 8px}
.form-divider{display:flex;align-items:center;text-align:center;margin:2px 0 8px;color:#94a3b8;font-size:.7rem;font-weight:700;letter-spacing:.05em}
.form-divider::before,.form-divider::after{content:"";flex:1;border-bottom:1px solid #e2e8f0}
.form-divider span{padding:0 8px}
@media (max-width:640px){.ai-textarea{font-size:16px}.ai-parse-actions{grid-template-columns:1fr}}


/* --- PHI TINH TỨ HÓA (LƯƠNG PHÁI) --- */
.phi-control-panel {
  margin-top: 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.phi-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.phi-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phi-panel-icon {
  font-size: 1.25rem;
  color: #c24642;
  line-height: 1;
}

.phi-panel-title h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

.phi-panel-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 500;
}

.phi-clear-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.phi-clear-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.phi-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.phi-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  position: relative;
}

.phi-mode-tab:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.phi-mode-tab.tab-loc.active {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.15);
}

.phi-mode-tab.tab-ky.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.tab-dot.loc {
  background: #dc2626;
}

.tab-dot.ky {
  background: #111111;
}

.phi-mode-tab.tab-ky.active .tab-dot.ky {
  background: #38bdf8;
}

.tab-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tab-color-tag {
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.tab-color-tag.loc {
  background: #fee2e2;
  color: #b91c1c;
}

.phi-mode-tab.tab-loc.active .tab-color-tag.loc {
  background: #dc2626;
  color: #ffffff;
}

.tab-color-tag.ky {
  background: #e2e8f0;
  color: #334155;
}

.phi-mode-tab.tab-ky.active .tab-color-tag.ky {
  background: #334155;
  color: #f8fafc;
}

.tab-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tab-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  position: absolute;
  top: 4px;
  right: 6px;
}

.phi-mode-desc {
  font-size: 0.73rem;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.phi-mode-desc strong {
  color: #0f172a;
}

.phi-palace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.phi-palace-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 3px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
  min-height: 48px;
}

.phi-palace-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.phi-palace-btn .p-name {
  font-size: 0.77rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.15;
  text-align: center;
}

.phi-palace-btn .p-canchi {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
  line-height: 1;
}

/* Selected in Loc mode (red) */
.phi-palace-btn.loc.selected {
  background: #fee2e2;
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626, 0 2px 4px rgba(220, 38, 38, 0.15);
}

.phi-palace-btn.loc.selected .p-name {
  color: #991b1b;
  font-weight: 800;
}

.phi-palace-btn.loc.selected .p-canchi {
  color: #b91c1c;
  font-weight: 600;
}

/* Selected in Ky mode (black / dark slate) */
.phi-palace-btn.ky.selected {
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a, 0 2px 6px rgba(15, 23, 42, 0.25);
}

.phi-palace-btn.ky.selected .p-name {
  color: #ffffff;
  font-weight: 800;
}

.phi-palace-btn.ky.selected .p-canchi {
  color: #94a3b8;
  font-weight: 600;
}
