:root {
    --red: #e60012;
    --text: #666;
    --soft-text: #787878;
    --line: #e9e9e9;
    --row: #efefef;
    --dark: #252525;
    --admin-bg: #f5f6f8;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.navbar-top {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 68px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
}

.site-brand img {
    height: 36px;
    width: auto;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #b9b9b9;
    font-size: 23px;
    font-weight: 700;
}

.language-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.globe-icon {
    font-size: 25px;
    transform: translateY(-1px);
}

.tiny-caret {
    font-size: 13px;
}

.menu-button {
    width: 34px;
    height: 34px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 4px;
    width: 28px;
    border-radius: 2px;
    background: #c5c5c5;
}

.page-shell {
    width: 70%;
    max-width: 1344px;
    margin: 0 auto;
}

.hero-card {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    min-height: 585px;
    border-radius: 15px;
    background-color: #071121;
    background-position: center;
    background-size: cover;
}

.hero-copy {
    position: absolute;
    left: 10.3%;
    top: 20.5%;
    width: 48%;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
}

.hero-copy h1 strong {
    display: inline-block;
    margin-left: 8px;
    padding: 0 4px 1px;
    background: var(--red);
    color: #fff;
    line-height: 1;
}

.hero-copy h2 {
    margin: 0 0 14px;
    max-width: 620px;
    font-size: 32px;
    line-height: 1.16;
    font-weight: 900;
}

.hero-copy p {
    margin: 0;
    max-width: 610px;
    font-size: 18px;
    line-height: 1.32;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 84px;
    font-size: 16px;
}

.hero-features span {
    position: relative;
    padding-left: 34px;
    white-space: nowrap;
}

.hero-features span::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
}

.slider-dots {
    position: absolute;
    right: 4.2%;
    bottom: 7.5%;
    display: flex;
    gap: 8px;
}

.slider-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
}

.slider-dots span:first-child {
    background: #fff;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: center;
    gap: clamp(18px, 3%, 54px);
    margin: 22px 2% 46px;
    text-align: center;
}

.doc-item {
    display: block;
    max-width: 210px;
    min-width: 0;
    justify-self: center;
    color: #5f5f5f;
}

.doc-icon-frame {
    width: 194px;
    max-width: 100%;
    height: 194px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.doc-symbol {
    width: 154px;
    height: 154px;
    display: block;
    object-fit: contain;
}

.doc-icon-shield .doc-symbol {
    width: 170px;
    height: 170px;
}

.doc-icon-wrench .doc-symbol {
    width: 164px;
    height: 164px;
}

.doc-icon-box .doc-symbol {
    width: 166px;
    height: 166px;
}

.doc-icon-document .doc-symbol,
.doc-icon-certificate .doc-symbol {
    width: 154px;
    height: 154px;
}

.doc-circle {
    position: relative;
    display: block;
    width: 194px;
    height: 194px;
    max-width: 100%;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .15);
}

.doc-circle::before,
.doc-circle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.icon-shield::before {
    width: 74px;
    height: 86px;
    border: 8px solid var(--red);
    border-top-width: 12px;
    border-radius: 20px 20px 42px 42px;
}

.icon-shield::after {
    width: 43px;
    height: 22px;
    border-left: 8px solid var(--red);
    border-bottom: 8px solid var(--red);
    transform: translate(-50%, -52%) rotate(-45deg);
}

.icon-wrench::before {
    width: 82px;
    height: 82px;
    border: 8px solid var(--red);
    border-radius: 50%;
}

.icon-wrench::after {
    width: 86px;
    height: 18px;
    border-radius: 12px;
    background: var(--red);
    transform: translate(-30%, 20%) rotate(45deg);
}

.icon-box::before {
    width: 78px;
    height: 56px;
    border: 8px solid var(--red);
    transform: translate(-50%, -30%) rotate(30deg) skew(-10deg);
}

.icon-box::after {
    width: 72px;
    height: 72px;
    border: 8px solid var(--red);
    transform: translate(-50%, -55%) rotate(45deg);
}

.icon-document::before,
.icon-certificate::before {
    width: 78px;
    height: 96px;
    border: 8px solid var(--red);
    border-radius: 8px;
}

.icon-document::after {
    width: 48px;
    height: 8px;
    background: var(--red);
    box-shadow: 0 26px 0 var(--red), 0 52px 0 var(--red);
}

.icon-certificate::after {
    width: 18px;
    height: 18px;
    background: var(--red);
    transform: translate(24px, 22px) rotate(45deg);
}

.doc-label {
    display: block;
    font-size: 36px;
    line-height: 1.08;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.code-content {
    margin-top: 8px;
    margin-bottom: 40px;
}

.barcode-display {
    margin: 22px auto 24px;
    width: min(760px, 100%);
    padding: 12px 18px 14px;
    border-radius: 24px;
    background: var(--row);
    text-align: center;
}

.barcode-display span {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-size: 15px;
    font-weight: 800;
}

.barcode-display strong {
    display: block;
    color: #666;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.title-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--red);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
}

.title-text::before,
.title-text::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: var(--line);
}

.title-text span {
    display: inline-block;
    white-space: nowrap;
}

.anti-row {
    display: grid;
    grid-template-columns: 31.8% 1fr;
    align-items: center;
    margin-top: 20px;
}

.anti-label {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 13px;
    padding-right: 20px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
}

.mini-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--red);
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.mini-icon.level {
    border: 3px solid var(--red);
    border-radius: 10px;
}

.mini-icon.layers {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M16 4 29 11 16 18 3 11 16 4Z' stroke='%23e60012' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M29 16 16 23 3 16' stroke='%23e60012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M29 21 16 28 3 21' stroke='%23e60012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.anti-value {
    min-height: 42px;
    padding: 0 22px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--row);
    color: #707070;
    font-size: 17px;
    font-weight: 800;
}

.spec-section,
.company-section,
.cert-section {
    margin-top: 48px;
    margin-bottom: 72px;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #68717b;
    font-size: 18px;
}

.spec-table {
    margin-top: 20px;
}

.info-table td {
    height: 41px;
    padding: 0 24px;
    vertical-align: middle;
}

.info-table tr.strip td {
    background: var(--row);
}

.info-table tr.strip td:first-child {
    border-top-left-radius: 19px;
    border-bottom-left-radius: 19px;
}

.info-table tr.strip td:last-child {
    border-top-right-radius: 19px;
    border-bottom-right-radius: 19px;
}

.spec-table td:first-child {
    text-align: left;
}

.spec-table td:last-child {
    text-align: right;
}

.spec-table .stc-note td {
    height: 42px;
    text-align: center;
}

.company-table {
    margin-top: 22px;
    text-align: center;
}

.company-table td {
    height: 42px;
}

.company-table a {
    color: #787878;
}

.cert-bar {
    min-height: 42px;
    margin: 27px 0 42px;
    padding: 10px 16px;
    border-radius: 22px;
    background: var(--row);
    color: #68717b;
    font-size: 18px;
    text-align: center;
}

.cert-image-wrap {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.cert-reference-image {
    width: 100%;
    max-width: 1500px;
    height: auto;
    margin: 0 auto;
}

.cert-user-icons {
    display: grid;
    grid-template-columns: 132px 180px 132px 132px 132px;
    align-items: center;
    justify-content: center;
    column-gap: 54px;
    margin: 0 auto 22px;
    width: 100%;
}

.cert-user-icons img {
    width: 100%;
    height: 132px;
    object-fit: contain;
    display: block;
}

.cert-user-icons img:nth-child(2) {
    height: 132px;
}

.cert-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 66px;
    margin: 0 auto 24px;
}

.cert {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    color: #000;
    font-weight: 900;
}

.cert.ce {
    width: 210px;
    font-size: 118px;
    letter-spacing: 0;
}

.cert.tuv {
    border: 5px solid #000;
    border-radius: 12px;
    font-size: 33px;
}

.cert.square::before {
    content: "";
    width: 105px;
    height: 105px;
    border: 10px solid #000;
}

.cert.square::after {
    content: "";
    position: absolute;
    width: 47px;
    height: 47px;
    border: 10px solid #000;
}

.cert.warning::before {
    content: "";
    position: absolute;
    width: 112px;
    height: 96px;
    border-left: 10px solid #000;
    border-bottom: 10px solid #000;
    transform: rotate(-45deg);
}

.cert.warning::after {
    content: "⚡";
    position: relative;
    font-size: 54px;
}

.cert.weee::before {
    content: "";
    position: absolute;
    width: 76px;
    height: 80px;
    border: 6px solid #000;
    border-top-width: 12px;
}

.cert.weee::after {
    content: "";
    position: absolute;
    width: 118px;
    height: 4px;
    background: #000;
    transform: rotate(-45deg);
    box-shadow: 0 58px 0 #000;
}

.cert-note {
    margin: 0 0 8px;
    color: #686868;
    font-size: 38px;
    line-height: 1.2;
    text-align: center;
}

.serial-footnote {
    display: none;
}

.footer {
    position: relative;
    margin-top: 0;
    background: var(--dark);
    color: #aaa;
    text-align: center;
}

.footer::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: -24px;
    width: 132px;
    height: 24px;
    background: var(--dark);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: translateX(-50%);
}

.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 20px 66px;
}

.footer-logo {
    color: #fff;
    font-size: 88px;
    line-height: .95;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
}

.footer-logo img {
    width: min(420px, 84vw);
    max-height: 112px;
    height: auto;
    object-fit: contain;
}

.footer-rule {
    width: 335px;
    max-width: 80%;
    height: 5px;
    margin: 22px auto 24px;
    background: #494949;
}

.footer-tagline {
    margin: 0 0 18px;
    color: #aaa;
    font-size: 24px;
}

.follow-title {
    margin: 0 0 18px;
    color: #555;
    font-size: 26px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-media a {
    width: 59px;
    height: 59px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #555;
    color: #d4d4d4;
    font-size: 22px;
    font-weight: 800;
}

.copyright {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #777;
    font-size: 16px;
}

.empty-state,
.scanner-card,
.admin-card,
.admin-head {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.empty-state {
    margin: 70px auto;
    padding: 48px 30px;
    text-align: center;
}

.empty-state h1 {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 30px;
}

.missing-serial {
    display: inline-block;
    margin: 8px 0 22px;
    padding: 10px 18px;
    border-radius: 20px;
    background: var(--row);
    font-weight: 800;
}

.primary-button,
.ghost-button,
.manual-row button,
.record-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
}

.primary-button,
.manual-row button {
    background: var(--red);
    color: #fff;
}

.ghost-button {
    border: 1px solid #d7d7d7;
    background: #fff;
    color: #555;
}

.scanner-shell {
    max-width: 760px;
}

.scanner-card {
    margin: 50px auto;
    padding: 28px;
}

.scanner-frame {
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #111;
}

.scanner-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-corners::before,
.scan-corners::after {
    content: "";
    position: absolute;
    inset: 11%;
    border: 4px solid rgba(230, 0, 18, .9);
}

.scan-corners::after {
    inset: 17%;
    border-color: rgba(255, 255, 255, .6);
}

.barcode-guide {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 50%;
    height: 3px;
    border-radius: 999px;
    background: rgba(230, 0, 18, .95);
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .08), 0 0 18px rgba(230, 0, 18, .55);
    transform: translateY(-50%);
}

.barcode-guide::before,
.barcode-guide::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--red);
    transform: translateY(-50%);
}

.barcode-guide::before {
    left: -3px;
}

.barcode-guide::after {
    right: -3px;
}

.scan-status {
    text-align: center;
    line-height: 1.35;
}

.manual-form {
    margin-top: 24px;
}

.manual-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.manual-row {
    display: flex;
    gap: 10px;
}

.manual-row input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
}

.admin-shell {
    width: min(1180px, 94%);
    max-width: none;
    padding: 28px 0 56px;
}

.admin-shell,
.admin-shell input,
.admin-shell textarea,
.admin-shell select,
.admin-shell button {
    font-family: Arial, Helvetica, sans-serif;
}

.admin-head {
    margin-bottom: 18px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-head h1,
.admin-card h2,
.admin-card h3,
.install-card h1 {
    color: #333;
}

.admin-head h1,
.admin-card h2 {
    margin: 0 0 6px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.admin-card {
    margin-bottom: 18px;
    padding: 22px;
}

.admin-form label {
    display: block;
    margin-bottom: 14px;
    color: #555;
    font-size: 13px;
    font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 9px 11px;
    color: #333;
    background: #fff;
    font-size: 15px;
}

.admin-form textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 12px;
}

.form-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.check-line input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.compact-form {
    max-width: 520px;
}

.login-card,
.install-card {
    max-width: 620px;
    margin: 40px auto;
}

.notice {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.notice.success {
    background: #e8f7ed;
    color: #24743d;
}

.notice.error {
    background: #fde8ea;
    color: #9c0b16;
}

.admin-list {
    display: grid;
    gap: 8px;
}

.list-row {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.list-row small {
    display: block;
    margin-top: 3px;
    color: #999;
}

.list-row a,
.admin-table a {
    color: var(--red);
    font-weight: 800;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e6e6e6;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #333;
    background: #f3f3f3;
}

.record-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.record-actions form {
    margin: 0;
}

.record-actions button {
    min-height: 30px;
    padding: 5px 10px;
    background: #f3f3f3;
    color: #8a1018;
}

@media (max-width: 1500px) {
    .hero-card {
        min-height: 430px;
    }

    .hero-copy {
        width: 45%;
    }

    .hero-copy h1 {
        margin-bottom: 18px;
        font-size: 38px;
    }

    .hero-copy h2 {
        font-size: 28px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-features {
        margin-top: 34px;
        gap: 18px;
        font-size: 13px;
    }

    .doc-label {
        font-size: 28px;
    }

    .doc-circle {
        width: 194px;
        height: 194px;
    }

    .doc-icon-frame {
        width: 194px;
        height: 194px;
    }

    .doc-symbol {
        width: 154px;
        height: 154px;
    }

    .doc-icon-shield .doc-symbol,
    .doc-icon-wrench .doc-symbol {
        width: 166px;
        height: 166px;
    }
}

@media (max-width: 1100px) {
    .page-shell {
        width: 88%;
    }

    .hero-card {
        min-height: 360px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy h2 {
        font-size: 25px;
    }

    .hero-features {
        margin-top: 42px;
        gap: 14px;
        font-size: 14px;
    }

    .doc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .doc-item {
        max-width: 210px;
    }

    .cert-icons {
        gap: 28px;
        flex-wrap: wrap;
    }

    .cert-user-icons {
        grid-template-columns: 108px 148px 108px 108px 108px;
        column-gap: 30px;
    }

    .cert-user-icons img {
        height: 108px;
    }

    .cert-user-icons img:nth-child(2) {
        height: 108px;
    }

    .cert-note {
        font-size: 26px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .navbar-top {
        height: 62px;
        padding: 0 14px;
    }

    .site-brand img {
        height: 30px;
    }

    .top-actions {
        gap: 14px;
        font-size: 16px;
    }

    .page-shell {
        width: 94%;
    }

    .hero-card {
        min-height: 410px;
        margin-top: 14px;
        border-radius: 12px;
        background-position: 66% center;
    }

    .hero-copy {
        left: 7%;
        top: 12%;
        width: 82%;
    }

    .hero-copy h1 {
        font-size: 31px;
        margin-bottom: 18px;
    }

    .hero-copy h2 {
        max-width: 360px;
        font-size: 24px;
    }

    .hero-copy p {
        max-width: 330px;
        font-size: 15px;
    }

    .hero-features {
        margin-top: 34px;
        flex-direction: column;
    }

    .doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
        margin-top: 28px;
    }

    .doc-item {
        max-width: 150px;
        min-width: 0;
    }

    .doc-item:nth-child(5) {
        grid-column: 1 / -1;
    }

    .doc-circle {
        width: 104px;
        height: 104px;
        margin-bottom: 12px;
    }

    .doc-icon-frame {
        width: 112px;
        height: 112px;
        margin-bottom: 12px;
    }

    .doc-symbol,
    .doc-icon-document .doc-symbol,
    .doc-icon-certificate .doc-symbol {
        width: 94px;
        height: 94px;
    }

    .doc-icon-shield .doc-symbol,
    .doc-icon-wrench .doc-symbol,
    .doc-icon-box .doc-symbol {
        width: 104px;
        height: 104px;
    }

    .doc-label {
        font-size: 19px;
        line-height: 1.12;
    }

    .title-text {
        font-size: 18px;
    }

    .barcode-display {
        margin: 18px auto 22px;
        padding: 10px 12px 12px;
        border-radius: 18px;
    }

    .barcode-display span {
        font-size: 13px;
    }

    .barcode-display strong {
        font-size: 17px;
    }

    .anti-row {
        grid-template-columns: 112px 1fr;
    }

    .anti-label {
        padding-right: 10px;
    }

    .anti-value,
    .info-table,
    .cert-bar {
        font-size: 15px;
    }

    .info-table td {
        padding: 0 14px;
    }

    .cert {
        width: 64px;
        height: 64px;
    }

    .cert.ce {
        width: 76px;
        font-size: 46px;
    }

    .cert.tuv {
        border-width: 4px;
        border-radius: 8px;
        font-size: 20px;
    }

    .cert.square::before {
        width: 55px;
        height: 55px;
        border-width: 7px;
    }

    .cert.square::after {
        width: 24px;
        height: 24px;
        border-width: 7px;
    }

    .cert.warning::before {
        width: 60px;
        height: 52px;
        border-left-width: 7px;
        border-bottom-width: 7px;
    }

    .cert.warning::after {
        font-size: 30px;
    }

    .cert.weee::before {
        width: 42px;
        height: 44px;
        border-width: 4px;
        border-top-width: 8px;
    }

    .cert.weee::after {
        width: 70px;
        height: 3px;
        box-shadow: 0 36px 0 #000;
    }

    .cert-user-icons {
        grid-template-columns: 42px 62px 44px 44px 44px;
        column-gap: 10px;
        margin-bottom: 14px;
    }

    .cert-user-icons img {
        height: 50px;
    }

    .cert-user-icons img:nth-child(2) {
        height: 50px;
    }

    .cert-note {
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
        font-size: 17px;
        line-height: 1.18;
    }

    .footer::before {
        top: -18px;
        width: 96px;
        height: 18px;
    }

    .footer-inner {
        padding-top: 44px;
        padding-bottom: 46px;
    }

    .footer-logo {
        font-size: 48px;
        min-height: 62px;
    }

    .footer-logo img {
        width: min(270px, 82vw);
        max-height: 72px;
    }

    .footer-tagline {
        font-size: 18px;
    }

    .form-row.two,
    .form-row.three,
    .admin-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .scanner-card {
        margin: 28px auto;
        padding: 18px 14px;
    }

    .scanner-frame {
        margin-top: 18px;
        aspect-ratio: 16 / 10;
    }

    .manual-row {
        flex-direction: column;
    }

    .manual-row input {
        min-height: 44px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .cert-user-icons {
        grid-template-columns: 38px 56px 40px 40px 40px;
        column-gap: 7px;
    }

    .cert-user-icons img,
    .cert-user-icons img:nth-child(2) {
        height: 44px;
    }

    .cert-note {
        font-size: 16px;
    }
}
