:root {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --purple: #7547ff;
  --purple-deep: #5335d8;
  --purple-soft: #eee8ff;
  --pink: #f84fa5;
  --ink: #26233b;
  --muted: #89869c;
  --surface: #fff;
  --background: #f8f7fd;
  --border: #edebf3;
  --shadow: 0 16px 45px rgba(48, 30, 103, .15);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
button:focus-visible, input:focus-visible { outline: 3px solid #c0a6ff; outline-offset: 2px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app { position: relative; width: 100%; height: 100dvh; min-height: 400px; overflow: hidden; isolation: isolate; }
.view { position: absolute; inset: 0; }
.map-view { z-index: 1; background: #ede9ff; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #e5f0ff, #f0e5ff); }
#map .leaflet-control-attribution { font-size: 9px; margin-bottom: 88px; opacity: .75; }
.leaflet-control-container .leaflet-top.leaflet-left { display: none; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; padding: 35px; color: #665b88; background: radial-gradient(circle at 50% 20%, #fff5e9, #e5eaff 85%); }
.map-fallback > span { font-size: 66px; }
.map-fallback strong { font-size: 19px; }
.map-fallback p { line-height: 1.5; max-width: 320px; margin: 0; }
.map-header { position: absolute; top: calc(22px + var(--safe-top)); left: 22px; right: 22px; z-index: 500; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 800; letter-spacing: -1.35px; color: #251a49; }
.brand-mark { position: relative; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #ff68b4, #7750ff); box-shadow: 0 7px 16px #a98cec80; width: 41px; height: 41px; border-radius: 15px; font-size: 29px; font-weight: 800; }
.brand-mark span { position: absolute; top: -7px; right: -7px; color: #fce567; text-shadow: 0 2px 4px #825cc4; font-size: 17px; }
.brand-accent { color: #8655fa; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: rgba(255,255,255,.93); padding: 9px 12px; color: #55457c; font-weight: 800; letter-spacing: 1.1px; font-size: 10px; box-shadow: 0 8px 28px #8b7eab3c; }
.demo-dot { height: 7px; width: 7px; border-radius: 50%; background: #7d60ff; box-shadow: 0 0 0 3px #7d60ff26; }
.map-search-wrap { position: absolute; z-index: 600; top: calc(83px + var(--safe-top)); left: 20px; right: 20px; }
.search-bar { display: flex; align-items: center; gap: 11px; height: 53px; border-radius: 18px; background: var(--surface); box-shadow: 0 12px 30px rgba(53, 31, 107, .12); color: #8574ad; padding: 0 16px; }
.search-bar input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; color: var(--ink); font-weight: 600; font-size: 14px; }
.search-bar input::placeholder { color: #a5a0b5; font-weight: 500; }
.keyboard-hint { color: #c8c1d4; font-weight: 800; }
.search-results { margin-top: 7px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.search-result { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: transparent; color: var(--ink); text-align: left; }
.search-result:hover { background: var(--purple-soft); }
.search-result small { color: var(--muted); display: block; }
.search-no-result { padding: 18px; color: var(--muted); font-size: 13px; }
.map-actions { position: absolute; z-index: 450; right: 18px; bottom: calc(130px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 11px; }
.circle-button { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 17px; background: var(--surface); color: var(--purple); box-shadow: 0 9px 25px #605a9a39; }
.circle-button:hover { transform: translateY(-2px); }
.map-caption { position: absolute; bottom: calc(147px + var(--safe-bottom)); left: 19px; z-index: 400; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.88); border: 1px solid #ffffffad; padding: 10px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #645680; box-shadow: 0 7px 23px #5d619820; max-width: calc(100% - 90px); }
.map-caption .icon { width: 14px; height: 14px; color: #ec6b9e; }
.friend-marker { display: grid; place-items: center; position: relative; width: 57px; height: 57px; border: 4px solid #fff; color: #fff; font-size: 18px; font-weight: 800; border-radius: 22px; box-shadow: 0 7px 20px #352c6d55; transition: transform .2s; }
.friend-marker:hover { transform: scale(1.1); }
.friend-marker::after { position: absolute; content: ''; height: 11px; width: 11px; border: 2px solid #fff; border-radius: 50%; background: #50df9c; right: -5px; bottom: -3px; }
.friend-marker.rose { background: linear-gradient(145deg, #ff8ab5, #fc538a); }
.friend-marker.blue { background: linear-gradient(145deg, #62bfff, #595bf1); }
.friend-marker.orange { background: linear-gradient(145deg, #ffc56a, #fb775b); }
.friend-marker.green { background: linear-gradient(145deg, #74d7b5, #17a8ad); }
.friend-marker.purple { background: linear-gradient(145deg, #c592ff, #8148ee); }
.friend-marker.is-self { background: linear-gradient(145deg, #9a6bff, #5539ff); border-radius: 50%; }
.friend-marker.is-self::after { background: #8d6bff; }
.friend-card { position: absolute; bottom: calc(103px + var(--safe-bottom)); left: 16px; right: 16px; z-index: 750; padding: 16px; display: flex; flex-direction: column; gap: 13px; border: 1px solid #ffffffc7; border-radius: 23px; box-shadow: 0 14px 45px #4032653b; background: var(--surface); }
.friend-card-top { display: flex; align-items: center; gap: 12px; }
.friend-card-body { flex: 1; min-width: 0; }
.friend-card-body strong { display: block; font-size: 17px; letter-spacing: -.3px; }
.friend-card-body small { font-size: 12px; color: var(--muted); }
.friend-card-actions { display: flex; gap: 8px; }
.friend-card-actions button { flex: 1; min-height: 45px; border-radius: 14px; font-weight: 800; }
.primary-btn { background: linear-gradient(115deg, #8359ff, #a454ff); color: white; box-shadow: 0 8px 18px #794eff35; }
.light-btn { background: var(--purple-soft); color: var(--purple-deep); }
.card-dismiss { background: #f5f2fb; color: #887fa4; font-size: 25px; width: 32px; height: 32px; border-radius: 50%; }
.bottom-nav { position: absolute; z-index: 900; bottom: calc(15px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 28px)); display: flex; justify-content: space-around; align-items: stretch; gap: 2px; background: var(--surface); padding: 9px 8px; border: 1px solid rgba(255,255,255,.7); box-shadow: 0 12px 42px rgba(42, 20, 88, .2); border-radius: 25px; }
.nav-btn { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; border-radius: 17px; color: #a19cb0; height: 54px; min-width: 0; transition: .18s ease; }
.nav-btn .icon { width: 23px; height: 23px; stroke-width: 1.9; }
.nav-btn span { font-size: 10px; font-weight: 800; }
.nav-btn.active { color: var(--purple); background: var(--purple-soft); }
.nav-btn:not(.active):hover { color: var(--purple); background: #f8f6ff; }
.sheet-view { overflow-y: auto; overscroll-behavior: contain; padding: calc(39px + var(--safe-top)) 20px calc(117px + var(--safe-bottom)); background: var(--background); }
.section-heading { margin-bottom: 22px; }
.eyebrow { font-size: 11px; color: #9174c2; font-weight: 800; letter-spacing: 2px; margin-bottom: 9px; }
.section-heading h1 { margin: 0; font-size: clamp(33px, 9vw, 42px); line-height: 1.1; letter-spacing: -1.8px; font-weight: 800; }
.section-heading p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.sub-count { display: inline-flex; justify-content: center; align-items: center; vertical-align: middle; height: 29px; min-width: 29px; border-radius: 9px; background: #e8e1ff; color: var(--purple); font-size: 17px; letter-spacing: 0; }
.heading-emoji { display: inline-block; font-size: 30px; vertical-align: 4px; }
.list-search { background: var(--surface); border: 1px solid var(--border); box-shadow: 0 5px 17px #34205c0b; margin-bottom: 26px; }
.section-subtitle { display: flex; align-items: center; justify-content: space-between; margin: 0 1px 12px; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; color: #a9a4b7; }
.live-label { letter-spacing: .2px; font-weight: 700; color: #8d72cc; }
.stack-list { display: flex; flex-direction: column; gap: 10px; }
.person-row { width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; padding: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 19px; transition: transform .15s, box-shadow .15s; }
.person-row:hover { transform: translateY(-2px); box-shadow: 0 9px 27px #5e429b12; }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; color: white; border-radius: 20px; font-size: 21px; font-weight: 800; position: relative; }
.avatar.small { width: 42px; height: 42px; font-size: 16px; border-radius: 15px; }
.avatar.rose { background: linear-gradient(135deg, #ffabd0, #ff5b92); }
.avatar.blue { background: linear-gradient(135deg, #7ccefb, #5c71ef); }
.avatar.orange { background: linear-gradient(135deg, #ffce84, #fc8057); }
.avatar.green { background: linear-gradient(135deg, #78dbbe, #1baa9e); }
.avatar.purple { background: linear-gradient(135deg, #ce9dfd, #8454f6); }
.avatar.online:after { position: absolute; right: -3px; bottom: -2px; content: ''; width: 12px; height: 12px; background: #44d4a1; border: 3px solid var(--surface); border-radius: 50%; }
.person-text { flex: 1; min-width: 0; }
.person-text strong { display: block; font-size: 15px; color: var(--ink); }
.person-text span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-end { display: grid; justify-items: end; gap: 8px; color: #b2aabd; font-size: 11px; }
.person-end .icon { color: #9681b4; width: 18px; height: 18px; transform: rotate(180deg); }
.unread-pill { background: #874fff; color: #fff; padding: 3px 7px; border-radius: 9px; font-size: 11px; font-weight: 800; }
.secondary-wide { margin-top: 15px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--purple-soft); color: var(--purple); border-radius: 17px; font-weight: 800; min-height: 55px; }
.helper-text { text-align: center; max-width: 350px; font-size: 12px; line-height: 1.5; color: #a19cab; margin: 16px auto; }
.empty-illustration { display: flex; flex-direction: column; align-items: center; margin: 40px 0; gap: 9px; color: var(--ink); }
.empty-illustration span { font-size: 50px; }
.empty-illustration p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-hero { display: flex; align-items: center; flex-direction: column; padding: 29px 18px; border-radius: 26px; background: linear-gradient(135deg, #eee2ff, #f9e7f5 55%, #fbf3e6); margin: 5px 0 28px; }
.profile-halo { width: 106px; height: 106px; border-radius: 50%; background: linear-gradient(150deg, #bb9cfc, #f795c6); display: grid; place-items: center; border: 7px solid #ffffff80; box-shadow: 0 8px 25px #ad83c43d; }
.profile-avatar { width: 80px; height: 80px; background: #fff; color: var(--purple); border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 800; }
.profile-name { margin: 13px 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.profile-tag { color: #8764af; font-size: 12px; font-weight: 700; }
.edit-profile { background: #fff; color: #794bc3; border-radius: 13px; font-weight: 800; font-size: 12px; margin-top: 15px; padding: 12px 17px; box-shadow: 0 4px 12px #77549a18; }
.settings-heading { margin-bottom: 12px; color: #a6a0b2; font-size: 10px; letter-spacing: 1.7px; font-weight: 800; }
.settings-card { border-radius: 20px; background: var(--surface); overflow: hidden; border: 1px solid var(--border); }
.setting-row { display: flex; align-items: center; gap: 12px; min-height: 77px; padding: 12px 15px; cursor: pointer; position: relative; }
.setting-row + .setting-row { border-top: 1px solid var(--border); }
.setting-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }
.setting-icon.lilac { background: #efe7ff; color: #8052dc; }
.setting-icon.peach { background: #fff0df; color: #ef9a49; }
.setting-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.setting-copy strong { font-size: 13px; }
.setting-copy small { font-size: 11px; color: var(--muted); }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; background: #ddd9e8; width: 44px; height: 26px; border-radius: 20px; transition: background .2s; }
.switch-ui:before { position: absolute; content: ''; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px #443d6525; transition: transform .2s; }
.switch-input:checked + .switch-ui { background: #8354fa; }
.switch-input:checked + .switch-ui:before { transform: translateX(18px); }
.switch-input:focus-visible + .switch-ui { outline: 3px solid #ac9aea; outline-offset: 3px; }
.information-note { display: flex; gap: 10px; border-radius: 17px; background: #eee8ff; padding: 13px 14px; color: #655588; margin-top: 19px; }
.information-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.information-note p { font-size: 11px; line-height: 1.6; margin: 0; flex: 1; }
.build-version { margin: 32px 0 12px; text-align: center; font-size: 11px; color: #b0aabb; }
.chat-room { position: absolute; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--background); }
.chat-toolbar { flex-shrink: 0; padding: calc(15px + var(--safe-top)) 15px 12px; display: flex; align-items: center; gap: 11px; background: var(--surface); border-bottom: 1px solid var(--border); }
.icon-only { display: grid; place-items: center; width: 35px; height: 38px; background: transparent; color: var(--ink); }
.chat-person { flex: 1; display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.chat-person strong { font-size: 15px; }
.chat-person span { display: flex; align-items: center; gap: 5px; color: #9387ab; font-size: 11px; }
.chat-person i { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: #45d6a0; }
.conversation-banner { display: flex; align-items: center; gap: 7px; justify-content: center; color: #9684ad; background: #f0ebff; text-align: center; font-size: 10px; padding: 9px; }
.conversation-banner .icon { width: 14px; height: 14px; color: #8854ee; }
.message-list { overflow-y: auto; overflow-x: hidden; display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 17px 18px; scroll-behavior: smooth; }
.chat-intro { text-align: center; align-self: center; max-width: 280px; color: #a8a0b6; font-size: 11px; line-height: 1.6; padding: 10px 0 18px; }
.message-row { display: flex; align-items: flex-end; gap: 8px; max-width: 90%; }
.message-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.message-row.theirs { align-self: flex-start; }
.message-bubble { max-width: min(290px, 70vw); min-width: 65px; padding: 11px 14px 9px; border-radius: 17px; background: var(--surface); box-shadow: 0 4px 13px #6a5e8911; overflow-wrap: anywhere; }
.message-row.mine .message-bubble { color: white; background: linear-gradient(135deg, #8758ff, #a15cfa); border-bottom-right-radius: 5px; }
.message-row.theirs .message-bubble { border-bottom-left-radius: 5px; }
.message-bubble p { white-space: pre-wrap; font-size: 13px; line-height: 1.55; margin: 0; }
.message-bubble time { display: block; text-align: right; font-size: 9px; margin-top: 4px; opacity: .58; }
.message-composer { display: flex; gap: 10px; align-items: center; padding: 10px 15px calc(12px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.message-composer input { width: 100%; flex: 1; min-width: 0; height: 46px; border: 1px solid var(--border); background: var(--background); border-radius: 15px; outline: 0; padding: 0 14px; color: var(--ink); font-size: 13px; }
.message-composer input:focus { border-color: #b7a1f7; }
.message-composer button { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(145deg, #8c5bff, #6a46e9); color: white; display: grid; place-items: center; box-shadow: 0 8px 15px #8058c95e; }
.modal-overlay { position: fixed; inset: 0; z-index: 1100; background: #1d1539a1; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.modal { position: relative; background: var(--surface); color: var(--ink); border-radius: 25px; padding: 29px 22px 23px; width: min(430px, 100%); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 12px; background: var(--background); border-radius: 12px; }
.modal h2 { font-size: 23px; letter-spacing: -.7px; margin: 0 28px 9px 0; }
.modal p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 19px; }
.modal label { display: block; font-weight: 700; font-size: 12px; margin-bottom: 9px; }
.modal input { width: 100%; background: var(--background); color: var(--ink); border: 1px solid var(--border); border-radius: 13px; padding: 13px 14px; margin: 8px 0 15px; }
.modal .primary-btn { padding: 13px 18px; border-radius: 13px; width: 100%; font-size: 13px; }
.modal .person-row { margin: 8px 0; }
.toast { position: fixed; z-index: 1500; bottom: calc(108px + var(--safe-bottom)); left: 50%; transform: translate(-50%, 20px); background: #28223d; color: white; border-radius: 14px; padding: 13px 18px; font-size: 12px; font-weight: 700; max-width: calc(100% - 36px); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; text-align: center; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
body.dark-mode { --surface: #262237; --background: #181624; --border: #393449; --ink: #f7f5ff; --muted: #aaa4ba; --purple-soft: #3c3058; }
.dark-mode .sheet-view { background: var(--background); }
.dark-mode .map-header .brand { color: #2d244d; }
.dark-mode .settings-card, .dark-mode .person-row { box-shadow: 0 7px 27px #100e191c; }
.dark-mode .information-note { background: #302544; color: #d9c7ff; }
.dark-mode .conversation-banner { background: #302544; }
.dark-mode .nav-btn:not(.active):hover { background: #332b48; }
.dark-mode .profile-hero { color: #302443; }
@media (min-width: 650px) {
  body { background: #eae6f3; }
  .app { margin-inline: auto; max-width: 510px; box-shadow: 0 0 100px #42306b25; }
  .modal-overlay { align-items: center; }
  .map-actions { bottom: 139px; }
}
@media (max-height: 640px) {
  .map-header { top: calc(13px + var(--safe-top)); }
  .map-search-wrap { top: calc(67px + var(--safe-top)); }
  .map-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* YarkeixZ 1.2.0: account + responsive mobile authentication */
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: 21px; padding: 17px; margin: 0 0 26px; box-shadow: 0 9px 22px #78609a0c; }
.account-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-symbol { width: 46px; height: 46px; border-radius: 16px; background: var(--purple-soft); display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }
.account-details { flex: 1; min-width: 0; display: grid; gap: 4px; }
.account-details strong { font-size: 14px; }
.account-details small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.account-button { background: var(--purple-soft); color: var(--purple); border-radius: 14px; min-height: 44px; padding: 0 18px; margin-top: 14px; font-size: 12px; font-weight: 800; width: 100%; }
.account-button:focus-visible, .auth-gate button:focus-visible, .auth-gate input:focus-visible { outline: 3px solid #9e79f5; outline-offset: 3px; }
.auth-gate { position: fixed; inset: 0; z-index: 2000; overflow-y: auto; background: radial-gradient(circle at 75% -10%, #d0bdff, transparent 50%), radial-gradient(circle at 10% 45%, #f6daff, transparent 42%), linear-gradient(150deg, #faf7ff, #f0efff 70%, #e9e2ff); color: #2b1b4a; padding: max(env(safe-area-inset-top), 20px) max(env(safe-area-inset-right), 16px) max(env(safe-area-inset-bottom), 22px) max(env(safe-area-inset-left), 16px); }
.auth-shell { width: min(420px, 100%); margin: 0 auto; position: relative; z-index: 1; }
.auth-orb { position: fixed; border-radius: 100%; pointer-events: none; filter: blur(4px); }
.auth-orb-one { width: 260px; height: 260px; background: #a78aff3b; right: -100px; top: -110px; }
.auth-orb-two { width: 150px; height: 150px; background: #fa96cf45; left: -72px; top: 36%; }
.auth-hero { text-align: center; padding: 22px 0 22px; }
.auth-logo { background: linear-gradient(140deg, #a77afc, #793ee4); border-radius: 26px; width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 13px; box-shadow: 0 13px 27px #996ee85c; font-weight: 800; font-size: 55px; color: #fff; letter-spacing: -7px; padding-right: 6px; position: relative; }
.auth-logo span { position: absolute; color: #fff3c9; font-size: 18px; top: 9px; right: 9px; }
.auth-eyebrow { font-size: 10px; letter-spacing: 2px; color: #9279c0; font-weight: 800; margin: 0 0 7px; }
.auth-hero h2 { margin: 0; font-size: clamp(30px, 8vw, 38px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.09; }
.auth-hero h2 em { color: #8757ed; font-style: normal; }
.auth-intro { font-size: 12px; color: #8a7c9d; margin: 11px 0 0; }
.auth-panel { background: #fff; box-shadow: 0 25px 60px #7b62ab33; border: 1px solid #ffffffcc; border-radius: 29px; padding: 20px 23px 22px; }
.auth-panel-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 12px; margin: 0 0 17px; color: #7657ab; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 15px; padding: 4px; background: #f4f1fc; gap: 4px; }
.auth-tabs button { min-height: 41px; background: transparent; color: #9184a6; font-size: 12px; border-radius: 12px; font-weight: 800; }
.auth-tabs button.active { background: #fff; color: #7546dd; box-shadow: 0 4px 10px #40266e10; }
.auth-title { margin: 21px 0 4px; font-size: 22px; letter-spacing: -.8px; }
.auth-description { font-size: 12px; color: #887d96; margin: 0 0 16px; line-height: 1.6; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 800; color: #685b7e; }
.auth-form label[hidden] { display: none; }
.auth-form input { border: 1px solid #e9e3f2; width: 100%; background: #fcfbff; color: #2b1b4a; padding: 13px 14px; border-radius: 12px; font-size: 14px; outline: none; min-height: 45px; }
.auth-form input:focus { border-color: #9768f2; box-shadow: 0 0 0 3px #9861ed1c; }
.auth-form input::placeholder { color: #b4abbf; }
.auth-primary { width: 100%; min-height: 48px; padding: 0 19px; margin-top: 4px; border-radius: 13px; color: #fff; font-weight: 800; font-size: 14px; background: linear-gradient(125deg,#9463ff,#7240e5); box-shadow: 0 9px 17px #8156d33d; display: flex; align-items: center; justify-content: space-between; }
.auth-primary span { font-size: 20px; }
.auth-primary:disabled { opacity: .6; cursor: wait; }
.auth-message { border-radius: 12px; background: #eefff7; color: #277f60; padding: 11px 12px; line-height: 1.5; font-size: 12px; margin: 12px 0 0; }
.auth-message.error { background: #ffecf1; color: #b0345d; }
.auth-text-btn { display: block; width: fit-content; background: transparent; color: #7751c7; font-size: 12px; font-weight: 700; margin: 13px auto 0; }
.auth-divider { position: relative; text-align: center; margin: 16px 0; color: #b5adbe; font-size: 10px; }
.auth-divider:before { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #eee8f5; }
.auth-divider span { background: #fff; padding: 0 14px; position: relative; }
.auth-demo-btn { border: 1px solid #e8def9; background: #faf7ff; color: #7756bc; width: 100%; min-height: 45px; border-radius: 13px; font-size: 12px; font-weight: 800; }
.auth-smallprint { text-align: center; font-size: 10px; line-height: 1.6; color: #ada2b9; margin: 15px 5px 0; }
[hidden] { display: none !important; }
@media (min-width: 650px) { .auth-shell { margin-top: 12px; } }
@media (max-height: 700px) { .auth-hero { padding: 6px 0 14px; } .auth-logo { width: 60px; height: 60px; font-size: 44px; border-radius: 22px; } .auth-hero h2 { font-size: 29px; } }

/* YarkeixZ 1.3 — echte Freundschaftsanfragen (Cloud-Bereich) */
.cloud-friends { padding-bottom: 18px; }
.cloud-my-handle { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px; background: linear-gradient(125deg, #7e55ed, #a15ef1); color: white; border-radius: 23px; box-shadow: 0 10px 30px #7944d03a; }
.cloud-my-handle > div { min-width: 0; display: grid; gap: 5px; }
.cloud-my-handle .cloud-label { color: #e9deff; font-size: 9px; letter-spacing: 1.7px; font-weight: 800; }
.cloud-my-handle strong { display: block; width: 100%; max-width: 230px; font-size: clamp(16px, 5vw, 23px); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cloud-my-handle small { color: #e9deff; font-size: 11px; }
.cloud-my-handle .mini-btn { background: #ffffff2b; border-color: #ffffff42; color: white; }
.cloud-status { margin: 16px 2px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cloud-status:empty { display:none; }
.cloud-status.is-error { color: #b92e61; background: #fff0f5; padding: 14px; border-radius: 14px; }
.cloud-quick-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 15px 0 22px; }
.cloud-primary { min-height: 48px; padding: 9px 17px; border-radius: 15px; color: white; font-size: 13px; font-weight: 800; background: linear-gradient(110deg, #8d5bff, #7044e7); }
.mini-btn { background: var(--surface); color: var(--purple); font-size: 12px; font-weight: 800; border: 1px solid var(--border); padding: 9px 12px; border-radius: 13px; min-height: 39px; }
.mini-btn:disabled { opacity: .48; cursor: not-allowed; }
.cloud-count { font-weight: 800; color: var(--purple); }
.cloud-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--border); }
.cloud-person .avatar { flex: 0 0 auto; }
.cloud-person-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.cloud-person-copy strong { font-size: 14px; overflow-wrap: anywhere; }
.cloud-person-copy small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.cloud-person-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.cloud-person-actions button { border-radius: 11px; font-size: 11px; min-height: 35px; padding: 7px 11px; font-weight: 800; }
.cloud-person-actions .yes { background: #eee8ff; color: #6942d4; }
.cloud-person-actions .no { background: #f7f4f9; color: #746e85; }
.cloud-empty { padding: 24px 12px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.65; border: 1px dashed var(--border); border-radius: 17px; margin: 10px 0 17px; }
.cloud-result-list { max-height: min(42vh, 320px); overflow-y: auto; margin-top: 9px; }
.cloud-search-caption { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.cloud-search-status { margin: 8px 0; color: var(--muted); font-size: 12px; }
.cloud-modal-field { width: 100%; margin: 4px 0 5px !important; }
.cloud-check-row { display:flex !important; align-items: center; gap: 10px; margin: 4px 0 18px !important; }
.cloud-check-row input { width: 20px !important; height: 20px; margin: 0 !important; accent-color: #8350f0; }
.cloud-check-row span { flex: 1; line-height: 1.45; }
.cloud-profile-help { color: var(--muted); font-size: 11px; margin-top: 6px; }
@media (max-width: 370px) { .cloud-person { flex-wrap: wrap; }.cloud-person-actions { width: 100%; justify-content: flex-end; } }

/* Leaflet-Bilder nicht durch globale Bildregeln beeinflussen */
#map .leaflet-tile { max-width: none !important; max-height: none !important; }

/* YarkeixZ — Leaflet core CSS fallback.
   Fuege diese Regeln AM ENDE von style.css ein.
   Sie helfen auch dann, wenn die externe leaflet.css nicht geladen wird.
   Leaflet JavaScript 1.9.x muss weiterhin geladen sein. */
#map.leaflet-container {
  overflow: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #e9e7f8;
  outline-offset: 1px;
  -webkit-tap-highlight-color: transparent;
}
#map .leaflet-pane,
#map .leaflet-tile,
#map .leaflet-marker-icon,
#map .leaflet-marker-shadow,
#map .leaflet-tile-container,
#map .leaflet-pane > svg,
#map .leaflet-pane > canvas,
#map .leaflet-zoom-box,
#map .leaflet-image-layer,
#map .leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
#map .leaflet-pane { z-index: 400; }
#map .leaflet-tile-pane { z-index: 200; }
#map .leaflet-overlay-pane { z-index: 400; }
#map .leaflet-shadow-pane { z-index: 500; }
#map .leaflet-marker-pane { z-index: 600; }
#map .leaflet-tooltip-pane { z-index: 650; }
#map .leaflet-popup-pane { z-index: 700; }
#map .leaflet-map-pane canvas { z-index: 100; }
#map .leaflet-map-pane svg { z-index: 200; }
#map .leaflet-tile,
#map .leaflet-marker-icon,
#map .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
#map .leaflet-tile {
  width: 256px;
  height: 256px;
  max-width: none !important;
  max-height: none !important;
  visibility: inherit;
}
#map .leaflet-tile-container { pointer-events: none; }
#map .leaflet-tile-loaded { visibility: inherit; }
#map .leaflet-zoom-animated { transform-origin: 0 0; }
#map .leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
#map .leaflet-top, #map .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
#map .leaflet-top { top: 0; }
#map .leaflet-right { right: 0; }
#map .leaflet-bottom { bottom: 0; }
#map .leaflet-left { left: 0; }
#map .leaflet-control-attribution { background: rgba(255,255,255,.75); font: 10px/1.5 Arial,sans-serif; padding: 0 5px; }
#map .leaflet-control-attribution a { color: #0078a8; text-decoration: none; }
#map.leaflet-container a { -webkit-tap-highlight-color: transparent; }
#map.leaflet-container.leaflet-touch-drag { touch-action: none; touch-action: pinch-zoom; }
#map.leaflet-container.leaflet-touch-zoom { touch-action: pan-x pan-y; }

.cloud-chat-empty{padding:30px 16px;text-align:center;color:#77718e}.cloud-chat-contact{display:flex;align-items:center;gap:12px;width:100%;padding:13px;border:0;background:transparent;text-align:left;border-radius:18px;cursor:pointer}.cloud-chat-contact:hover{background:rgba(127,94,229,.09)}.cloud-chat-name{font-weight:750;color:var(--ink,#342f50)}.cloud-chat-preview{font-size:12px;opacity:.7;margin-top:3px}.cloud-chat-text{display:flex;flex-direction:column;min-width:0;flex:1}.cloud-chat-text span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cloud-chat-status{padding:8px 13px;text-align:center;color:#635f78;font-size:12px}.cloud-chat-error{color:#a42a49}.cloud-chat-loading{padding:12px;text-align:center}.cloud-chat-badge{font-size:11px;background:#eae1ff;border-radius:30px;padding:5px 9px;color:#6042b5}
