:root {
    --brand: #008d64;
    --brand-2: #00b57b;
    --brand-3: #64c78d;
    --brand-dark: #064d3d;
    --brand-deep: #05392f;
    --brand-soft: #eaf8f2;
    --brand-pale: #f4fbf8;
    --text: #163029;
    --muted: #667b75;
    --line: #dbe9e3;
    --surface: #ffffff;
    --page: #f5f9f7;
    --warning: #9b6a00;
    --danger: #b42318;
    --shadow: 0 20px 60px rgba(5, 77, 61, 0.11);
    --shadow-soft: 0 10px 34px rgba(5, 77, 61, 0.08);
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--page);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; fill: currentColor; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(5, 77, 61, 0.09);
    backdrop-filter: blur(14px);
}
.utility-bar {
    color: rgba(255,255,255,.88);
    background: var(--brand-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}
.utility-inner {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    opacity: .9;
}
.admin-link:hover { opacity: 1; }
.admin-link svg { width: 15px; height: 15px; }
.main-header { background: #fff; }
.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: 300px; max-width: 44vw; height: auto; display: block; }
.header-title {
    padding-left: 30px;
    border-left: 1px solid var(--line);
    text-align: right;
}
.header-title span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}
.header-title strong {
    display: block;
    margin-top: 2px;
    color: var(--brand-dark);
    font-size: 17px;
    letter-spacing: .4px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(153, 229, 182, .16), transparent 32%),
        radial-gradient(circle at 87% 15%, rgba(255,255,255,.12), transparent 26%),
        linear-gradient(135deg, #05392f 0%, #00664b 52%, #00a36f 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to right, #000, transparent 70%);
}
.hero-shape { position: absolute; pointer-events: none; border-radius: 50%; }
.hero-shape-one {
    width: 540px;
    height: 540px;
    right: -190px;
    bottom: -290px;
    border: 92px solid rgba(255,255,255,.08);
}
.hero-shape-two {
    width: 240px;
    height: 240px;
    right: 31%;
    top: -120px;
    background: rgba(126, 220, 157, .11);
}
.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 510px;
    padding: 68px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr);
    align-items: center;
    gap: 58px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #c9f2df;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.65px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}
.eyebrow.dark { color: var(--brand); }
.hero h1 {
    max-width: 760px;
    margin: 15px 0 19px;
    font-size: clamp(38px, 4.2vw, 60px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    text-wrap: balance;
}
.hero-copy > p {
    max-width: 680px;
    margin: 0;
    color: rgba(239,255,248,.86);
    font-size: 18px;
}
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 31px;
}
.hero-features > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}
.feature-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #d8f9e7;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
}
.feature-icon svg { width: 19px; height: 19px; }
.hero-features strong, .hero-features small { display: block; }
.hero-features strong { color: #fff; font-size: 12px; line-height: 1.25; }
.hero-features small { margin-top: 2px; color: rgba(239,255,248,.72); font-size: 10px; line-height: 1.25; }

.lookup-card {
    position: relative;
    color: var(--text);
    background: rgba(255,255,255,.98);
    padding: 31px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    box-shadow: 0 28px 75px rgba(0, 48, 36, .34);
}
.lookup-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 22px 0 0 22px;
    background: linear-gradient(var(--brand-2), var(--brand-3));
}
.lookup-card-head { display: flex; align-items: center; gap: 13px; }
.lookup-symbol {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 25px rgba(0, 141, 100, .24);
}
.lookup-symbol svg { width: 25px; height: 25px; }
.lookup-card-head span:not(.lookup-symbol) {
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.lookup-card h2 { margin: 1px 0 0; font-size: 22px; line-height: 1.25; }
.lookup-card > p { margin: 17px 0 19px; color: var(--muted); font-size: 14px; }
.lookup-card label, .form-field label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14px; }
.lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.input-with-icon { position: relative; }
.input-with-icon > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    color: #80928d;
    transform: translateY(-50%);
    pointer-events: none;
}
.lookup-row input, .form-field input, .form-field select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cdded7;
    border-radius: 11px;
    padding: 0 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.lookup-row input { padding-left: 44px; }
.lookup-row input:hover, .form-field input:hover, .form-field select:hover { border-color: #9ec6b7; }
.lookup-row input:focus, .form-field input:focus, .form-field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 141, 100, .12);
}
.lookup-row button, .button-primary, .download-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 141, 100, .22);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.lookup-row button:hover, .button-primary:hover, .download-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 14px 30px rgba(0, 141, 100, .28);
}
.lookup-row button svg { width: 19px; height: 19px; }
.lookup-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    color: #738780;
    font-size: 11px;
    line-height: 1.45;
}
.lookup-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }

.content-section { padding: 52px 0 76px; }
.result-panel, .steps-panel, .settings-card, .login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.result-panel { padding: 30px; margin-bottom: 30px; scroll-margin-top: 140px; }
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 23px;
}
.section-heading.compact { align-items: flex-end; margin-bottom: 22px; }
.section-heading h2 { margin: 5px 0 0; font-size: 29px; line-height: 1.2; letter-spacing: -.5px; }
.section-description { max-width: 510px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.query-chip {
    padding: 9px 13px;
    border: 1px solid #cce9dd;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
}
.success-banner, .notice-banner {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-radius: 13px;
    margin-bottom: 21px;
}
.success-banner { color: #075d42; background: var(--brand-soft); border: 1px solid #bce7d6; }
.notice-banner { color: #765000; background: #fff9e7; border: 1px solid #f1dea7; }
.success-banner.slim { margin-bottom: 20px; }
.success-icon, .notice-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
}
.success-icon { background: var(--brand); }
.success-icon svg { width: 20px; height: 20px; }
.notice-icon { background: #bd7c00; }
.success-banner div, .notice-banner div { display: flex; flex-direction: column; }
.success-banner span:not(.success-icon), .notice-banner span:not(.notice-icon) { font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.result-table { width: 100%; min-width: 1010px; border-collapse: collapse; }
.result-table th {
    color: #496159;
    background: #f2f8f5;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .35px;
    white-space: nowrap;
}
.result-table th, .result-table td { padding: 14px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.result-table tbody tr:last-child td { border-bottom: 0; }
.result-table tbody tr:hover { background: #fbfefc; }
.status-pass {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #08734f;
    background: #e8f8f1;
    font-size: 12px;
    font-weight: 800;
}
.download-button { min-height: 39px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.download-button svg { width: 17px; height: 17px; }
.updating-label { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }

.result-guidance {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 19px 20px;
    color: #4f3b0a;
    background: linear-gradient(135deg, #fff9e8, #fffdf5);
    border: 1px solid #edd79b;
    border-left: 5px solid #c98a08;
    border-radius: 14px;
}
.persistent-guidance { margin: 0 0 28px; }

.guidance-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: #c98a08;
    border-radius: 50%;
}
.guidance-icon svg { width: 22px; height: 22px; fill: currentColor; }
.result-guidance h3 { margin: 0 0 6px; color: #5d4207; font-size: 17px; }
.result-guidance p { margin: 0; line-height: 1.65; }
.result-guidance a {
    color: #08734f;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.result-guidance a:hover { color: #075d42; }

.steps-panel { padding: 31px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-grid article {
    position: relative;
    overflow: hidden;
    min-height: 205px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f4fbf8 100%);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.steps-grid article:hover {
    transform: translateY(-3px);
    border-color: #b8ddce;
    box-shadow: var(--shadow-soft);
}
.step-number {
    position: absolute;
    right: 17px;
    top: 10px;
    color: rgba(0, 141, 100, .10);
    font-size: 49px;
    font-weight: 900;
    line-height: 1;
}
.step-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 24px rgba(0,141,100,.18);
}
.step-icon svg { width: 22px; height: 22px; }
.steps-grid h3 { margin: 17px 0 7px; font-size: 19px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.admin-page { min-height: calc(100vh - 210px); padding: 46px 0 72px; }
.admin-container { max-width: 1040px; }
.admin-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 25px; }
.admin-heading h1 { margin: 7px 0 4px; font-size: 36px; line-height: 1.2; letter-spacing: -.6px; }
.admin-heading p { margin: 0; color: var(--muted); }
.settings-form { display: grid; gap: 20px; }
.settings-card { padding: 27px; box-shadow: var(--shadow-soft); }
.settings-card-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.settings-card-title > span {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 800;
}
.settings-card-title h2 { margin: 0; font-size: 21px; }
.settings-card-title p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.checkbox-group { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.checkbox-group label { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 600; }
.checkbox-group input { width: 18px; min-height: 18px; padding: 0; accent-color: var(--brand); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.button-secondary {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8dbd3;
    border-radius: 11px;
    padding: 0 18px;
    background: #fff;
    color: #40554e;
    font-weight: 700;
}
.button-secondary:hover { background: var(--brand-pale); border-color: #a9cdbf; }
.button-primary { border: 0; }
.full-width { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }

.login-page { display: grid; place-items: center; padding-left: 20px; padding-right: 20px; }
.login-card { width: min(460px, 100%); padding: 35px; }
.login-card h1 { margin: 8px 0; font-size: 30px; }
.login-card > p { margin: 0 0 22px; color: var(--muted); }
.login-card form { display: grid; gap: 16px; }
.back-link { display: block; text-align: center; color: var(--brand); font-weight: 700; font-size: 14px; }
.request-id { font-size: 13px; }

.field-validation { display: block; min-height: 18px; margin-top: 5px; color: var(--danger); font-size: 12px; }
.validation-summary { color: var(--danger); background: #fff1f0; border: 1px solid #f5c2be; border-radius: 10px; padding: 12px 16px; }
.validation-summary:empty { display: none; }
.validation-summary ul { margin: 0; padding-left: 18px; }

.footer { color: rgba(255,255,255,.72); background: var(--brand-deep); font-size: 13px; }
.footer-inner { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 37px; height: 37px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #fff; font-size: 13px; letter-spacing: .45px; }
.footer-brand span { margin-top: 1px; font-size: 12px; }
.footer-copy { white-space: nowrap; }

@media (max-width: 980px) {
    .header-title { display: none; }
    .brand img { max-width: 360px; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 62px; }
    .hero-copy { max-width: 820px; }
    .lookup-card { max-width: 650px; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid article { min-height: 0; }
    .form-grid.two-columns { grid-template-columns: 1fr; }
    .admin-heading { flex-direction: column; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 26px, 1180px); }
    .utility-inner { min-height: 29px; }
    .utility-inner > span { font-size: 9px; letter-spacing: .85px; }
    .main-header .header-inner { min-height: 75px; }
    .brand img { width: 250px; max-width: 72vw; }
    .hero-grid { min-height: 0; padding: 45px 0 52px; }
    .hero h1 { font-size: 37px; letter-spacing: -1px; }
    .hero-copy > p { font-size: 16px; }
    .hero-features { grid-template-columns: 1fr; }
    .hero-features > div { padding: 11px 12px; }
    .hero-features small { font-size: 11px; }
    .lookup-card, .result-panel, .steps-panel, .settings-card, .login-card { padding: 21px; border-radius: 15px; }
    .lookup-row { grid-template-columns: 1fr; }
    .lookup-row button { width: 100%; }
    .section-heading, .section-heading.compact { align-items: flex-start; flex-direction: column; }
    .section-heading h2 { font-size: 25px; }
    .section-description { text-align: left; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions > * { width: 100%; }
    .footer-inner { flex-direction: column; justify-content: center; padding: 20px 0; text-align: center; }
    .footer-brand { flex-direction: column; }

    .table-wrap { border: 0; overflow: visible; }
    .result-table, .result-table tbody, .result-table tr, .result-table td { display: block; width: 100%; min-width: 0; }
    .result-table thead { display: none; }
    .result-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 7px 20px rgba(5,77,61,.06); }
    .result-table td { display: grid; grid-template-columns: 42% 58%; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
    .result-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; }
    .download-button { width: 100%; }
}

@media (max-width: 430px) {
    .admin-link { font-size: 0; gap: 0; }
    .admin-link svg { width: 17px; height: 17px; }
    .hero h1 { font-size: 33px; }
    .lookup-card-head { align-items: flex-start; }
    .lookup-card h2 { font-size: 20px; }
    .result-table td { grid-template-columns: 39% 61%; }
}
