:root{--teal:#7A2038;--teal-deep:#63172F;--teal-wash:#F6E8EC;--ink:#292633;--muted:#72717B;--line:#E9E2E3;--canvas:#FCFAF8;--white:#fff;--shadow:0 5px 19px rgba(17,55,68,.055);--font:"Be Vietnam Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,a{font:inherit}button,input{touch-action:manipulation}button{cursor:pointer;-webkit-tap-highlight-color:transparent}a{color:#7A2038}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e5a85a;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.6}
#app{min-height:100dvh}.shell{max-width:650px;margin:0 auto;min-height:100dvh;background:#fff;box-shadow:0 18px 55px rgba(11,55,72,.055);display:flex;flex-direction:column}.topbar{height:74px;padding:12px 18px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #e5edef;background:#fff;position:sticky;top:0;z-index:20}.logo{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#F6E8EC;color:var(--teal);font-size:23px;flex:none}.brand{min-width:0;flex:1}.brand h1{font-size:17px;line-height:1.3;margin:0;font-weight:700;letter-spacing:-.012em}.brand small{font-size:12px;color:var(--muted)}.homeicon{width:42px;height:42px;border:1px solid var(--line);background:white;border-radius:12px;color:var(--teal);font-size:24px;flex:none}.content{flex:1;padding:25px 21px 44px;min-width:0}.mini-label{text-transform:uppercase;color:var(--teal);font-size:12px;font-weight:700;letter-spacing:.09em;margin:0 0 10px}.hero{font-size:27px;line-height:1.36;letter-spacing:-.02em;margin:3px 0 15px;font-weight:700}.intro{font-size:16px;color:var(--muted);line-height:1.68;margin:0 0 24px}.search-wrap{position:relative;margin:6px 0 20px}.search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:22px;color:#806E75;pointer-events:none}.search-input{width:100%;min-height:56px;border:1.5px solid #DBC8CF;border-radius:15px;padding:13px 15px 13px 45px;background:#fcfefe;font-size:16px;color:var(--ink);outline:0}.search-input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #7A20381c}.section-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:26px 0 12px}.section-header h2{font-size:19px;margin:0;line-height:1.4}.count{color:var(--muted);font-size:14px}.group-title{font-size:14px;font-weight:700;color:var(--teal-deep);margin:20px 0 10px}.card-list{display:grid;gap:10px}.choice-card{display:flex;align-items:center;gap:13px;text-align:left;width:100%;min-height:72px;padding:16px 16px;border:1.4px solid var(--line);background:#fff;border-radius:15px;color:var(--ink);line-height:1.48;box-shadow:var(--shadow);transition:background .15s,border-color .15s,transform .13s,box-shadow .15s;position:relative}.choice-card:hover{border-color:#C693A4;background:#fbfefe;box-shadow:0 6px 20px #7A203810}.choice-card:active{background:var(--teal-wash);border-color:var(--teal);transform:scale(.991)}.choice-text{min-width:0;flex:1;font-size:16px;font-weight:600;overflow-wrap:anywhere}.number-bubble{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#eef3f5;color:#725961;font-size:15px;font-weight:700}.chevron{font-family:Arial,sans-serif;flex:none;font-size:24px;color:#725961;line-height:1}.procedure-card{min-height:76px}.procedure-card .number-bubble{background:#F6E8EC;color:var(--teal-deep)}.toolbar{display:flex;justify-content:space-between;gap:12px;margin:0 0 18px}.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;gap:7px;border:0;background:#eff5f5;color:#7A2038;border-radius:12px;padding:9px 13px;font-weight:600;font-size:14px;transition:background .15s}.text-button:active{background:#F2DFE5}.text-button.flat{background:transparent;color:var(--teal-deep);padding-left:3px;padding-right:3px}.procedure-pill{display:inline-flex;background:var(--teal-wash);color:var(--teal-deep);border-radius:99px;padding:8px 12px;font-size:13px;font-weight:700;max-width:100%;overflow-wrap:anywhere;margin-bottom:18px}.step-label{font-size:13px;color:var(--teal);font-weight:700;letter-spacing:.07em;margin:6px 0 10px;text-transform:uppercase}.question{font-size:23px;line-height:1.44;margin:0 0 19px;letter-spacing:-.015em}.guidance{color:var(--muted);font-size:15px;line-height:1.65;margin:0 0 22px}.pathbox{margin:0 0 19px;border:1px solid #e2ecee;background:#f8fbfb;border-radius:13px;padding:0 13px}.pathbox summary{padding:12px 0;cursor:pointer;color:#47646e;font-size:14px;font-weight:700}.pathbox ol{margin:0;padding:0 0 12px 20px;font-size:14px;color:var(--muted)}.pathbox li{padding:3px 0}.success{display:flex;align-items:center;gap:9px;background:#F6E8EC;color:#7A2038;border-radius:12px;padding:10px 12px;font-size:15px;font-weight:700;margin-bottom:15px}.success-mark{font-family:Arial,sans-serif;font-size:19px}.leaf-title{font-size:21px;line-height:1.43;overflow-wrap:anywhere;margin:6px 0 15px}.feature-heading{font-size:18px;line-height:1.45;margin:24px 0 12px}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.feature-button{min-height:68px;padding:12px 9px;display:flex;align-items:center;justify-content:center;gap:8px;background:#f9fbfb;color:#292633;border:1.4px solid var(--line);border-radius:13px;font-size:15px;font-weight:600;text-align:center;line-height:1.48;transition:background .15s,transform .13s,border .15s}.feature-button:active{transform:scale(.977)}.feature-button[aria-pressed="true"]{border-color:var(--teal);background:#F6E8EC;color:var(--teal-deep);box-shadow:inset 0 0 0 1px #7A203840}.detail{margin-top:19px;padding:19px 17px;border:1.5px solid #E9E2E3;border-radius:15px;background:#fff;box-shadow:var(--shadow);animation:enter .22s ease both;overflow-wrap:anywhere}.detail h3{font-size:20px;line-height:1.4;margin:0 0 15px;color:var(--teal-deep)}.detail p{font-size:16px;line-height:1.8;margin:0 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}.detail p:last-of-type{margin-bottom:0}.detail .item-num{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;margin-right:7px;font-family:Arial,sans-serif;font-size:12px;font-weight:700;color:var(--teal);background:#F6E8EC;border-radius:50%;vertical-align:baseline}.sources{border-top:1px solid #e3ebec;margin-top:21px;padding-top:13px}.sources summary{font-size:14px;color:var(--teal-deep);font-weight:700;cursor:pointer}.sources a{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin-top:10px}.actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.actions button{flex:1;min-width:130px}.primary-button{min-height:50px;background:var(--teal);border:1px solid var(--teal);color:white;border-radius:12px;font-size:15px;font-weight:700;padding:11px 15px;transition:background .13s,transform .13s}.primary-button:active{background:#63172F;transform:scale(.985)}.footer{border-top:1px solid #e8eff0;padding:14px 20px 20px;font-size:13px;color:#6c7f88;text-align:center}.empty{border:1px dashed #DFC5CE;border-radius:15px;padding:19px;color:var(--muted);background:#f8fbfb}.loader,.loading-screen{min-height:45vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--muted)}.spinner{width:31px;height:31px;border:3px solid #d2e8e4;border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite}.error-panel{padding:22px;border:1px solid #e5c9c3;background:#fff7f5;border-radius:14px}.error-panel h2{margin:0 0 10px}.error-panel button{margin-top:12px}.meta-date{margin-top:16px;color:#6b7e86;font-size:13px}.visually-hidden{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden;white-space:nowrap}.stage{animation:enter .2s ease both}@keyframes enter{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:740px){body{padding:24px}.shell{min-height:calc(100dvh - 48px);border-radius:22px;overflow:hidden}.content{padding:28px 30px 55px}.topbar{padding-left:28px;padding-right:28px}}@media(max-width:359px){.content{padding:19px 14px 36px}.brand h1{font-size:15px}.hero{font-size:25px}.question{font-size:21px}.feature-button{font-size:14px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* V2.2: consistent Vietnamese typography and readable long administrative text. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-synthesis:none}
.hero,.question,.leaf-title{overflow-wrap:break-word}
.choice-text,.detail p{hyphens:none}
@media(min-width:740px){.hero{font-size:30px}.question{font-size:25px}}

/* V2.3: consistent feature presentation across all Meta leaves. */
.detail{padding:21px 17px 18px;border-color:#E8DDE0}
.detail h3{margin-bottom:8px;font-size:20px;letter-spacing:-.012em}
.detail-intro{font-size:13px!important;line-height:1.55!important;color:#617884!important;margin:0 0 16px!important;padding-bottom:12px;border-bottom:1px solid #e6edeb}
.detail-intro.single{border:0;margin-bottom:6px!important;padding-bottom:0}
.feature-entry-list{margin:0;padding:0;list-style:none;display:grid;gap:10px;counter-reset:feature-step}
.feature-entry{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:15px 13px;border:1px solid #E9E2E3;background:#fcfdfd;border-radius:13px}
.feature-entry-list:not(.is-numbered) .feature-entry{background:#fff;border:0;padding:4px 0 0}
.entry-index{width:31px;height:31px;border-radius:10px;background:#F6E8EC;color:#7A2038;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none;line-height:1.2;margin-top:1px;font-variant-numeric:tabular-nums}
.entry-body{min-width:0;flex:1;overflow-wrap:anywhere}
.detail .entry-text{font-size:16px;line-height:1.72;margin:0!important;white-space:normal;overflow-wrap:anywhere}
.entry-sublist{margin:0;padding:0 0 0 19px;display:grid;gap:10px;list-style:disc}
.entry-subline{font-size:16px;line-height:1.72;padding-left:1px;white-space:normal;overflow-wrap:anywhere}
.entry-subline::marker{color:#7A2038}
.entry-text.tone-note,.entry-subline.tone-note{border-left:3px solid #B08B64;padding:5px 0 5px 11px;background:linear-gradient(90deg,#fff9eb 0%,transparent 88%)}
.entry-text.tone-condition,.entry-subline.tone-condition{border-left:3px solid #D5A6B7;padding:4px 0 4px 10px}
.detail .sources{margin-top:20px}
@media(max-width:359px){.feature-entry{padding:13px 10px;gap:9px}.entry-index{height:29px;width:29px;font-size:12px}.entry-subline,.detail .entry-text{font-size:15px}}


/* V2.4: icon-first visual refinement, based on approved 9-page UI proposal.
   All icons are local outline SVGs; semantic labels and step numbers remain visible. */
.icon{display:block;flex:none;width:22px;height:22px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}
.logo{font-size:inherit}.logo-svg{width:24px;height:24px}
.homeicon{display:grid;place-items:center}.nav-icon{width:22px;height:22px}
.search-icon-wrap{position:absolute;left:16px;top:50%;transform:translateY(-50%);pointer-events:none;color:#725961;display:grid;place-items:center}
.search-svg{width:22px;height:22px}
.group-heading{display:flex;gap:9px;align-items:center;margin:22px 0 10px;min-width:0}
.group-heading .group-title{margin:0;line-height:1.4}
.group-symbol{background:#F6E8EC;color:var(--teal-deep);border-radius:10px;width:34px;height:34px;display:grid;place-items:center;flex:none}
.group-icon{width:19px;height:19px}
.procedure-symbol{width:42px;height:42px;flex:none;display:grid;place-items:center;background:#F6E8EC;color:var(--teal-deep);border-radius:12px;transition:background .16s,color .16s,transform .16s}
.procedure-icon{width:23px;height:23px}
.procedure-card{min-height:78px;gap:12px}
.procedure-card:hover .procedure-symbol,.procedure-card:focus-visible .procedure-symbol{background:#E8CFD7}
.procedure-card:active .procedure-symbol{transform:scale(.95)}
.choice-chevron{width:19px;height:19px;color:#725961;flex:none;transition:transform .15s}
.choice-card:hover .choice-chevron{transform:translateX(2px)}
.choice-card:active .choice-chevron{transform:translateX(3px)}
.number-bubble{width:37px;height:37px;background:#eef3f5;color:#7A2038;font-size:15px}
.toolbar .text-button,.actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.button-icon{width:18px;height:18px}
.procedure-pill{align-items:center;gap:7px;line-height:1.5}
.pill-icon{width:16px;height:16px}
.pathbox summary{display:flex;align-items:center;gap:8px;min-height:44px}
.path-icon{width:18px;height:18px;color:var(--teal)}
.success-icon{width:21px;height:21px;flex:none}
.feature-button{min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;line-height:1.35;transition:background .16s,border-color .16s,transform .13s,box-shadow .16s}
.feature-symbol{width:24px;height:24px;color:#7A2038;display:grid;place-items:center}
.feature-icon{width:23px;height:23px}
.feature-label{font-size:14px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.feature-button--wide{grid-column:1/-1;min-height:64px;flex-direction:row;gap:10px}
.feature-button--wide .feature-label{font-size:14px}
.feature-button:hover{background:#f0f8f6;border-color:#C693A4}
.feature-button:active{background:#F6E8EC;transform:scale(.99)}
.feature-button[aria-pressed="true"]{background:#F6E8EC;border:1.5px solid #7A2038;color:#7A2038;box-shadow:inset 0 0 0 1px #7A203833}
.feature-button[aria-pressed="true"] .feature-symbol{color:#7A2038}
.detail-heading-row{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.detail-heading-row h3{margin:0!important;line-height:1.38}
.detail-symbol{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#F6E8EC;color:var(--teal-deep);flex:none}
.detail-icon{width:23px;height:23px}
.sources summary{display:flex;align-items:center;gap:8px;min-height:38px}
.source-icon{width:18px;height:18px}
@media(max-width:359px){.procedure-symbol{width:38px;height:38px}.procedure-icon{width:21px;height:21px}.feature-button{min-height:80px}.feature-label{font-size:13px}.feature-button--wide{min-height:60px}.group-heading .group-title{font-size:13px}}
@media(prefers-reduced-motion:reduce){.choice-chevron,.procedure-symbol{transition:none!important;transform:none!important}}

/* TU PHAP OFFICIAL V5.3: approved dark-red UI, adapted from Citizen QR V2.4. */
:root{--deep:#431424;--primary-soft:#F6E8EC;--primary-line:#E8CFD7;--cream:#FCFAF8;--neutral:#292633}
.topbar{border-color:#eee6e8;background:#fff;min-height:74px;height:auto}
.brand-title{font-size:17px;line-height:1.3;font-weight:800;letter-spacing:-.01em}
.brand small{color:#847780}
.logo{background:var(--primary-soft);color:var(--teal)}
.shell{box-shadow:0 18px 55px rgba(67,20,36,.045)}
.content{padding-top:22px}
.progress-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 29px}
.progress-step{display:flex;flex-direction:column;gap:6px;min-width:0;color:#94858D;font-size:12px;font-weight:700}
.progress-step::before{content:'';order:2;width:100%;height:4px;background:#F0E8EB;border-radius:9px}
.progress-step.current{color:var(--teal)}
.progress-step.current::before{background:var(--teal)}
.progress-number{display:none}
.progress-text{line-height:1.3}
.scenario-home{min-height:74px}
.scenario-home .procedure-symbol{background:var(--primary-soft);color:var(--teal)}
.home-note{font-size:13px;color:#897C84;margin-top:22px}
.result-ribbon{display:flex;align-items:center;gap:10px;background:var(--primary-soft);color:var(--teal);border-radius:12px;padding:13px 14px;font-size:14px;font-weight:700;margin:0 0 20px}
.result-ribbon .success-icon{width:20px;height:20px}
.procedure-options{margin-top:16px}
.procedure-card-wrapper{min-width:0}
.procedure-card{min-height:88px;align-items:center}
.procedure-card .choice-text{display:flex;flex-direction:column-reverse;gap:3px;font-weight:700;font-size:15px}
.procedure-type{font-size:11px;font-weight:700;color:#916577;line-height:1.5;letter-spacing:.012em}
.bridge-notice{display:flex;align-items:flex-start;gap:10px;background:#FCF7F8;border:1px solid #F1E4E8;padding:14px;border-radius:12px;margin-top:25px;font-size:13px;line-height:1.7;color:#6D5962}
.bridge-notice .button-icon{flex:none;color:var(--teal);margin-top:2px}
.procedure-tools{display:flex;justify-content:flex-end;margin:-11px 0 16px}
.inline-link{background:none;border:0;color:var(--teal);display:inline-flex;gap:7px;align-items:center;font-weight:700;font-size:13px;padding:7px 0}
.reuse-banner{display:flex;align-items:center;gap:9px;background:#EDF4F0;color:#416757;padding:12px;border-radius:11px;font-size:13px;font-weight:700;margin:0 0 5px}
.reuse-banner svg{width:18px;height:18px}
.reuse-evidence{margin:0 0 17px;padding:0 10px 8px;color:#6A6C69;font-size:13px}
.reuse-evidence summary{cursor:pointer;padding:9px 2px;font-weight:600}
.reuse-evidence ul{margin:2px 0 2px;padding-left:20px}
.reuse-evidence li{margin:7px 0}
.procedure-pill{border-radius:14px;padding:11px 13px;display:flex;align-items:flex-start;margin-bottom:16px;font-size:13px}
.procedure-pill .pill-icon{margin-top:2px;flex:none}
.step-label{margin:20px 0 9px}
.success{background:#EDF4F0;color:#416757}
.feature-entry-list{gap:12px}
.feature-entry{background:#fff;border-color:#EAE1E4;padding:17px 14px}
.entry-title{font-size:15px;line-height:1.55;font-weight:800;color:#642138;margin:0 0 6px;overflow-wrap:anywhere}
.detail .entry-text{font-size:15px;line-height:1.78;color:#3A3540;margin:0!important}
.detail{border-color:#E8CFD7;box-shadow:0 8px 24px #4314240a}
.detail .sources{border-color:#EEE4E8}
.legal-note{display:flex;align-items:flex-start;gap:10px;background:#FCF7F8;border:1px solid #F1E5E9;border-radius:12px;color:#73646C;padding:12px 13px;margin-top:20px;font-size:13px;line-height:1.6}
.legal-note .button-icon{color:var(--teal);flex:none;margin-top:1px}
.footer{background:#fff;color:#81787D;border-color:#EEE6E8;line-height:1.6}
.footer p{margin:1px 0}
.pathbox{background:#FCFAFB;border-color:#F1E6E9}
.pathbox summary,.sources summary{color:var(--teal)}
.feature-button{color:var(--neutral);background:#fff}
.feature-button:hover{background:#FCF5F7}
.feature-button[aria-pressed=true]{border-color:var(--teal);background:var(--primary-soft);color:var(--teal-deep)}
.feature-button .feature-symbol{color:var(--teal)}
.choice-card:hover{border-color:#C995A8;background:#FFFAFB;box-shadow:0 6px 20px #7A203810}
.choice-card:active{background:#F6E8EC}
.feature-entry .entry-index{background:#F6E8EC;color:var(--teal)}
@media(max-width:359px){.progress-step{font-size:11px}.procedure-card .choice-text{font-size:14px}.brand-title{font-size:15px}.procedure-card{gap:10px}}
@media(min-width:740px){body{background:#F8F3F4}}
@media(prefers-reduced-motion:reduce){.stage{animation:none}}

/* TU PHAP V6 OFFICIAL: nine core features and context-specific features. */
.special-section{margin-top:28px;padding-top:23px;border-top:1px solid #EADFE3}
.special-heading{margin:0 0 5px;font-size:18px;color:#472334}
.special-hint{margin:0 0 15px;color:#80727A;font-size:13px;line-height:1.65}
.special-feature-grid .feature-button--special{background:#FEF8FA;border:1.5px solid #E5CBD5;color:#65263E;min-height:83px}
.special-feature-grid .feature-button--special .feature-symbol{color:#8D3A56}
.special-feature-grid .feature-button--special:hover{background:#F9ECF1;border-color:#BB7792}
.special-feature-grid .feature-button--special[aria-pressed=true]{background:#F2DDE5;border-color:#7A2038;box-shadow:inset 0 0 0 1px #7A203833}
.special-feature-grid .feature-button--wide{min-height:64px}
.feature-grid .feature-button{min-width:0}
.reference-list{padding:0 0 0 23px;margin:0;display:grid;gap:8px}
.reference-list li{font-size:14px;line-height:1.7;color:#785968;overflow-wrap:anywhere}
.reference-list a{display:inline;word-break:break-word;color:#7A2038;text-underline-offset:3px;text-decoration-thickness:1px}
.reference-list a:hover{text-decoration-thickness:2px}
.detail .entry-text{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:359px){.feature-grid{gap:8px}.feature-button{min-height:79px;padding:12px 6px}.feature-label{font-size:12.5px}.special-feature-grid .feature-button--special{min-height:77px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.feature-button,.choice-card{transition:none!important}.detail{animation:none!important}}
