* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-width: 300px;
    min-height: 100%;
}

body,
button,
input,
select,
textarea {
    color: #333333;
    font-family: "Microsoft YaHei", SimHei, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

body {
    background: #d0d0d0;
    text-align: center;
}

a {
    color: #0180CF;
    text-decoration: none;
}

a:hover,
a:focus {
    color: green;
}

.page {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-open .page {
    overflow: hidden;
}

.site-shell {
    display: flex;
    width: 100%;
    max-width: 1700px;
    min-height: 100%;
    margin: 0 auto;
    flex-direction: column;
    background: #F0F0F0;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    width: 100%;
    min-height: 40px;
    background: #0180CF;
}

.site-header a {
    display: block;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 40px;
}

.site-main {
    width: 100%;
    padding: 28px 0 40px;
    flex: 1;
}

#query-form {
    width: 100%;
    margin: 0;
    text-align: left;
}

.query-workspace,
.query-meta,
.notice {
    width: 92%;
    margin-right: auto;
    margin-left: auto;
}

.query-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.query-fields,
.query-fields-column {
    display: grid;
    gap: 12px;
}

.query-mode-hint {
    min-height: 20px;
    color: #666666;
    font-size: 12px;
}

.dataset-select,
.query-field {
    position: relative;
    width: 100%;
    min-height: 40px;
    border: 1px solid #CACACA;
    background: #FFFFFF;
}

.dataset-select select,
.text-input {
    width: 100%;
    min-height: 40px;
    border: 0;
    outline: none;
    background: #FFFFFF;
    color: #333333;
}

.dataset-select select {
    padding: 0 38px 0 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    background-image: none !important;
}

.dataset-select select::-ms-expand {
    display: none;
}

.dataset-select::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #70777D;
    border-bottom: 2px solid #70777D;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.text-input {
    padding: 4px 12px;
}

.query-field:focus-within,
.dataset-select:focus-within {
    border-color: #0180CF;
}

.query-field.is-valid,
.dataset-select.is-valid {
    border-color: green;
}

.query-field.is-invalid,
.dataset-select.is-invalid {
    border-color: red;
}

.captcha-button {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 58px;
    height: 26px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.captcha-button img {
    display: block;
    width: 50px;
    height: 20px;
}

.actions {
    display: flex;
    width: 92%;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 16px;
    margin-bottom: 16px;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.home-actions {
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
    flex-wrap: nowrap;
    justify-content: center;
}

.button {
    display: inline-flex;
    min-width: 104px;
    min-height: 40px;
    padding: 8px 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid #0180CF;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.button:active {
    transform: scale(0.98);
}

.button-primary {
    background: #0180CF;
    color: #FFFFFF;
}

.button-primary:hover,
.button-primary:focus {
    background: #FFFFFF;
    color: #0180CF;
}

.button-secondary {
    background: #FFFFFF;
    color: #0180CF;
}

.button-secondary:hover,
.button-secondary:focus {
    background: #0180CF;
    color: #FFFFFF;
}

.client-ip {
    margin: 0;
    color: #374151;
    text-align: left;
}

.query-meta {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feedback-link {
    flex: 0 0 auto;
    padding: 4px 0;
    border-bottom: 1px solid currentColor;
    color: #016EAf;
    font-weight: bold;
    line-height: 1.3;
}

.feedback-link:hover,
.feedback-link:focus {
    border-bottom-color: green;
}

.home-information {
    width: 92%;
    margin: 24px auto 0;
    text-align: left;
}

.home-intro {
    padding: 20px 24px;
    border-left: 4px solid #0180CF;
    background: #FFFFFF;
}

.markdown-content h2 {
    margin-bottom: 8px;
    color: #1A1A1A;
    font-size: 18px;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol {
    margin-top: 8px;
    line-height: 1.7;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 24px;
}

.home-stats {
    display: grid;
    margin-top: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-stat {
    min-height: 88px;
    padding: 16px;
    border: 1px solid #DCE3E8;
    border-radius: 6px;
    background: #FFFFFF;
}

.home-stat strong,
.home-stat span {
    display: block;
}

.home-stat strong {
    color: #1A1A1A;
    font-size: 20px;
}

.home-stat span {
    margin-top: 4px;
    color: #666666;
}

.home-recent {
    margin-top: 16px;
    padding: 20px 24px;
    border-top: 3px solid #0180CF;
    background: #FFFFFF;
}

.home-recent h2 {
    margin-bottom: 12px;
    color: #1A1A1A;
    font-size: 18px;
}

.home-recent-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.home-recent-list a {
    display: flex;
    min-width: 0;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #EDF0F2;
}

.home-recent-list span {
    min-width: 0;
    overflow: hidden;
    color: #333333;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-recent-list small {
    color: #666666;
    white-space: nowrap;
}

.notice {
    margin-top: 24px;
    text-align: left;
}

.public-stats {
    width: 92%;
    margin: 20px auto 0;
    padding: 18px 20px 20px;
    border: 1px solid #D3D9DE;
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(28, 39, 49, 0.05);
    text-align: left;
}

.public-stats-heading {
    display: flex;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-stats-heading h2 {
    color: #252A2E;
    font-size: 16px;
}

.public-stats-period {
    color: #777F86;
    font-size: 12px;
    white-space: nowrap;
}

.public-stats-overview {
    display: grid;
    margin-top: 12px;
    border: 1px solid #E2E6E9;
    border-radius: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-stats-metric {
    display: flex;
    min-height: 66px;
    padding: 12px 16px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.public-stats-metric + .public-stats-metric {
    border-left: 1px solid #ECEFF1;
}

.public-stats-metric strong {
    color: #252A2E;
    font-size: 23px;
    line-height: 1;
}

.public-stats-metric span {
    color: #777F86;
    font-size: 12px;
    white-space: nowrap;
}

.public-stats-hot-heading {
    display: flex;
    margin: 18px 4px 8px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-stats-hot-heading h3 {
    color: #343A40;
    font-size: 14px;
}

.public-stats-hot-heading span {
    color: #8A9197;
    font-size: 12px;
}

.public-stats-ranking strong {
    color: #4A5157;
    font-size: 12px;
    text-align: right;
}

.public-stats-bar-track {
    height: 5px;
    overflow: hidden;
    margin-top: 6px;
    background: #E8EBED;
}

.public-stats-bar-track i {
    display: block;
    height: 100%;
    min-width: 0;
    background: #33826A;
}

.public-stats-ranking li:nth-child(3n + 2) .public-stats-bar-track i {
    background: #397DA7;
}

.public-stats-ranking li:nth-child(3n) .public-stats-bar-track i {
    background: #B26D36;
}

.public-stats-ranking {
    display: grid;
    margin: 0 4px;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    list-style: none;
}

.public-stats-ranking li {
    display: grid;
    min-width: 0;
    padding: 9px 0;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.public-stats-rank {
    color: #747C82;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.public-stats-ranking-body {
    min-width: 0;
}

.public-stats-ranking-line {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-stats-name {
    min-width: 0;
    overflow: hidden;
    color: #33393E;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sponsor-content {
    width: 100%;
    margin-top: 24px;
    text-align: center;
}

.sponsor-gallery {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.sponsor-gallery:empty {
    display: none;
    margin: 0;
}

.sponsor-gallery .sponsor-image-wide {
    width: calc(57% - 8px);
}

.sponsor-gallery .sponsor-image-narrow {
    width: calc(43% - 8px);
}

.sponsor-image {
    display: block;
    max-width: 100%;
    height: 0;
    visibility: hidden;
    border: 0;
    object-fit: contain;
}

.sponsor-image.is-loaded {
    height: auto;
    visibility: visible;
}

.sponsor-image.is-failed {
    display: none !important;
}

.sponsor-content > a:empty {
    display: none;
}

.sponsor-content > a {
    display: block;
    width: 100%;
}

.sponsor-content > a .sponsor-image,
.sponsor-content > .sponsor-image {
    width: 100%;
}

.sponsor-text {
    margin: 28px 0 14px;
    color: #333333;
    font-size: 16px;
}

.sponsor-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.sponsor-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.sponsor-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    padding: 28px;
    overflow-y: auto;
    border-top: 4px solid #0180CF;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
    color: #333333;
    text-align: left;
}

.sponsor-modal-dialog:focus {
    outline: none;
}

.sponsor-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #666666;
    cursor: pointer;
    font-size: 28px;
    line-height: 36px;
}

.sponsor-modal-close:hover,
.sponsor-modal-close:focus {
    color: #0180CF;
}

.sponsor-modal-close:focus {
    border-radius: 6px;
    outline: 2px solid #0180CF;
    outline-offset: 2px;
}

.sponsor-modal-content h1 {
    padding-right: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-size: 20px;
    line-height: 1.35;
}

.sponsor-modal-title {
    padding-right: 32px;
    margin-bottom: 16px;
    color: #1A1A1A;
    font-size: 20px;
    line-height: 1.35;
}

.sponsor-modal-content p,
.sponsor-modal-content ul,
.sponsor-modal-content ol {
    margin-top: 12px;
    line-height: 1.7;
}

.sponsor-modal-content ul,
.sponsor-modal-content ol {
    padding-left: 24px;
}

.sponsor-modal-content strong {
    color: #1a1a1a;
}

.sponsor-modal-content hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid #E5E7EB;
}

.sponsor-modal-actions {
    display: flex;
    margin-top: 24px;
    justify-content: flex-end;
}

.sponsor-modal-actions .button {
    width: auto;
}

.result-container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
}

.result-table-scroll {
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-top: 4px solid #0180CF;
    border-left: 1px solid #A2C6D3;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 13px;
}

.result-summary {
    padding: 16px 20px;
    border: 1px solid #A2C6D3;
    border-bottom: 0;
    background: #FFFFFF;
    text-align: center;
}

.result-title,
.result-sponsor {
    display: block;
}

.result-title {
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: bold;
}

.result-title-suffix {
    white-space: nowrap;
}

.result-sponsor {
    color: #333333;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.7;
}

.result-table th,
.result-table td {
    min-width: 56px;
    padding: 10px 8px;
    border-right: 1px solid #A2C6D3;
    border-bottom: 1px solid #A2C6D3;
    word-break: break-all;
}

.result-table th {
    background: #E5F2FA;
    color: #1a1a1a;
    font-weight: bold;
}

.result-table tbody tr:nth-child(even) td {
    background: #F8FBFC;
}

.result-table tbody tr:hover td {
    background: #EEF7FA;
}

.result-image {
    width: 50%;
    min-width: 88px;
    max-width: 188px;
    height: auto;
}

.empty-result {
    padding: 24px;
    text-align: center;
}

.result-note {
    color: green;
    text-align: left;
}

.result-actions {
    width: 92%;
    max-width: 1600px;
}

.site-footer {
    width: 100%;
    min-height: 32px;
    padding: 5px 12px;
    background: #ADADAD;
    color: #000;
    text-shadow: 0 1px 1px #FFFFFF;
}

.site-footer-separator {
    margin: 0 8px;
    color: #666666;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-page {
    min-height: 100vh;
    padding: 32px 16px;
    overflow: auto;
    background: #F0F0F0;
}

.contact-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.contact-main h1 {
    margin-bottom: 8px;
    font-size: 24px;
    text-align: center;
}

.contact-intro {
    margin: 0 0 24px;
    color: #5B6570;
    line-height: 1.7;
    text-align: center;
}

.contact-section {
    padding: 22px 0 26px;
    border-top: 1px solid #D2D6DA;
}

.contact-section h2 {
    margin: 0 0 4px;
    color: #222222;
    font-size: 18px;
}

.contact-section > p {
    margin: 0 0 14px;
    color: #65707A;
}

.contact-section > .feedback-recent-note {
    margin: -6px 0 12px;
    color: #2F6F49;
    font-size: 13px;
}

.feedback-receipt {
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 1px solid #A8CFB3;
    border-left: 4px solid #278746;
    border-radius: 6px;
    background: #F7FCF8;
}

.feedback-receipt-kicker {
    color: #24733B;
    font-size: 13px;
    font-weight: bold;
}

.feedback-receipt h2 {
    margin: 4px 0 14px;
    font-size: 20px;
}

.feedback-receipt-code {
    margin: 0 0 12px;
    color: #122C1A;
    font: bold 20px/1.5 Consolas, "SFMono-Regular", monospace;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.feedback-receipt > p:last-child {
    margin: 0;
    color: #526159;
    line-height: 1.65;
}

.contact-form label {
    display: block;
    margin: 16px 0 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #CACACA;
    border-radius: 6px;
    background: #FFFFFF;
    outline: none;
}

.contact-form input {
    min-height: 40px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0180CF;
}

.feedback-captcha-field {
    position: relative;
    width: 100%;
    min-height: 40px;
    margin-top: 16px;
    border: 1px solid #CACACA;
    border-radius: 6px;
    background: #FFFFFF;
}

.feedback-captcha-field .text-input {
    min-height: 38px;
    padding-right: 76px;
    border: 0;
}

.feedback-captcha-field .captcha-button {
    top: 6px;
    right: 8px;
}

.feedback-captcha-field:focus-within {
    border-color: #0180CF;
}

.contact-lookup {
    margin-top: 6px;
}

.feedback-lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
}

.feedback-lookup-form input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #BFC5CA;
    border-radius: 6px;
    background: #FFFFFF;
    font: 15px/1.4 Consolas, "SFMono-Regular", monospace;
    outline: none;
}

.feedback-lookup-form input:focus {
    border-color: #0180CF;
}

#feedback-lookup-result .form-status {
    margin-top: 14px;
}

.feedback-reply {
    margin-top: 16px;
    border: 1px solid #C8CDD2;
    border-radius: 6px;
    background: #FFFFFF;
}

.feedback-reply-heading {
    display: flex;
    min-height: 48px;
    padding: 10px 14px;
    border-bottom: 1px solid #D8DCE0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-reply-heading strong {
    font: bold 14px/1.5 Consolas, "SFMono-Regular", monospace;
    overflow-wrap: anywhere;
}

.feedback-status {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid #BCC4CB;
    border-radius: 4px;
    background: #F4F5F6;
    color: #48525B;
    font-size: 12px;
    font-weight: bold;
}

.feedback-status-replied {
    border-color: #9DCBA9;
    background: #EFF9F1;
    color: #246E39;
}

.feedback-status-closed {
    border-color: #AFC3D1;
    background: #F0F6FA;
    color: #315D78;
}

.feedback-reply dl {
    margin: 0;
}

.feedback-reply dl > div {
    display: grid;
    padding: 12px 14px;
    grid-template-columns: 92px minmax(0, 1fr);
    border-bottom: 1px solid #ECEEEF;
    gap: 12px;
}

.feedback-reply dl > div:last-child {
    border-bottom: 0;
}

.feedback-reply dt,
.feedback-reply dd {
    margin: 0;
    line-height: 1.65;
}

.feedback-reply dt {
    color: #69737C;
}

.feedback-reply dd {
    color: #222222;
    overflow-wrap: anywhere;
}

.form-status {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #CACACA;
    background: #FFFFFF;
    text-align: center;
}

.form-status-success {
    color: green;
}

.form-status-error {
    color: red;
}

@media screen and (max-width: 766px) {
    .site-main {
        padding: 16px 0 24px;
    }

    .contact-page {
        padding: 22px 14px;
    }

    .feedback-receipt {
        padding: 17px 16px;
    }

    .feedback-receipt-code {
        font-size: 17px;
    }

    .feedback-lookup-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .feedback-reply dl > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .query-workspace {
        width: calc(100% - 24px);
        gap: 12px;
    }

    .home-actions {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    .query-meta,
    .notice,
    .home-information,
    .public-stats {
        width: calc(100% - 24px);
    }

    .query-meta {
        margin-top: 16px;
    }

    .home-intro,
    .home-recent {
        padding: 16px;
    }

    .public-stats {
        padding: 15px 13px 17px;
    }

    .public-stats-heading {
        align-items: center;
    }

    .public-stats-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .public-stats-metric {
        min-height: 60px;
        padding: 10px 8px;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .public-stats-metric strong {
        font-size: 19px;
    }

    .public-stats-metric span {
        font-size: 11px;
    }

    .public-stats-ranking {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }

    .home-stats,
    .home-recent-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-recent-list a {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .home-actions .button {
        min-width: 0;
    }

    .sponsor-content {
        margin-top: 20px;
    }

    .sponsor-gallery {
        gap: 12px;
    }

    .sponsor-gallery .sponsor-image-wide,
    .sponsor-gallery .sponsor-image-narrow {
        width: 100%;
    }

    .sponsor-text {
        margin-top: 24px;
        font-size: 15px;
    }

    .sponsor-modal {
        padding: 12px;
    }

    .sponsor-modal-dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 20px 20px;
    }

    .sponsor-modal-content h1 {
        font-size: 18px;
    }

    .result-container {
        width: calc(100% - 24px);
        max-width: none;
        overflow: visible;
    }

    .result-table,
    .result-table tbody,
    .result-table tr,
    .result-table td {
        display: block;
        width: 100%;
    }

    .result-table {
        border: 0;
        background: transparent;
    }

    .result-summary {
        display: block;
        width: 100%;
        padding: 18px 16px;
        margin-bottom: 12px;
        border: 1px solid #A2C6D3;
        border-top: 3px solid #0180CF;
        border-radius: 6px;
        background: #FFFFFF;
        overflow-wrap: anywhere;
        text-align: left;
        word-break: normal;
    }

    .result-table-scroll {
        overflow: visible;
    }

    .result-title {
        margin-bottom: 12px;
        font-size: 17px;
        line-height: 1.5;
    }

    .result-sponsor {
        color: #374151;
        font-size: 13px;
        line-height: 1.75;
    }

    .result-table thead {
        display: none;
    }

    .result-table tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid #A2C6D3;
        border-top: 3px solid #0180CF;
        border-radius: 6px;
        background: #FFFFFF;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .result-table td {
        display: flex;
        min-height: 48px;
        padding: 12px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid #DCE8ED;
        font-size: 14px;
        line-height: 1.55;
        text-align: right;
    }

    .result-table td:nth-child(even) {
        background: #F8FBFC;
    }

    .result-table td::before {
        max-width: none;
        flex: 0 0 44%;
        content: attr(data-label);
        color: #374151;
        font-weight: bold;
        text-align: left;
    }

    .result-table .result-value {
        min-width: 0;
        flex: 1 1 auto;
        text-align: right;
        word-break: break-all;
    }

    .result-table td.is-empty {
        display: none;
    }

    .result-table td.empty-result {
        display: block;
        padding: 28px 16px;
        text-align: center;
    }

    .result-table td.empty-result::before {
        display: none;
    }

    .result-table td.empty-result .result-value {
        text-align: center;
    }

    .result-table td:last-child {
        border-bottom: 0;
    }

    .result-actions {
        display: grid;
        width: calc(100% - 24px);
        max-width: none;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }
}

@media screen and (max-width: 370px) {
    .home-actions,
    .result-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .sponsor-modal {
        transition: none;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    #print-area,
    #print-area * {
        visibility: visible;
    }

    #print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
    }
}
