:root{--ink:#173c3c;--muted:#596b6b;--brand:#083d3f;--teal:#0f6f69;--soft:#f2f6f5;--line:#d7e2df;--paper:#fff;--f1:38px;--f2:26px;--f3:20px;--f4:18px;--f5:16px;--f6:14px}
*{box-sizing:border-box}body{margin:0;background:var(--soft);color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif;font-size:16px;line-height:1.75;min-height:100vh;display:flex;flex-direction:column}h1,h2,h3,p{margin:0}h1{font-size:var(--f1);line-height:1.45;letter-spacing:.03em}h2{font-size:var(--f2);line-height:1.45}a{color:inherit;text-decoration:none}button,input{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #55bdb0;outline-offset:4px}.wrap{width:min(1200px,calc(100% - 80px));margin-inline:auto}
.site-header{background:white}.header-inner{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:22px}.brand{display:flex;align-items:center;gap:14px}.brand img{flex-shrink:0}.brand strong{font-size:var(--f3);display:block;line-height:1.4}.brand small{font-size:14px;color:var(--muted);display:block;margin-top:4px}.button{display:inline-flex;justify-content:center;align-items:center;padding:9px 22px;min-height:44px;border-radius:4px;border:1px solid var(--line);line-height:1.5;cursor:pointer;white-space:nowrap;font-size:16px;transition:background .15s,border-color .15s}.primary{background:var(--teal);border-color:var(--teal);color:white}.primary:hover{background:var(--brand)}.secondary{background:white}.secondary:hover{background:#e8f0ed;border-color:var(--teal)}
.query-main{flex:1;display:flex;flex-direction:column}.portal-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--brand);flex:1;display:flex;align-items:center;min-height:650px}.portal-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 64%;z-index:-3}.portal-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#042b2cf0 0%,#042b2cc4 41%,#042b2c70 100%);z-index:-2}.portal-layout{display:grid;grid-template-columns:minmax(0,1fr) 470px;gap:90px;align-items:center;padding-block:64px}.portal-intro{color:white;padding-block:16px}.eyebrow{font-size:14px;color:var(--teal);margin-bottom:18px}.portal-intro .eyebrow{color:#c4ded8;letter-spacing:.08em}.portal-intro h1{margin-bottom:24px}.intro-copy{font-size:18px;line-height:1.95;color:#e0eae6}.portal-services{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:64px;max-width:360px}.portal-services span{font-size:14px;white-space:nowrap;display:flex;flex-direction:column;align-items:flex-start;gap:12px;color:#f1f5f3}.portal-services svg{width:26px;height:26px;fill:none;stroke:#b8dbd3;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.query-panel{padding:38px 40px 32px;background:white;border-radius:12px;box-shadow:0 18px 60px #00272833}.form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.line-icon{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:var(--teal)}.line-icon svg{width:28px;height:28px}.query-panel>p{color:var(--muted);font-size:14px}.query-form{margin-top:28px}.field{margin-bottom:22px}.field label{display:block;margin-bottom:8px;font-size:14px}.field input{width:100%;height:50px;padding:10px 14px;border:1px solid #bfceca;border-radius:4px;background:#fcfdfc;color:var(--ink);font-size:14px}.field input::placeholder{color:#85908c}.field input:hover{border-color:var(--teal)}.query-submit{width:100%;min-height:48px;margin-top:4px}.query-help{margin-top:24px;padding:16px 18px;background:var(--soft);border-radius:4px}.query-help h3{font-size:14px;font-weight:600;margin-bottom:5px}.query-help p{color:var(--muted);font-size:14px;line-height:1.8}.portal-support{display:flex;justify-content:space-between;gap:20px;padding-block:26px;font-size:14px;color:var(--muted)}.portal-support a{color:var(--teal)}
.site-footer{background:#e9f0ed;color:var(--muted);font-size:14px;margin-top:auto}.footer-inner{display:flex;justify-content:space-between;gap:20px;padding-block:22px}.site-footer a:hover,.portal-support a:hover{text-decoration:underline}
.result-main{flex:1;padding-block:48px}.result-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.result-heading h1{margin-bottom:12px}.result-heading .eyebrow{margin-bottom:8px}.result-heading p:last-child{color:var(--muted)}.record-layout{display:grid;grid-template-columns:288px minmax(0,1fr);background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.record-summary{padding:32px;background:var(--brand);color:white}.record-summary h2{font-size:20px;margin-top:20px;margin-bottom:8px}.record-summary>p{font-size:14px;color:#c4ded8}.summary-number{margin:32px 0;overflow-wrap:anywhere}.summary-number span{display:block;font-size:14px;margin-bottom:8px;color:#c4ded8}.summary-number strong{font-size:16px}.record-content{padding:32px;min-width:0}.record-content h2{font-size:20px;margin-bottom:12px}.record-fields{margin:0}.record-field{display:grid;grid-template-columns:136px minmax(0,1fr);gap:24px;border-bottom:1px solid var(--line);padding:16px 0}.record-field:last-child{border:0}.record-field dt{color:var(--muted)}.record-field dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.record-image{display:block;max-width:min(220px,100%);max-height:260px;width:auto;height:auto;object-fit:contain}.result-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:24px}.result-bottom p{font-size:14px;color:var(--muted)}
.failure-main{flex:1;padding-block:56px}.failure-panel{max-width:720px;background:white;border:1px solid var(--line);border-radius:10px;padding:40px;margin:0 auto}.failure-panel h1{font-size:var(--f2);margin:12px 0}.failure-panel>p{color:var(--muted)}.submitted-query{margin:28px 0}.submitted-query div{display:grid;grid-template-columns:150px minmax(0,1fr);padding:12px 0;border-bottom:1px solid var(--line);gap:20px}.submitted-query dt{color:var(--muted)}.submitted-query dd{margin:0;overflow-wrap:anywhere}.actions{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:1100px){.portal-layout{grid-template-columns:minmax(0,1fr) 410px;gap:40px}.query-panel{padding:30px}.portal-services{gap:12px}.portal-services span{font-size:13px}}
@media(max-width:850px){.wrap{width:calc(100% - 48px)}.portal-layout{grid-template-columns:minmax(0,1fr) 370px;gap:28px;padding-block:48px}.query-panel{padding:28px 24px}.portal-services{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:36px}.portal-intro h1{font-size:32px}.intro-copy{font-size:16px}.portal-intro .eyebrow{letter-spacing:0}.record-layout{grid-template-columns:220px minmax(0,1fr)}.record-summary,.record-content{padding:24px}.record-field{grid-template-columns:100px minmax(0,1fr);gap:16px}}
@media(max-width:650px){:root{--f1:28px;--f2:22px;--f3:18px}.wrap{width:calc(100% - 32px)}.header-inner{padding-block:16px;gap:12px}.brand{gap:8px}.brand img{width:36px;height:36px}.brand strong{font-size:14px}.brand small{font-size:11px;margin-top:2px}.header-inner>.button{font-size:12px;padding:6px 9px;min-height:34px}.portal-layout{grid-template-columns:1fr;gap:28px;padding-block:30px 32px}.portal-intro{padding:0 4px}.portal-intro .eyebrow{font-size:12px;margin-bottom:12px}.portal-intro h1{font-size:28px;margin-bottom:12px}.portal-intro h1 br{display:initial}.intro-copy{font-size:14px}.portal-services{grid-template-columns:repeat(3,1fr);margin-top:24px;gap:12px}.portal-services span{font-size:12px;gap:6px}.portal-services svg{width:22px;height:22px}.portal-photo{object-position:38% center}.portal-hero:before{background:linear-gradient(180deg,#042b2ceb,#042b2cb0)}.query-panel{padding:24px 22px;border-radius:8px}.query-form{margin-top:22px}.query-help{margin-top:20px;padding:14px}.portal-support{flex-direction:column;gap:6px;padding-block:20px;font-size:12px}.footer-inner{flex-direction:column;gap:6px;padding-block:18px;font-size:12px}.footer-inner>a{display:none}.result-main,.failure-main{padding-block:28px}.result-heading{align-items:flex-start;flex-direction:column;gap:16px}.record-layout{grid-template-columns:1fr}.record-summary{padding:24px}.record-summary img{width:44px;height:44px}.record-summary h2{margin-top:12px}.summary-number{margin:16px 0}.record-content{padding:24px 20px}.record-field{grid-template-columns:1fr;gap:4px;padding:14px 0}.record-field dt{font-size:14px}.result-bottom{flex-direction:column;align-items:flex-start}.failure-panel{padding:28px 20px}.submitted-query div{grid-template-columns:1fr;gap:4px}}
/* Independent verification result: identity, grouped records and explicit status. */
.verification-main{flex:1;padding:48px 24px;background:radial-gradient(ellipse at 50% 0,#e2eeea 0,transparent 70%),#f2f6f5}
.verification-card{max-width:1000px;margin:0 auto;background:white;border:1px solid #d8e5df;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #143d3310}
.verification-top{padding:28px 40px;display:flex;align-items:center;gap:20px;background:#f3faf6;border-bottom:1px solid #dcece2}
.verify-symbol{width:60px;height:60px;flex:0 0 60px;border-radius:50%;background:#e0f1e7;display:grid;place-items:center;color:#21734d}
.verify-symbol svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.verify-kicker{font-size:12px;color:#567666;margin-bottom:3px;letter-spacing:.05em}.verification-top h1{font-size:26px;color:#1d6345;line-height:1.4}.verify-description{font-size:14px;color:#5e7268;margin-top:5px}.verification-top>.status-pill{margin-left:auto}
.status-pill{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:500;line-height:1.5;border-radius:30px;padding:5px 11px;white-space:nowrap;width:fit-content;vertical-align:middle}.status-pill i{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.status-pill.matched,.status-pill.active{background:#e5f3ea;color:#226d45}.status-pill.expired{background:#fbe9e7;color:#a33b34}.status-pill.pending{background:#fff0d5;color:#966116}.status-pill.unknown{background:#edf0f2;color:#5d6a73}
.verification-body{padding:0 40px 12px}.record-identity{display:flex;justify-content:space-between;align-items:center;gap:32px;padding:28px 0}.identity-copy{min-width:0}.identity-label{font-size:12px;color:var(--muted);margin-bottom:6px}.record-identity h2{font-size:26px;color:var(--brand);overflow-wrap:anywhere}.identity-number{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:10px;font-size:14px;color:var(--muted)}.identity-number strong{color:var(--teal);font-weight:500;overflow-wrap:anywhere}.record-types{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.record-types span{font-size:12px;color:#48665c;background:#eff4f1;padding:3px 10px;border-radius:4px}
.identity-photo.record-field{display:block;margin:0;padding:6px;border:1px solid #e0e7e3;border-radius:8px;background:#fafcfb;flex:0 0 auto}.identity-photo .record-image{width:120px;max-width:120px;height:160px;max-height:none;object-fit:cover;object-position:center 25%;border-radius:3px}
.record-section{padding:20px 0 8px;border-top:1px solid var(--line)}.record-section h3{font-size:16px;font-weight:600;color:var(--brand);margin-bottom:10px}.record-section .record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:36px;row-gap:0}.record-section .record-field{grid-template-columns:92px minmax(0,1fr);gap:16px;padding:11px 0;border:0;line-height:1.7;font-size:14px;align-items:start}.record-section .record-field dt{color:#708078}.record-section .record-field dd{white-space:normal;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.record-section .record-field dd>span:first-child{white-space:pre-wrap}.record-section [data-field=number] dd{color:var(--teal);font-weight:500}
.verification-actions{padding:22px 40px;background:#f8faf9;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.verification-actions p{font-size:14px;color:#6a7e73}.verification-contact{max-width:1000px;margin:20px auto 0;text-align:center;font-size:13px;color:var(--muted)}.verification-contact a{color:var(--teal)}
@media(max-width:850px){.verification-main{padding:32px 24px}.verification-top{padding:24px;gap:16px}.verification-body{padding:0 24px 10px}.record-section .record-fields{column-gap:24px}.record-section .record-field{grid-template-columns:76px minmax(0,1fr);gap:12px}.verification-actions{padding:20px 24px}}
@media(max-width:650px){.verification-main{padding:24px 16px}.verification-card{border-radius:10px}.verification-top{padding:22px 20px;gap:12px;flex-wrap:wrap}.verify-symbol{width:44px;height:44px;flex-basis:44px}.verify-symbol svg{width:24px;height:24px}.verification-top>div:nth-child(2){flex:1;min-width:0}.verification-top h1{font-size:22px}.verify-description{font-size:12px}.verification-top>.status-pill{margin-left:56px}.verification-body{padding:0 20px 8px}.record-identity{gap:14px;padding:24px 0;align-items:flex-start}.record-identity h2{font-size:20px}.identity-number{font-size:12px;display:block}.identity-number strong{display:block;margin-top:4px}.identity-photo .record-image{width:84px;max-width:84px;height:112px;max-height:none}.record-types{gap:5px;margin-top:10px}.record-types span{font-size:11px;padding:3px 7px}.record-section{padding-top:18px}.record-section .record-fields{grid-template-columns:1fr}.record-section .record-field{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:9px 0}.record-section h3{margin-bottom:5px}.verification-actions{padding:18px 20px;flex-direction:column-reverse}.verification-actions .button{width:100%}.verification-actions p{font-size:12px}.verification-contact{font-size:12px;overflow-wrap:anywhere}}

.failure-panel>.line-icon{color:#966116;background:#fff0d5;border-radius:50%;width:52px;height:52px}

/* Collapse missing fields and keep validity badges to the right of their dates. */
.identity-copy{flex:1}
.record-section .record-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.record-section .record-field:only-child,.record-section .record-field:last-child:nth-child(odd){grid-column:1/-1}
.record-section .record-field.has-status{grid-column:1/-1}
.record-section .record-field.has-status dd{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.record-section .record-field.has-status .status-pill{justify-self:end}
@media(max-width:650px){.record-section .record-fields{grid-template-columns:1fr}.record-section .record-field.has-status{grid-template-columns:1fr;gap:5px}.record-section .record-field.has-status dd{gap:8px}.record-section .record-field.has-status dd>span:first-child{font-size:13px}}

.record-section .record-fields:has(> .record-field:nth-child(2):last-child){grid-template-columns:1fr}
/* Vietnamese text: natural wrapping, room for accents and longer field names. */
.header-inner,.brand,.brand>span,.portal-intro,.query-panel,.verification-top>div,.record-section .record-field{min-width:0}
.brand{max-width:calc(100% - 200px)}.brand strong{overflow-wrap:anywhere;font-size:18px;line-height:1.5}.brand small{line-height:1.6}
.button{white-space:normal;text-align:center;overflow-wrap:anywhere}.header-inner>.button{flex:0 0 auto;max-width:180px}
.portal-services span{white-space:normal;overflow-wrap:anywhere}.portal-services{max-width:430px}.portal-intro h1{letter-spacing:0;overflow-wrap:anywhere}.intro-copy{overflow-wrap:anywhere}
.query-panel>p,.query-help p{overflow-wrap:anywhere}.field input{text-overflow:ellipsis}.query-panel .form-heading h2{font-size:24px}
.verification-top h1{letter-spacing:0;overflow-wrap:anywhere}.status-pill{white-space:normal;max-width:160px;line-height:1.5;overflow-wrap:anywhere}.verification-top>.status-pill{flex-shrink:0}
.record-section .record-field{grid-template-columns:125px minmax(0,1fr);gap:16px}.record-section .record-field dt{overflow-wrap:anywhere}.record-section .record-field dd{overflow-wrap:anywhere}.record-types span{overflow-wrap:anywhere}
.footer-inner{overflow-wrap:anywhere}.failure-panel h1{overflow-wrap:anywhere}.failure-panel .actions{align-items:stretch}
@media(max-width:850px){.portal-layout{grid-template-columns:minmax(0,1fr) 370px;gap:24px}.portal-intro h1{font-size:32px}.record-section .record-field{grid-template-columns:115px minmax(0,1fr)}}
@media(max-width:650px){.brand{max-width:calc(100% - 94px)}.brand strong{font-size:13px;line-height:1.45}.brand small{font-size:10px}.header-inner>.button{max-width:82px;font-size:12px;padding:6px 8px}.header-inner{gap:12px}.brand img{width:32px;height:32px}.portal-layout{grid-template-columns:1fr}.portal-intro h1{font-size:28px}.query-panel .form-heading h2{font-size:22px}.portal-services span{font-size:12px}.record-section .record-field{grid-template-columns:100px minmax(0,1fr);gap:10px}.record-section .record-field.has-status{grid-template-columns:1fr}.record-section .record-field.has-status dd{grid-template-columns:minmax(0,1fr) auto}.record-section .record-field.has-status .status-pill{max-width:116px}.verification-top{position:relative}.verification-top>div:nth-child(2){flex-basis:calc(100% - 56px)}.verification-top>.status-pill{margin-left:56px;max-width:100%}.record-identity h2{font-size:20px}.identity-copy{overflow-wrap:anywhere}.verification-contact{line-height:1.8}}

/* Short home action and content-sized category columns avoid orphaned words. */
.header-inner>.site-home-link{width:auto;max-width:none;white-space:nowrap;overflow-wrap:normal;font-size:14px;min-height:40px;padding:8px 16px}
.portal-services{display:flex;flex-wrap:wrap;align-items:flex-start;gap:24px clamp(14px,3vw,40px);max-width:100%}
.portal-services>span{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal}
@media(max-width:650px){.header-inner>.site-home-link{font-size:12px;min-height:36px;padding:8px 10px}.brand{max-width:calc(100% - 108px)}.portal-services{gap:20px 18px}}
