.bmstv-public {
    --bms-ink: #122640;
    --bms-accent: #9e6b1e;
    max-width: 760px;
    margin: 2rem auto;
    color: var(--bms-ink);
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    overflow: hidden;
}

.bmstv-public-header {
    padding: clamp(1.25rem, 4vw, 2rem);
    color: #fff;
    background: var(--bms-ink);
    border-bottom: 4px solid #d4a550;
}

.bmstv-public-header p {
    margin: 0 0 .3rem;
    color: #f0d9ad;
    font-weight: 650;
}

.bmstv-public-header h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.bmstv-public-body { padding: clamp(1rem, 4vw, 2rem); }
.bmstv-lookup label { display: block; font-weight: 700; margin-bottom: .5rem; }
.bmstv-lookup-row { display: flex; gap: .6rem; flex-wrap: wrap; }

.bmstv-lookup-row input {
    flex: 1 1 14rem;
    min-width: 0;
    width: 100%;
    padding: .65rem .8rem;
    color: var(--bms-ink);
    background: #fff;
    border: 1px solid #99a9bc;
    border-radius: 6px;
}

.bmstv-lookup-row button {
    min-height: 44px;
    padding: .62rem 1rem;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--bms-ink);
    cursor: pointer;
    font-weight: 700;
}

.bmstv-public :focus-visible { outline: 3px solid #b78536; outline-offset: 3px; }
.bmstv-result, .bmstv-message {
    background: #f5f8fc;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.bmstv-result:first-child { margin-top: 0; }
.bmstv-result-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .8rem; }
.bmstv-result-heading h3 { margin: 0; color: inherit; overflow-wrap: anywhere; font-size: 1.2rem; }
.bmstv-status { background: #ffedd0; color: #783d08; border-radius: 999px; padding: .15rem .65rem; font-weight: 700; }
.bmstv-status-valid { background: #dcf3e7; color: #075b36; }
.bmstv-status-revoked, .bmstv-status-withdrawn { background: #fae2e1; color: #8d2020; }
.bmstv-result dl { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .4rem 1rem; margin: 1rem 0 0; }
.bmstv-result dt { font-weight: 700; }
.bmstv-result dd { margin: 0; overflow-wrap: anywhere; }
.bmstv-contact { margin: 1.2rem 0 0; color: #445773; font-size: .93rem; }
.bmstv-contact a { color: #744a12; text-decoration: underline; }

@media (max-width: 480px) {
    .bmstv-result dl { grid-template-columns: 1fr; gap: .1rem; }
    .bmstv-result dd { margin-bottom: .5rem; }
    .bmstv-lookup-row button { width: 100%; }
}
