.amount-check-page #content-container {
    background: #f5f7f8;
}

.amount-check-page {
    background: #f5f7f8;
    color: #111;
}

.amount-check-page .hidden {
    display: none !important;
}

.amount-check-standalone {
    min-height: 100vh;
}

.standalone-topbar {
    border-bottom: 1px solid #dfe5e8;
    background: #fff;
}

.standalone-topbar-inner {
    display: flex;
    max-width: 1080px;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto;
    padding: 0 20px;
}

.standalone-brand {
    color: #111;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.standalone-context {
    color: #57636a;
    font-size: 14px;
    font-weight: 700;
}

.amount-check-standalone .amount-check-wrap {
    padding-top: 46px;
}

.amount-check-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 20px 56px;
}

.amount-check-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: stretch;
}

.amount-check-copy,
.amount-check-form,
.amount-check-result,
.amount-check-guide {
    background: #fff;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
}

.amount-check-copy {
    padding: 34px;
}

.amount-check-copy .eyebrow {
    color: #487400;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
}

.amount-check-copy h1 {
    color: #111;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
}

.amount-check-copy .lead {
    color: #333;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.amount-check-form {
    padding: 24px;
}

.upload-surface {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed #8a979e;
    border-radius: 8px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    background: #fbfcfd;
}

.upload-surface:hover,
.upload-surface:focus {
    border-color: #487400;
}

.upload-icon {
    width: 42px;
    height: 42px;
}

.upload-surface strong {
    color: #111;
    font-size: 20px;
}

.upload-surface span,
.selected-file-list,
.amount-check-status {
    color: #57636a;
    font-size: 14px;
    line-height: 1.5;
}

.selected-file-list {
    min-height: 22px;
    margin: 12px 0;
}

.selected-file-list:empty {
    display: none;
}

.selected-file-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #111;
    font-weight: 800;
}

.selected-file-summary span {
    color: #487400;
    font-size: 13px;
    font-weight: 800;
}

.selected-file-items {
    display: grid;
    gap: 8px;
}

.selected-file-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.selected-file-thumb {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #eef3f5;
    color: #487400;
    font-size: 12px;
    font-weight: 900;
}

.selected-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-file-name {
    overflow: hidden;
    color: #111;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-meta {
    margin-top: 3px;
    color: #68747b;
    font-size: 12px;
}

.date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    color: #111;
    font-weight: 700;
}

.date-row input {
    min-width: 170px;
    border: 1px solid #cbd4d9;
    border-radius: 8px;
    padding: 10px;
}

.amount-check-submit,
.result-cta {
    display: inline-block;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 14px 18px;
    background: #111;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.amount-check-submit:disabled {
    background: #89949a;
    cursor: wait;
}

.amount-check-status {
    margin: 12px 0 0;
}

.amount-check-result {
    margin-top: 28px;
    padding: 28px;
}

.amount-check-result h2,
.amount-check-guide h2 {
    color: #111;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 16px;
}

.amount-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #cfe2a4;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    background: #f8fbef;
}

.amount-total:not(:has(.result-cta)) {
    grid-template-columns: 1fr;
}

.amount-total strong {
    color: #111;
    font-size: 30px;
}

.amount-total span {
    color: #487400;
    font-weight: 800;
}

.amount-check-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
}

.amount-check-table th,
.amount-check-table td {
    border: 1px solid #dfe5e8;
    padding: 11px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.amount-check-table th {
    background: #f7f9fa;
    color: #222;
}

.amount-check-table > tbody:first-child th {
    width: 34%;
}

.amount-check-table:has(> thead) {
    table-layout: fixed;
}

.amount-check-table:has(> thead) th:nth-child(1),
.amount-check-table:has(> thead) td:nth-child(1) {
    width: 16%;
}

.amount-check-table:has(> thead) th:nth-child(2),
.amount-check-table:has(> thead) td:nth-child(2) {
    width: 22%;
}

.amount-check-table:has(> thead) th:nth-child(3),
.amount-check-table:has(> thead) td:nth-child(3) {
    width: 18%;
}

.amount-summary-table {
    table-layout: fixed;
}

.amount-summary-table th {
    width: 220px;
}

.amount-table-scroll {
    width: 100%;
    margin: 14px 0 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.amount-table-scroll .amount-check-table {
    margin: 0;
    table-layout: fixed;
}

.amount-ledger-event-table {
    min-width: 780px;
}

.amount-ledger-event-table th:nth-child(1),
.amount-ledger-event-table td:nth-child(1) {
    width: 150px;
}

.amount-ledger-event-table th:nth-child(2),
.amount-ledger-event-table td:nth-child(2) {
    width: 170px;
}

.amount-ledger-event-table th:nth-child(3),
.amount-ledger-event-table td:nth-child(3) {
    width: 140px;
}

.amount-ledger-trace-table {
    min-width: 960px;
}

.amount-ledger-trace-table th:nth-child(1),
.amount-ledger-trace-table td:nth-child(1) {
    width: 210px;
}

.amount-ledger-trace-table th:nth-child(2),
.amount-ledger-trace-table td:nth-child(2) {
    width: 250px;
}

.amount-ledger-trace-table th:nth-child(3),
.amount-ledger-trace-table td:nth-child(3) {
    width: 180px;
}

.warning-box {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    background: #fff4d8;
    color: #4a3900;
    line-height: 1.5;
}

.ocr-text {
    white-space: pre-wrap;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.amount-check-guide {
    margin-top: 28px;
    padding: 28px;
}

.standalone-note {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 44px;
    color: #68747b;
    font-size: 13px;
    line-height: 1.6;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.guide-grid div {
    border: 1px solid #dfe5e8;
    border-radius: 8px;
    padding: 18px;
}

.guide-grid h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.guide-grid p {
    color: #465057;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 820px) {
    .amount-check-tool,
    .guide-grid,
    .amount-total {
        grid-template-columns: 1fr;
    }

    .amount-check-copy h1 {
        font-size: 28px;
    }

    .amount-check-copy,
    .amount-check-form,
    .amount-check-result,
    .amount-check-guide {
        padding: 20px;
    }

    .amount-summary-table {
        table-layout: auto;
    }

    .amount-summary-table th {
        width: 44%;
    }

    .standalone-topbar-inner {
        min-height: 58px;
    }

    .standalone-context {
        display: none;
    }
}
