html.guest-entry-active body > :not(#guestEntryRoot):not(script):not(noscript) { display: none !important; }
#guestEntryRoot { --ge-bg: #faf7f7; --ge-card: #fff; --ge-text: #30242a; --ge-muted: #78656e; --ge-border: #ecdee3; --ge-tint: #f8e9ee; --ge-accent: #a63d4d; background: var(--ge-bg); color: var(--ge-text); min-height: 100dvh; font-family: system-ui, -apple-system, sans-serif; }
#guestEntryRoot[hidden] { display: none !important; }
.ge-wrap { box-sizing: border-box; max-width: 510px; margin: 0 auto; padding: max(22px, var(--tg-safe-top, 0px)) 20px max(32px, var(--tg-safe-bottom, 0px)); }
.ge-brand { display: flex; align-items: center; gap: 11px; font-size: 13px; line-height: 1.35; color: var(--ge-muted); margin: 0 0 30px; }
.ge-brand-identity { display: flex; align-items: center; gap: 10px; }
.ge-refresh { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 1px solid var(--ge-border); border-radius: 50%; color: var(--ge-muted); background: var(--ge-card); cursor: pointer; }
.ge-refresh[hidden] { display: none; }
.ge-refresh.is-loading svg { animation: ge-refresh-spin 1.2s linear infinite; }
@keyframes ge-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ge-refresh.is-loading svg { animation: none; } }
.ge-brand img { object-fit: contain; }
.ge-brand strong { font-size: 17px; color: var(--ge-text); font-weight: 650; }
#guestEntryRoot h1 { font-size: clamp(25px, 7vw, 31px); line-height: 1.17; font-weight: 730; letter-spacing: -.6px; margin: 0 0 14px; }
.ge-intro { font-size: 16px; line-height: 1.55; margin: 0 0 24px; color: var(--ge-muted); }
#guestEntryRoot .ge-primary, #guestEntryRoot .ge-secondary { display: flex; box-sizing: border-box; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 15px; font: inherit; font-size: 16px; line-height: 1.35; text-align: center; padding: 13px 15px; margin-top: 12px; cursor: pointer; text-decoration: none; font-weight: 620; overflow-wrap: anywhere; }
#guestEntryRoot .ge-primary { background: #a63d4d; border: 1px solid #a63d4d; color: #fff; }
#guestEntryRoot .ge-secondary { background: var(--ge-card); border: 1px solid var(--ge-border); color: var(--ge-text); }
#guestEntryRoot button:disabled { opacity: .6; cursor: wait; }
#guestEntryRoot button:focus-visible, #guestEntryRoot a:focus-visible, .ge-help summary:focus-visible { outline: 3px solid #f6b73f; outline-offset: 3px; }
.ge-help { margin: 26px 0 18px; border-top: 1px solid var(--ge-border); padding-top: 20px; }
.ge-help summary { font-size: 15px; font-weight: 620; cursor: pointer; line-height: 1.45; }
.ge-step { margin-top: 21px; }
.ge-step p { font-size: 14px; line-height: 1.5; margin: 0 0 10px; color: var(--ge-muted); }
.ge-step svg { display: block; width: 100%; height: auto; border-radius: 15px; }
.ge-message { font-size: 14px; line-height: 1.5; color: var(--ge-muted); margin: 18px 0 0; }
.ge-message:empty { display: none; }
.ge-card { background: var(--ge-card); border: 1px solid var(--ge-border); border-radius: 21px; padding: 20px; margin: 0 0 16px; }
#guestEntryRoot .ge-card h2 { font-size: 19px; line-height: 1.4; margin: 0 0 12px; }
.ge-amount { font-size: 29px; line-height: 1.15; font-weight: 730; margin: 0 0 10px; }
.ge-deadline { font-size: 13px; line-height: 1.5; color: var(--ge-muted); margin: 10px 0; }
.ge-card-date { font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.ge-amount-label { font-size: 13px; color: var(--ge-muted); margin: 0 0 5px; }
.ge-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
#guestEntryRoot .ge-card-actions .ge-secondary { margin: 0; min-width: 0; font-size: 15px; padding: 12px 8px; }
.ge-action-form { border-top: 1px solid var(--ge-border); margin-top: 22px; padding-top: 20px; }
.ge-action-form h3 { font-size: 19px; margin: 0 0 12px; }
.ge-field { display: block; font-size: 14px; font-weight: 600; margin: 16px 0; }
.ge-field span { display: block; margin-bottom: 7px; }
.ge-field input, .ge-field textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; background: var(--ge-bg); color: var(--ge-text); border: 1px solid var(--ge-border); border-radius: 11px; padding: 12px; font: inherit; font-size: 16px; font-weight: 400; }
.ge-field textarea { resize: vertical; }
.ge-field input:focus, .ge-field textarea:focus { outline: 2px solid #a63d4d; outline-offset: 2px; }
#guestEntryRoot .ge-danger { background: #b3333a; border-color: #b3333a; }
#guestEntryRoot.ge-compact .ge-wrap { padding: max(16px, var(--tg-safe-top, 0px)) 16px max(20px, var(--tg-safe-bottom, 0px)); }
.ge-compact .ge-brand { margin-bottom: 22px; gap: 9px; font-size: 11px; }
.ge-compact .ge-brand strong { font-size: 15px; }
.ge-compact .ge-brand img { width: 32px; height: 32px; }
#guestEntryRoot.ge-compact h1 { font-size: 25px; line-height: 1.2; margin-bottom: 7px; letter-spacing: -.7px; }
.ge-compact .ge-intro { font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.ge-compact .ge-card { padding: 16px; border-radius: 19px; margin-bottom: 14px; box-shadow: 0 3px 14px rgb(21 42 62 / 3%); }
.ge-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
#guestEntryRoot.ge-compact .ge-card h2 { color: var(--ge-muted); font-size: 12px; line-height: 1.4; font-weight: 550; letter-spacing: .1px; margin: 0; }
.ge-status { color: var(--ge-accent); background: var(--ge-tint); border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ge-visit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ge-visit p { margin: 0; }
.ge-visit-main { font-size: 18px; line-height: 1.3; letter-spacing: -.25px; font-weight: 650; }
.ge-visit-detail { color: var(--ge-muted); font-size: 11px; line-height: 1.4; padding-top: 3px; }
.ge-visit-time { text-align: right; }
.ge-money { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-top: 13px; border-top: 1px solid var(--ge-border); margin: 14px 0 5px; }
.ge-money .ge-amount-label { font-size: 12px; margin: 0; }
.ge-money .ge-amount { font-size: 25px; line-height: 1.2; letter-spacing: -.7px; margin: 0; }
.ge-compact .ge-deadline { font-size: 11px; line-height: 1.45; margin: 4px 0; }
.ge-compact .ge-payment-deadline { color: var(--ge-text); font-weight: 500; }
.ge-compact .ge-expiry-note { font-size: 10px; margin: 2px 0 0; }
.ge-compact .ge-card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
#guestEntryRoot.ge-compact .ge-card-actions .ge-primary { grid-column: 1 / -1; min-height: 44px; margin: 0 0 2px; padding: 11px 10px; border-radius: 11px; font-size: 14px; line-height: 1.35; }
#guestEntryRoot.ge-compact .ge-card-actions .ge-secondary { min-height: 38px; margin: 0; padding: 8px 3px; border-radius: 9px; font-size: 12px; line-height: 1.3; font-weight: 550; border-color: transparent; background: var(--ge-bg); white-space: nowrap; }
#guestEntryRoot.ge-compact .ge-card-actions .ge-cancel { color: #a74b52; }
.ge-list-actions { margin-top: 14px; }
#guestEntryRoot .ge-list-actions .ge-secondary { min-height: 44px; margin: 0; padding: 11px 8px; border-radius: 12px; font-size: 13px; color: var(--ge-accent); }
.ge-return { max-width: 100%; min-width: 0; white-space: normal; align-self: flex-start; margin: 12px 0 0; padding: 8px 13px; border: 1px solid #ecdee3; background: transparent; border-radius: 12px; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
html[data-theme="dark"] #guestEntryRoot { --ge-bg: #101a27; --ge-card: #182638; --ge-text: #edf5fc; --ge-muted: #adbdcc; --ge-border: #314153; --ge-tint: #462b37; --ge-accent: #edaac0; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) #guestEntryRoot { --ge-bg: #101a27; --ge-card: #182638; --ge-text: #edf5fc; --ge-muted: #adbdcc; --ge-border: #314153; --ge-tint: #462b37; --ge-accent: #edaac0; } }
