* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 24px 16px;
    color: #333;
    background: #f4f7f9;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
.file-page { max-width: 480px; margin: 24px auto; }
.file-panel {
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
h1 { margin: 0 0 24px; color: #85430b; font-size: 24px; text-align: center; }
h2 { margin: 24px 0 12px; font-size: 18px; }
.user-name { margin: 0 0 20px; text-align: center; overflow-wrap: anywhere; }
label { display: block; margin: 0 0 8px; font-weight: bold; }
input:not([type="hidden"]) {
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: 2px solid #d7dce0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}
input:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 3px;
}
.primary-button {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 12px 8px;
    border: 2px solid #f3c797;
    border-radius: 8px;
    color: #85430b;
    background: #ffead5;
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.primary-button:hover { background: #ffe0bd; }
.primary-button:disabled { color: #777; background: #eee; border-color: #ddd; cursor: default; }
.notice { padding: 12px; margin: 0 0 20px; border-radius: 4px; overflow-wrap: anywhere; }
.notice.error { color: #842029; background: #f8d7da; }
.notice.success { color: #0f5132; background: #d1e7dd; }
.qr { display: block; width: 280px; max-width: 100%; height: auto; aspect-ratio: 1; margin: 0 auto; }
.referral-url { display: block; color: #0056b3; overflow-wrap: anywhere; }
.history-link { margin-top: 24px; text-align: center; text-decoration: none; }
.email-address { margin: 24px 0 12px; overflow-wrap: anywhere; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.page-footer a, .link-button { color: #555; font-size: 15px; }
.link-button { padding: 0; border: 0; background: none; font-family: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 360px) {
    .file-panel { padding: 20px 16px; }
}
