h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.status-bar-safe-area {
    display: none;
}

/* iPhone 頂端瀏海與底部手勢區需要保留空間。 */
/* start */
html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    background-color: #eef4fc;
    color: #18324f;
    font-family: "Open Sans", "Noto Sans TC", sans-serif;
}

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 90% 10%, rgba(96, 153, 226, .24), transparent 32%), linear-gradient(145deg, #f8fbff 0%, #e7f0fc 100%); }
.auth-card { width: min(100%, 430px); background: rgba(255,255,255,.96); border: 1px solid rgba(41,117,212,.14); border-radius: 24px; box-shadow: 0 22px 55px rgba(27,78,145,.16); padding: 34px 30px; }
.registration-card { width: min(100%, 680px); }
.login-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.login-brand-text { min-width: 0; }
.login-brand .brand-mark { width: 60px; height: 60px; flex: 0 0 60px; margin-bottom: 0; border-radius: 14px; }
.brand-mark { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 10px 22px rgba(41,117,212,.28); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eyebrow { margin: 0 0 5px; color: #2975d4; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.auth-title { color: #183d70; font-weight: 800 !important; }
.auth-subtitle { margin: 9px 0 28px; color: #667a94; }
.login-brand .auth-subtitle { margin-bottom: 0; }
.otp-assistance-link-container { width: 100%; display: flex; justify-content: center; margin-top: 8px; text-align: center; }
.otp-assistance-link.mud-link,
.otp-assistance-link.mud-link:visited,
.otp-assistance-link.mud-link:hover,
.otp-assistance-link.mud-link:focus { color: #000 !important; }
.field-group { display: flex; flex-direction: column; gap: 7px; margin: 18px 0; min-width: 0; }
.field-group label, .field-group legend { color: #304d70; font-size: .88rem; font-weight: 700; }
.auth-input { width: 100%; box-sizing: border-box; border: 1px solid #c5d3e6; border-radius: 12px; background: #fbfdff; color: #18324f; font-size: 1rem; padding: 14px 15px; transition: border-color .18s, box-shadow .18s; }
.auth-input:focus { outline: 0; border-color: #2975d4; box-shadow: 0 0 0 3px rgba(41,117,212,.14); }
.otp-input { letter-spacing: .32em; font-size: 1.15rem; font-weight: 700; }
.validation-message { color: #b43b3b; font-size: .8rem; }
.primary-button, .secondary-button { width: 100%; min-height: 48px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .15s, opacity .15s; }
.primary-button { border: 0; background: linear-gradient(135deg, #1b6bd0, #6099e2); color: white; box-shadow: 0 8px 18px rgba(41,117,212,.24); }
.secondary-button { margin-top: 10px; border: 1px solid #b9cae1; background: white; color: #245fa9; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.phone-summary, .verified-phone { display: flex; align-items: center; gap: 9px; margin: 22px 0; padding: 13px 15px; border-radius: 12px; background: #edf4fd; color: #3b587c; }
.mud-otp-field input { letter-spacing: .3em; font-size: 1.15rem; font-weight: 700; }
.nationality-group { display: flex; flex-direction: row; gap: 22px; }
.terms-panels { border: 1px solid #d1dceb; border-radius: 12px; overflow: hidden; }
.terms-panels .mud-expand-panel { box-shadow: none !important; }
.regulation-list { margin: 0; padding-left: 1.5rem; }
.regulation-list li { margin-bottom: .55rem; line-height: 1.65; }
.cjk-list { list-style-type: trad-chinese-informal; }
.phone-summary strong { flex: 1; color: #214f89; }
.text-button { padding: 0; border: 0; background: none; color: #2975d4; font-weight: 700; cursor: pointer; }
.status-message { margin-top: 16px; padding: 11px 13px; border-radius: 10px; font-size: .88rem; }
.status-message.error { background: #fff0f0; color: #a12b2b; }
.status-message.success { background: #eaf8f1; color: #24714f; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 25px 0 15px; color: #7c8fa7; font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #d9e2ef; }
.register-link { display: block; color: #2975d4; font-weight: 800; text-align: center; text-decoration: none; }
.helper-text { margin: 18px 0 0; color: #8292a8; font-size: .75rem; text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 24px; color: #47698f; font-size: .86rem; text-decoration: none; }
.back-link .mud-icon-root { font-size: 18px; }
.stepper { display: flex; align-items: flex-start; margin: 28px 0 30px; }
.step { display: flex; flex: 0 0 70px; flex-direction: column; align-items: center; gap: 6px; color: #91a0b3; }
.step span { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid #ced9e8; border-radius: 50%; background: white; font-size: .82rem; font-weight: 800; }
.step small { white-space: nowrap; font-size: .74rem; }
.step.active, .step.done { color: #2975d4; }
.step.active span, .step.done span { border-color: #2975d4; background: #2975d4; color: white; }
.step-line { flex: 1; height: 2px; margin-top: 15px; background: #d9e2ef; }
.verified-phone .mud-icon-root { color: #168a79; }
.verified-phone div { display: flex; flex-direction: column; }
.verified-phone small { color: #687e99; }
.nationality-field { padding: 0; border: 0; flex-direction: row; flex-wrap: wrap; gap: 16px; }
.nationality-field legend { width: 100%; }
.nationality-field label { display: flex; align-items: center; gap: 6px; padding: 11px 18px; border: 1px solid #c5d3e6; border-radius: 10px; background: #fbfdff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.documents { margin: 24px 0 18px; border: 1px solid #d1dceb; border-radius: 14px; overflow: hidden; }
.documents details + details { border-top: 1px solid #dbe4f0; }
.documents summary { padding: 14px 16px; color: #28517f; background: #f6f9fd; font-weight: 800; cursor: pointer; }
.documents p { margin: 0; padding: 5px 16px 16px; color: #5c718b; font-size: .88rem; line-height: 1.7; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 4px; }
.consent-field input { width: 19px; height: 19px; accent-color: #2975d4; }
.consent-field label { flex: 1; color: #304d70; font-weight: 700; }
.success-panel { padding: 25px 5px 10px; text-align: center; }
.success-panel > .mud-icon-root { color: #168a79; font-size: 72px; }
.success-panel h2 { margin: 14px 0 8px; color: #183d70; }
.success-panel p { margin: 0 auto 25px; max-width: 430px; color: #667a94; line-height: 1.7; }
.button-link { display: grid; place-items: center; text-decoration: none; }

.install-prompt-backdrop { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); background: rgba(16, 37, 63, .58); backdrop-filter: blur(3px); }
.auth-session-loading { min-height: 280px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: #71849c; }
.install-prompt { width: min(100%, 390px); box-sizing: border-box; padding: 28px 24px 22px; border-radius: 22px; text-align: center; }
.install-prompt-icon { color: #2975d4; font-size: 52px !important; }
.install-prompt-title { margin-top: 10px !important; color: #183d70; font-weight: 800 !important; }
.install-prompt-message { margin: 12px 0 22px !important; color: #526b89; line-height: 1.75 !important; }
.ios-share-icon { margin: 0 3px; color: #2975d4; vertical-align: -.32rem; }
.install-remind-link { margin-top: 17px; padding: 5px; border: 0; background: transparent; color: #526b89; font: inherit; font-size: .875rem; text-decoration: underline; cursor: pointer; }
.install-remind-link:hover { color: #2975d4; }

.problem-report-fab { position: fixed !important; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: 48px !important; min-width: 48px !important; height: 48px !important; min-height: 48px !important; z-index: 1250; box-shadow: 0 8px 24px rgba(24, 61, 112, .32) !important; }
.scroll-to-top-fab { position: fixed !important; right: max(80px, calc(env(safe-area-inset-right) + 60px)); bottom: max(20px, env(safe-area-inset-bottom)); width: 48px !important; min-width: 48px !important; height: 48px !important; min-height: 48px !important; z-index: 1250; box-shadow: 0 8px 24px rgba(24,61,112,.25) !important; animation: scroll-to-top-enter .18s ease-out; }
@keyframes scroll-to-top-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.problem-report-loading { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.problem-report-success { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.problem-report-success > .mud-icon-root { font-size: 64px; }

/* 登入後手機主畫面 */
.member-page { min-height: 100dvh; background: #f3f7fc; }
.member-header { padding: max(22px, env(safe-area-inset-top)) 20px 34px; border-radius: 0 0 28px 28px; background: linear-gradient(145deg, #1f68c4, #3788e6); color: white; box-shadow: 0 10px 28px rgba(31,104,196,.2); }
.member-header-content { width: min(100%, 720px); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.member-name { margin-top: 2px !important; color: white; font-weight: 800 !important; }
.member-content { width: min(100%, 720px); min-height: 520px; box-sizing: border-box; margin: 0 auto; padding: 26px 20px calc(104px + env(safe-area-inset-bottom)); }
.public-news-page { min-height: 100dvh; background: #f3f7fc; }
.public-news-header-content { justify-content: space-between; }
.public-news-header-content .mud-button-root { color: white !important; }
.public-news-content { width: min(100%, 720px); min-height: 520px; box-sizing: border-box; margin: 0 auto; padding: 26px 20px max(88px, calc(72px + env(safe-area-inset-bottom))); }
.section-title { color: #183d70; font-weight: 800 !important; }
.section-subtitle { margin-top: 4px !important; color: #70839b; }
.news-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.news-filter-row .mud-input-control { min-width: 0; }
.news-subscribe-button { min-width: 96px !important; height: 56px; margin-top: 8px !important; border-radius: 12px !important; }
.news-subscription-intro { display: flex; align-items: center; gap: 14px; }
.news-subscription-icon { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 52px; border-radius: 16px; background: #e9f2ff; color: #2975d4; }
.news-subscription-icon .mud-icon-root { font-size: 29px; }
.news-subscription-title { color: #21466f; font-weight: 800 !important; }
.news-subscription-description { margin-top: 3px !important; color: #6b7f98; }
.news-subscription-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-subscription-options { display: flex; max-height: min(45vh, 360px); margin-top: 8px; overflow-y: auto; flex-direction: column; gap: 7px; }
.news-subscription-option { min-height: 52px; display: flex; padding: 5px 12px 5px 7px; border: 1px solid #dce6f2; border-radius: 13px; align-items: center; gap: 5px; background: #fbfdff; color: #294d78; font-weight: 700; cursor: pointer; }
.news-subscription-option:has(.mud-checked) { border-color: #9fc1eb; background: #edf5ff; }
.news-subscription-count { display: block; margin-top: 12px !important; color: #71849c; text-align: right; }
.news-loading, .news-empty { min-height: 230px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #71849c; }
.news-empty > .mud-icon-root { font-size: 48px; color: #9ab2ce; }
.news-list { display: flex; margin-top: 10px; flex-direction: column; gap: 10px; }
.news-item { overflow: hidden; border: 1px solid #dce6f2; border-radius: 17px; background: white; box-shadow: 0 5px 16px rgba(35,76,126,.06); }
.news-item.expanded { border-color: #aec9eb; }
.news-item-header { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 0; background: transparent; color: #294d78; text-align: left; cursor: pointer; }
.news-item-icon { width: 42px; height: 42px; display: grid; place-items: center; align-self: start; border-radius: 12px; background: #e9f2ff; color: #2975d4; }
.news-item-heading { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.news-item-heading strong { overflow-wrap: anywhere; font-size: .98rem; }
.news-item-heading small, .news-item-meta { color: #7a8da4; font-size: .74rem; }
.news-item-meta em { margin-left: 6px; padding: 1px 6px; border-radius: 8px; background: #fff0df; color: #b56513; font-style: normal; font-weight: 800; }
.news-item-content { padding: 16px 18px 18px; border-top: 1px solid #e5edf6; color: #536b87; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-item-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 18px 18px; gap: 8px; }
.news-item-image { margin: 0; overflow: hidden; border: 1px solid #dce6f2; border-radius: 12px; background: #f7faff; }
.news-item-image button { width: 100%; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.news-item-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.news-item-image figcaption { padding: 7px 10px; border-top: 1px solid #e5edf6; color: #71849c; font-size: .75rem; overflow-wrap: anywhere; }
.feature-placeholder { min-height: 290px; display: flex; margin-top: 20px; padding: 28px; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bfd0e5; border-radius: 22px; background: rgba(255,255,255,.75); color: #667a94; text-align: center; }
.feature-placeholder-icon { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 24px; background: #e5effc; color: #2975d4; }
.feature-placeholder-icon .mud-icon-root { font-size: 38px; }
.feature-placeholder .mud-typography-h6 { margin-bottom: 5px; color: #294d78; font-weight: 800; }
.activity-date-picker { margin-top: 0 !important; }
.activity-loading, .activity-empty { min-height: 230px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #71849c; }
.activity-empty > .mud-icon-root { font-size: 48px; color: #9ab2ce; }
.activity-list { display: flex; margin-top: 10px; flex-direction: column; gap: 14px; }
.activity-card { overflow: hidden; border: 1px solid #dce6f2; border-radius: 18px; background: white; box-shadow: 0 5px 16px rgba(35,76,126,.06); }
.activity-card-header { display: flex; padding: 13px 15px; align-items: center; justify-content: space-between; gap: 12px; background: #eaf3ff; color: #214f89; }
.activity-card-header strong { min-width: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.activity-card-header span { flex: 0 0 auto; padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,.72); font-size: .82rem; font-weight: 800; }
.activity-counts { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 15px; }
.activity-counts > div { display: flex; align-items: center; flex-direction: column; gap: 7px; color: #667a94; font-size: 1rem; }
.activity-counts > div + div { border-left: 1px solid #e2eaf3; }
.activity-counts strong { color: #183d70; font-size: 2.2rem; line-height: 1; }
.activity-statuses { margin: 0; padding: 0 15px 13px; }
.activity-statuses > div { display: flex; padding: 10px 0; align-items: center; justify-content: space-between; border-top: 1px solid #e8eef5; }
.activity-statuses dt { color: #526b89; }
.activity-statuses dd { margin: 0; font-weight: 800; }
.activity-statuses dd.available { color: #168a59; }
.activity-statuses dd.unavailable { color: #b43b3b; }
.activity-statuses .activity-description-row { display: block; }
.activity-description-row dd { color: #294d78; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.reservation-loading { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #71849c; }
.reservation-card { margin-top: 18px; padding: 18px; border: 1px solid #dce6f2; border-radius: 18px; background: white; }
.reservation-inline-loading { display: flex; align-items: center; gap: 9px; padding: 6px 2px; color: #71849c; font-size: .85rem; }
.reservation-count { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin: 10px 0 16px; padding: 13px 14px; border-radius: 13px; background: #edf5ff; color: #456586; }
.reservation-count .mud-icon-root { color: #2975d4; }
.reservation-count strong { color: #183d70; }
.reservation-period-warning { margin: -4px 0 13px !important; color: #c62828; font-weight: 700 !important; line-height: 1.6 !important; }
.reservation-family-section { margin-top: 16px; padding: 16px; border: 1px solid #d7e5f5; border-radius: 16px; background: #f8fbff; }
.reservation-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; color: #285783; }
.reservation-section-heading > .mud-icon-root { font-size: 30px; color: #2975d4; }
.reservation-section-heading div { display: flex; flex-direction: column; gap: 2px; }
.reservation-section-heading small { color: #71849c; font-size: .75rem; }
.reservation-dob-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.reservation-notes { margin-top: 18px; padding: 15px; border: 1px solid #f0d7a8; border-radius: 14px; background: #fff9ed; color: #715b34; }
.reservation-notice-heading { display: flex; align-items: center; gap: 7px; color: #8b641e; }
.reservation-notes-content { margin-top: 8px; line-height: 1.7; overflow-wrap: anywhere; }
.reservation-notice-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.reservation-notice-photos figure { margin: 0; overflow: hidden; border: 1px solid #ead4a9; border-radius: 11px; background: white; }
.reservation-notice-photos button { width: 100%; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.reservation-notice-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.reservation-image-preview { margin: 0; text-align: center; }
.reservation-image-preview img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; object-fit: contain; }
.reservation-image-preview figcaption { margin-top: 10px; color: #667a94; overflow-wrap: anywhere; }
.news-image-lightbox-backdrop { background: rgba(0, 0, 0, .72) !important; }
.mud-dialog:has(.news-image-lightbox) { overflow: visible; background: transparent; box-shadow: none; }
.mud-dialog:has(.news-image-lightbox) .mud-dialog-content { padding: 0; overflow: visible; }
.news-image-lightbox { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.news-image-lightbox img { display: block; width: 100%; max-height: 92dvh; object-fit: contain; }
.news-image-lightbox-close { position: absolute !important; z-index: 1; top: 8px; right: 8px; color: white !important; background: rgba(0, 0, 0, .42) !important; }
.reservation-notes-content p { display: block; margin: .65em 0; white-space: pre-wrap; }
.reservation-notes-content > :first-child { margin-top: 0; }
.reservation-notes-content > :last-child { margin-bottom: 0; }
.reservation-notice-consent { margin-top: 16px; }
.reservation-submit { margin-top: 20px !important; border-radius: 13px !important; }
.reservation-success { min-height: 360px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; }
.reservation-success > .mud-icon-root { font-size: 70px; }
.reservation-success .mud-typography-h6 { color: #214f89; font-weight: 800; }
.reservation-next-link { padding: 3px; border: 0; background: transparent; color: #2975d4; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.pass-empty { min-height: 290px; display: flex; margin-top: 18px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #bfd0e5; border-radius: 22px; background: rgba(255,255,255,.75); color: #71849c; text-align: center; }
.pass-empty > .mud-icon-root { margin-bottom: 6px; color: #9ab2ce; font-size: 54px; }
.pass-swipe-area { margin: 18px -4px 0; padding: 0 4px; touch-action: pan-y; user-select: none; }
.pass-card { min-height: 410px; box-sizing: border-box; padding: 18px; border: 1px solid #dce6f2; border-radius: 22px; background: white; box-shadow: 0 7px 22px rgba(35,76,126,.08); }
.pass-notice { padding: 16px; border: 1px solid #efd49e; border-radius: 15px; background: #fff9ed; color: #654f2c; }
.pass-notice-title { display: flex; align-items: center; gap: 8px; color: #8b641e; }
.pass-notice-content { margin-top: 10px; line-height: 1.75; overflow-wrap: anywhere; }
.pass-notice-content * { background-color: transparent !important; }
.pass-notice-content p { margin: .65em 0; white-space: pre-wrap; }
.pass-notice-content ol, .pass-notice-content ul { margin: .65em 0; padding-left: 1.55rem; }
.pass-notice-content li { margin: .25em 0; padding-left: .15rem; }
.pass-notice-content li > p { margin: 0; }
.pass-consent { margin-top: 13px; }
.pass-consent .mud-checkbox-label { color: #304d70; font-weight: 700; line-height: 1.55; }
.pass-view-button { margin-top: 14px !important; border-radius: 13px !important; }
.pass-code-panel { text-align: center; }
.pass-qr { width: min(100%, 380px); margin: 0 auto; padding: 0; box-sizing: border-box; background: white; }
.pass-qr svg { width: 100%; height: auto; display: block; }
.pass-code-text { margin: 6px 0 20px; color: #526b89; font-size: 1rem; font-weight: 700; letter-spacing: .1em; overflow-wrap: anywhere; }
.pass-details { margin: 0; overflow: hidden; border: 1px solid #dce6f2; border-radius: 14px; text-align: left; }
.pass-details div { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 15px; align-items: baseline; gap: 8px; }
.pass-details div + div { border-top: 1px solid #e5edf6; }
.pass-details dt { color: #647b97; font-size: 1rem; font-weight: 700; }
.pass-details dd { margin: 0; color: #294d78; font-size: 1.15rem; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.pass-cancel-button { margin-top: 18px !important; border-radius: 13px !important; }
.pass-dots { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 17px 0 2px; }
.pass-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #bccbdd; cursor: pointer; transition: width .18s, background .18s; }
.pass-dot.active { width: 24px; border-radius: 6px; background: #2975d4; }
.account-card { margin-top: 20px; overflow: hidden; border: 1px solid #dce6f2; border-radius: 18px; }
.account-row { display: flex; align-items: center; gap: 14px; padding: 18px; }
.account-row-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 12px; background: #e9f2ff; color: #2975d4; }
.account-row div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.account-row small { color: #7a8ca2; }
.account-row strong { overflow: hidden; color: #294d78; text-overflow: ellipsis; white-space: nowrap; }
.account-loading, .profile-loading { min-height: 180px; display: grid; place-items: center; }
.account-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.account-actions > :only-child { grid-column: 1 / -1; }
.member-profile-edit, .member-logout { min-width: 0 !important; border-radius: 14px !important; }
.member-bottom-nav { position: fixed; z-index: 1200; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid #dbe5f1; background: rgba(255,255,255,.96); box-shadow: 0 -7px 24px rgba(30,66,108,.1); backdrop-filter: blur(12px); }
.member-nav-item { min-width: 0; min-height: 57px; display: flex; padding: 5px 2px; border: 0; border-radius: 13px; align-items: center; justify-content: center; flex-direction: column; gap: 2px; background: transparent; color: #7b8da3; font: inherit; font-size: .68rem; cursor: pointer; }
.member-nav-item .mud-icon-root { font-size: 24px; }
.member-nav-item.active { background: #eaf3ff; color: #236bc5; font-weight: 800; }
body:has(.member-page) .problem-report-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
body:has(.member-page) .scroll-to-top-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }

@media (max-width: 600px) {
    .auth-page { display: block; padding-left: 0; padding-right: 0; padding-bottom: 0; background: white; }
    .auth-card { width: 100%; min-height: calc(100vh - env(safe-area-inset-top)); box-sizing: border-box; border: 0; border-radius: 0; box-shadow: none; padding: 30px 22px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .reservation-card { padding: 15px; }
    .member-page .member-header { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 16px; border-radius: 0 0 20px 20px; }
    .member-page .member-content { min-height: 0; padding: 12px 14px calc(82px + env(safe-area-inset-bottom)); }
    .account-active .section-title { font-size: 1.15rem; line-height: 1.35; }
    .account-active .section-subtitle { margin-top: 1px !important; font-size: .78rem; }
    .account-active .account-card { margin-top: 10px; border-radius: 14px; }
    .account-active .account-row { gap: 11px; padding: 10px 12px; }
    .account-active .account-row-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
    .account-active .account-row-icon .mud-icon-root { font-size: 20px; }
    .account-active .account-row div { gap: 0; line-height: 1.2; }
    .account-active .account-row small { font-size: .68rem; }
    .account-active .account-row strong { font-size: .86rem; }
    .account-active .account-actions { gap: 8px; margin-top: 10px; }
    .account-active .account-actions .mud-button-root { min-height: 42px; padding-right: 7px; padding-left: 7px; font-size: .82rem; }
    .reservation-dob-list { grid-template-columns: 1fr; }
    .pass-swipe-area { margin-top: 10px; }
    .pass-card.code-mode { min-height: 0; padding: 10px 12px 12px; }
    .pass-card.code-mode .pass-qr { width: min(100%, clamp(180px, 29dvh, 270px)); }
    .pass-card.code-mode .pass-code-text { margin: 2px 0 8px; font-size: .88rem; }
    .pass-card.code-mode .pass-details { border-radius: 11px; }
    .pass-card.code-mode .pass-details div { padding: 7px 10px; }
    .pass-card.code-mode .pass-details dt { font-size: .88rem; }
    .pass-card.code-mode .pass-details dd { font-size: 1rem; line-height: 1.35; }
    .pass-card.code-mode .pass-cancel-button { min-height: 42px; margin-top: 9px !important; }
    .pass-dots { padding-top: 8px; }
    .mud-dialog:has(.news-image-lightbox) { width: 100%; max-width: 100%; margin: 0; border-radius: 0; }
}

.mobile-main-content {
    min-height: 100vh;
    padding-top: calc(64px + env(safe-area-inset-top));
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.status-bar-safe-area {
    background-color: var(--mud-palette-primary);
}

@supports (padding-top: env(safe-area-inset-top)) {
    .status-bar-safe-area {
        height: env(safe-area-inset-top);
    }
}
/* end */

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/*載入網站時顯示-start*/
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #dce8f8;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #2975d4;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    inset: calc(20vh + 3.25rem) 0 auto 0;
    color: #2975d4;
    font-weight: 700;
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "載入中");
}
/*載入網站時顯示-end*/
