@font-face {
  font-family: 'Guest Material Icons';
  src: url('guest-assets/fonts/MaterialIcons-Regular.otf') format('opentype');
}
.gp-material { font: normal 1em/1 'Guest Material Icons'; }
.gp-row .gp-material { font-size: 28px; }
body.guest-profile {
  --gp-page: #e7e0ce; --gp-card: #f3ecdf; --gp-gold: #e5be16; --gp-ink: #171612;
  --gp-dim: #827e72; --gp-shadow: #797366;
  margin: 0; padding: 0 0 calc(78px + env(safe-area-inset-bottom));
  color: var(--gp-ink); background: var(--gp-page);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.guest-profile main { max-width: 680px; margin: auto; padding: 0; }
.guest-profile [hidden] { display: none !important; }
.gp-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.gp-header {
  height: 56px; position: sticky; top: 0; z-index: 2; display: grid; align-items: center; justify-items: center;
  border: 0; border-bottom: 1.5px solid var(--gp-ink); background: var(--gp-card);
}
.gp-header h1 { margin: 0; font: 700 18px/1.25 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; letter-spacing: 0; }
.gp-back { position: absolute; left: 6px; height: 100%; width: 44px; display: grid; place-items: center; color: inherit; }
.gp-inner { padding: 12px 16px 22px; }
[data-profile-view="profile"] .gp-inner { padding-top: 11px; }
.gp-ticket {
  position: relative; isolation: isolate; width: 100%; box-sizing: border-box; margin: 0;
  display: flex; align-items: center; gap: 16px; border: 0; border-radius: 0; padding: 0 18px;
  background: transparent; color: inherit; font: inherit; text-decoration: none; text-align: left;
  --gp-fill: var(--gp-card); --gp-stroke: var(--gp-ink);
}
.gp-skin { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gp-skin .gp-paper { fill: var(--gp-fill); stroke: var(--gp-stroke); stroke-width: 1.55; }
.gp-skin .gp-shadow { fill: var(--gp-shadow); }
.gp-identity { min-height: 104px; padding: 10px 20px; gap: 16px; --gp-fill: var(--gp-gold); }
.gp-avatar { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; transform: translateY(1px); }
.gp-ticket strong { font-size: 18px; font-weight: 700; }
.gp-login {
  display: inline-flex; position: relative; isolation: isolate; align-items: center; justify-content: center; gap: 7px; margin-left: auto;
  min-height: 48px; min-width: 103px; padding: 9px 12px; color: inherit; background: var(--gp-ink);
  clip-path: polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.gp-login::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--gp-card); clip-path: inherit; }
.gp-icon { width: 28px; height: 28px; display: block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: square; }
.gp-login .gp-icon { width: 20px; height: 20px; }
.gp-label { margin: 19px 0 7px; font: 700 15px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; color: #5c584e; }
.gp-list { display: grid; gap: 12px; }
.gp-row { min-height: 79px; }
.gp-row::after {
  content: ""; z-index: -1; position: absolute; right: 8px; bottom: 3px; height: 35%; width: 31%;
  background: radial-gradient(circle, var(--gp-dim) 0 .8px, transparent 1px) repeat 0 0 / 7px 7px;
  opacity: .38; mask-image: linear-gradient(135deg, transparent, black); pointer-events: none;
}
.gp-row:disabled { --gp-fill: #ece5d8; --gp-stroke: #918c81; --gp-shadow: #b2ac9f; color: #888378; opacity: 1; }
.gp-row:disabled::after { opacity: .25; }
.gp-row small { display: block; margin-top: 5px; font-size: 14px; font-weight: 400; }
.gp-short { min-height: 64px; }
.gp-end { margin-left: auto; }
.gp-local a { display: block; margin: 0 0 12px; color: inherit; }
.gp-local [data-local-nfc] label { display: block; margin: 12px 0; }
.gp-local [data-local-nfc] input[type=url] { width: 100%; }
.guest-profile:not([data-profile-page=profile]) .app-tabs { display: none; }
@media (max-width: 345px) {
  .gp-identity { padding-inline: 12px; gap: 9px; }
  .gp-login { min-width: 82px; }
  .gp-avatar { width: 48px; height: 48px; }
}
@media (prefers-color-scheme: dark) {
  html .guest-profile { color-scheme: light; }
  html .guest-profile .gp-ticket, html .guest-profile a { color: var(--gp-ink); }
  html .guest-profile button.gp-ticket { background: transparent; }
  html .guest-profile button.gp-ticket:disabled { color: #888378; }
}
.gp-settings { padding-top: 3px; }
.gp-group { margin: 19px 8px 8px; color: var(--gp-dim); font-size: 13px; line-height: 1.4; font-weight: 700; }
.gp-settings .gp-list { gap: 12px; }
.gp-settings .gp-choice, .gp-settings output, .gp-switch { margin-left: auto; }
.gp-settings .gp-choice { font-weight: 650; font-size: 15px; }
.gp-choice::after { display: inline-block; margin: 0 5px 2px 8px; content: ""; border: 5px solid transparent; border-bottom: none; border-top-color: var(--gp-dim); }
.gp-settings output { font-size: 14px; }
.gp-switch { width: 52px; height: 32px; border: 2px solid var(--gp-ink); border-radius: 24px; position: relative; background: #d7d0bf; }
.gp-switch::after { position: absolute; content: ""; width: 16px; height: 16px; border-radius: 50%; top: 6px; left: 6px; background: var(--gp-ink); }
[aria-checked=true]>.gp-switch { background: var(--gp-gold); }
[aria-checked=true]>.gp-switch::after { width: 23px; height: 23px; top: 2.5px; left: auto; right: 2.5px; }
#profile-picker { position: fixed; width: 125px; z-index: 10; padding: 8px 0; background: var(--gp-page); border-radius: 2px; box-shadow: 0 7px 18px #0004; overflow-y: auto; }
#profile-picker button { display: block; width: 100%; text-align: right; background: transparent; color: var(--gp-ink); border: 0; border-radius: 0; font-weight: 650; font-size: 15px; padding: 6px 16px; height: 48px; }
#profile-picker button[aria-checked=true] { background: color-mix(in srgb, var(--gp-gold) 13%, var(--gp-page)); }
.gp-local { display: grid; gap: 12px; }
.gp-local>a { padding: 12px 0; margin: 0; }
.gp-local [data-local-nfc] button, .gp-local [data-local-nfc] input { color: var(--gp-ink); }
html[data-theme=dark] body.guest-profile {
  --gp-page: #27251f; --gp-card: #37342c; --gp-ink: #f1eada; --gp-dim: #c1bbab; --gp-shadow: #080805; color-scheme: dark;
}
html[data-theme=dark] .gp-identity { color: #18170f; }
html[data-theme=dark] .gp-row:disabled { --gp-fill: #39362f; --gp-stroke: #777367; color:#a9a396; }
html[data-theme=dark] .gp-login { color: #15140f; background: #15140f; }
html[data-theme=dark] .gp-login::before { background: #f1eadb; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme=light]) body.guest-profile {
    --gp-page: #27251f; --gp-card: #37342c; --gp-ink: #f1eada; --gp-dim: #c1bbab; --gp-shadow: #080805; color-scheme: dark;
  }
  html:not([data-theme=light]) .gp-identity { color: #18170f; }
  html:not([data-theme=light]) .gp-row:disabled { --gp-fill: #39362f; --gp-stroke: #777367; color:#a9a396; }
}
.gp-ticket strong, .gp-row>span:has(strong) { min-width: 0; overflow-wrap: anywhere; }
.gp-choice, .gp-switch { flex-shrink: 0; }
#profile-about-dialog, #profile-clear-dialog { color: var(--gp-ink); background: var(--gp-card); border: 1.5px solid var(--gp-ink); border-radius: 8px; box-shadow: 3px 4px var(--gp-shadow); width: min(340px, calc(100% - 40px)); padding: 20px; }
#profile-about-dialog::backdrop, #profile-clear-dialog::backdrop { background: #15141060; }
#profile-about-dialog h2, #profile-clear-dialog h2 { margin: 0 0 12px; }
#profile-clear-dialog form { margin-top: 18px; display: flex; gap: 10px; justify-content: end; }
#profile-clear-dialog button { color: inherit; border: 1px solid var(--gp-ink); background: var(--gp-card); }
#profile-clear-dialog button[value=clear] { background: var(--gp-gold); color: #171612; }
.gp-info { display: grid; gap: 14px; padding-top: 20px; }
.gp-info h2 { margin: 0; font-size: 18px; }
.gp-info p { margin: 0; }
.gp-info label { display: block; margin: 0 0 12px; font-weight: 600; }
.gp-info input:not([type=checkbox]), .gp-info select { display: block; width: 100%; min-height: 44px; margin: 5px 0 0; padding: 8px 10px; color: var(--gp-ink); background: var(--gp-card); border: 1px solid var(--gp-dim); border-radius: 4px; font: inherit; }
.gp-info button { padding: 9px 16px; border: 1px solid var(--gp-ink); border-radius: 4px; background: var(--gp-gold); color:#191810; }
.gp-info .gp-reveal { margin: 0 6px 12px 0; background: var(--gp-card); color: var(--gp-ink); }
.gp-info .gp-consent { display: flex; gap: 6px; align-items: center; }
.gp-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 0 0 12px; }
.gp-links a { color: inherit; text-underline-offset: 3px; }
.gp-note { margin: 16px 0; font-size: 14px; }

#profile-about-dialog p { margin: 10px 0; }
#profile-about-dialog button { display: block; margin: 18px 0 0 auto; color: var(--gp-ink); background: var(--gp-gold); }
#guest-source-providers { display: grid; gap: 12px; padding: 12px 16px 32px; }
#profile-settings-banner { position:fixed;z-index:3;top:64px;left:50%;transform:translateX(-50%);width:min(660px,calc(100% - 24px));box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:52px;padding:0 4px 0 16px;border:1.5px solid #211a15;border-radius:6px;background:#c43c32;color:white;font-size:14px; }
#guest-source-banner {
  --gp-fill:#c63c33; --gp-stroke:#211a15;
  margin:8px 12px 0; width:calc(100% - 24px); min-height:56px; gap:14px; padding:0 4px 0 18px; color:white; font-size:14px;
}
#guest-source-banner:not([hidden]) + #guest-source-providers { padding-top:8px; }
#guest-source-banner::before { content:'!';display:grid;place-content:center;width:17px;height:17px;flex:none;border:1.5px solid currentColor;border-radius:50%;font-weight:700; }
#guest-source-banner button, #profile-settings-banner button { margin-left:auto;background:none;color:inherit;border:0;width:40px;min-height:44px;font-size:23px; }
#guest-source-banner button { padding:0; font-weight:400; }
#guest-source-banner button svg { width:18px; height:18px; }
#guest-source-providers .gp-end { font-size:25px; }
#guest-source-providers [aria-busy=true] .gp-end { font-size:0; width:19px; height:19px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:gp-source-spin 850ms linear infinite; }
@keyframes gp-source-spin { to { transform:rotate(360deg); } }
#guest-source-sheet { margin: auto auto 0; width: min(100%, 560px); max-height: 80%; border: 0; border-radius: 24px 24px 0 0; padding: 8px 20px max(20px,env(safe-area-inset-bottom)); color: var(--gp-ink); background: var(--gp-card); }
#guest-source-sheet::backdrop { background: #0006; }
#guest-source-sheet::before { content: ''; display: block; width: 32px; height: 4px; background: var(--gp-dim); border-radius: 4px; margin: 8px auto 16px; }
#guest-source-sheet.gp-source-apple::backdrop { background:rgb(0 0 0 / 54%); }
#guest-source-sheet.gp-source-apple { box-sizing:border-box;max-width:100%;padding:14px 0 max(42px,env(safe-area-inset-bottom));border-radius:0; }
.guest-has-demo-footer #guest-source-sheet { margin-bottom:calc(36px + env(safe-area-inset-bottom)); }
.guest-has-demo-footer #guest-source-sheet.gp-source-apple { padding-bottom:10px; }
[data-profile-page=data-sources] #guest-demo-footer { min-height:calc(36px + env(safe-area-inset-bottom)); padding-bottom:calc(6px + env(safe-area-inset-bottom)); background:#e5be16; border:0; border-radius:0; }
#guest-source-sheet.gp-source-apple::before { margin:8px auto 20px; }
.gp-source-apple .gp-source-body { gap:0; }
.gp-source-apple .gp-source-body>* {
  display:flex;box-sizing:border-box;position:relative;isolation:isolate;margin:0;align-items:flex-start;justify-content:center;
  border:0;border-radius:0;padding:0 18px;background:var(--gp-ink);color:var(--gp-ink);
  clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px);
}
.gp-source-apple .gp-source-body>*::before { content:'';position:absolute;inset:1.5px;z-index:-1;background:var(--gp-card);clip-path:inherit; }
.gp-source-apple .gp-source-body header { min-height:80px;flex-direction:column;gap:2px; }
.gp-source-apple .gp-source-body h2 { font-size:16px; }
.gp-source-apple .gp-source-body p { font-size:13px; }
.gp-source-apple .gp-source-body button { min-height:64px;padding-inline:18px 42px;gap:16px;align-items:center;justify-content:flex-start;font-family:inherit;font-size:16px;font-weight:600; }
.gp-source-check { display:grid;place-items:center;width:18px;height:18px;border:2px solid currentColor;border-radius:50%;font:700 13px/1 system-ui; }
.gp-source-apple .gp-source-body button::after { content:'›' / '';position:absolute;right:21px;font-size:23px; }
.gp-source-body { display:grid; gap:12px; }
.gp-source-body h2,.gp-source-body p { margin:0; }
.gp-source-body button,.gp-source-body label { min-height:48px; color:inherit; background:transparent; text-align:start; }

#profile-settings-banner { background:#f4bc32;color:#211a15; }
#profile-settings-banner[data-failed=true] { background:#c43c32;color:white; }
#profile-settings-banner[hidden] { display:none; }

.gp-edit-account { display:grid; place-items:center; margin-left:auto; width:44px; height:44px; padding:6px; color:inherit; background:transparent; border:0; }
.gp-edit-account .gp-icon { width:23px; height:23px; }
.gp-signed-in { cursor:pointer; }
.gp-signed-in #cloud-identity-avatar { order:-1; border-radius:50%; object-fit:cover; }
.gp-custom-avatar .gp-avatar:not(#cloud-identity-avatar) { display:none; }
.gp-signed-in ~ .gp-list [data-account-route] { min-height:64px; }
#profile-edit { margin:auto auto 0; width:min(100%,560px); max-width:100%; max-height:90dvh; overflow:auto; padding:0 20px max(20px,env(safe-area-inset-bottom)); box-sizing:border-box; border:0; border-radius:20px 20px 0 0; color:var(--gp-ink); background:var(--gp-card); }
#profile-edit::backdrop { background:#0008; }
#profile-edit::before { content:''; display:block; width:32px; height:4px; margin:12px auto 16px; border-radius:4px; background:var(--gp-dim); }
#profile-edit header { display:flex; align-items:center; justify-content:space-between; }
#profile-edit h2 { margin:0; font-size:20px; }
#profile-edit-region { color:var(--gp-dim); font-size:13px; }
#profile-pick-avatar { position:relative; display:block; margin:16px auto 20px; padding:0; width:80px; height:80px; border:0; background:transparent; }
#profile-pick-avatar img,#profile-avatar-fallback { width:100%; height:100%; border-radius:50%; object-fit:cover; }
#profile-pick-avatar span { position:absolute; right:0; bottom:0; display:grid; place-items:center; width:25px; height:25px; border:1.5px solid #181810; border-radius:50%; background:var(--gp-gold); color:#181810; }
#profile-edit label { display:block; font-size:14px; font-weight:600; }
#profile-nickname,#profile-save { box-sizing:border-box; width:100%; min-height:48px; border:1.5px solid var(--gp-ink); border-radius:5px; padding:9px 12px; color:var(--gp-ink); background:var(--gp-card); font:inherit; }
#profile-nickname { margin-top:4px; }
#profile-save { margin-top:16px; font-weight:700; color:#181810; background:var(--gp-gold); }
#profile-edit-error:not(:empty) { margin:8px 0; color:#b02d29; }
#profile-edit-error:empty,#profile-settings-account p:empty { display:none; }
#profile-settings-account { margin-top:12px; }
.gp-cloud-list { padding:16px; }
.gp-cloud-list ul { margin:0; padding:0; list-style:none; }
.gp-cloud-list li { padding:12px; border:1.5px solid var(--gp-ink); margin-bottom:12px; background:var(--gp-card); }
.gp-cloud-list li strong,.gp-cloud-list li small,.gp-cloud-list li a { display:block; color:inherit; }
.gp-cloud-list li small { color:var(--gp-dim); margin:4px 0 10px; }
.gp-cloud-list li button,.gp-load-again { color:inherit; border:1px solid var(--gp-ink); background:var(--gp-card); margin-right:8px; padding:8px 12px; }
.gp-cloud-list .gp-saved-device { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px; }
.gp-saved-device a { text-decoration:none; padding:5px 0; overflow-wrap:anywhere; }
.gp-saved-device a:nth-child(2) { min-height:44px; display:inline-flex; align-items:center; padding:0 5px; }
.gp-saved-device a small { margin-bottom:0; }
.gp-saved-device form { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; }
.gp-saved-device form input { flex:1 1 45%; min-width:0; color:inherit; background:var(--gp-card); padding:8px; font-size:16px; }
.gp-saved-device form button { margin:0; }
.gp-cloud-list [role=status]:empty,.gp-empty-symbol { display:none; }
.gp-empty { text-align:center; }
.gp-empty .gp-empty-symbol { display:grid; place-items:center; }
.gp-empty [role=status] { margin:8px 0 0; }
.gp-empty [role=status] strong,.gp-empty [role=status] span { display:block; }
.gp-empty [role=status] span { margin-top:6px; font-size:14px; color:var(--gp-dim); }
[data-profile-view=account-devices] .gp-empty { position:relative; isolation:isolate; margin:16px; padding:16px 12px 20px; }
.gp-device-paper { display:none; }
.gp-empty .gp-device-paper { display:block; position:absolute; inset:0; z-index:-1; pointer-events:none; }
[data-profile-view=account-devices] .gp-empty [role=status] { margin-top:14px; }
[data-profile-view=account-devices] .gp-empty strong { font-size:18px; }
[data-profile-view=account-devices] .gp-empty-symbol { box-sizing:border-box; width:56px; height:56px; margin:auto; border:1.5px solid var(--gp-ink); border-radius:50%; background:var(--gp-gold); color:#171612; }
[data-profile-view=account-devices] .gp-empty-symbol .gp-icon { width:24px; height:24px; font-size:24px; }
[data-profile-view=share-history] .gp-empty { padding-top:min(184px,28vh); }
[data-profile-view=share-history] .gp-empty [role=status] { margin-top:18px; }
[data-profile-view=share-history] .gp-empty-symbol .gp-icon { width:42px; height:42px; color:var(--gp-dim); }
#profile-delete { margin-top:10px; color:#ad2924; }
#profile-delete-dialog { width:min(350px,calc(100% - 40px)); box-sizing:border-box; padding:20px; border:1.5px solid var(--gp-ink); border-radius:8px; color:var(--gp-ink); background:var(--gp-card); }
#profile-delete-dialog::backdrop { background:#0007; }
#profile-delete-dialog h2 { margin:0; font-size:18px; }
#profile-delete-dialog input { display:block; width:100%; box-sizing:border-box; margin:4px 0; min-height:44px; padding:8px; background:var(--gp-card); color:var(--gp-ink); border:1px solid var(--gp-dim); }
#profile-nickname,#profile-delete-password { min-width:0; max-width:100%; font-family:inherit; font-size:max(16px,1rem); }
#profile-delete-dialog form>div { display:flex; justify-content:end; gap:12px; }
#profile-delete-dialog button { min-height:42px; padding:6px 14px; border:1px solid currentColor; color:var(--gp-ink); background:var(--gp-card); }
#profile-delete-dialog [type=submit] { color:#fff; background:#aa302b; border-color:#aa302b; }
#profile-delete-error { color:#aa302b; }
