*{box-sizing:border-box}body.account-page{margin:0;background:#f0f3fc;color:#202c48;font:16px/1.6 Tahoma,Arial,sans-serif;display:grid;min-height:100dvh;place-items:center;padding:24px}.account-card{width:100%;max-width:480px;background:white;border:1px solid #dce3f2;border-radius:28px;padding:30px;box-shadow:0 20px 70px #263b6312}.account-card header{display:flex;justify-content:space-between;gap:16px;align-items:center}.account-card strong{font-size:28px;color:#3c54da}.account-card h1{font-size:28px;line-height:1.4;margin-bottom:8px}.account-card p{font-size:14px;color:#59677c}.account-card form{display:grid;gap:16px}.account-card label{display:grid;gap:5px}.account-card input,.account-card select{font:inherit;min-width:0;width:100%;padding:12px;border:1px solid #c9d3e7;border-radius:12px}.account-card select{width:auto;padding:6px}.account-card button{font:inherit;cursor:pointer;border:0;border-radius:12px;padding:12px;background:#435be0;color:white;min-height:44px}.account-card button:disabled{opacity:.6}.auth-tabs{display:flex;gap:8px;margin:24px 0}.auth-tabs button{flex:1;background:#edf0fb;color:#344563}.auth-tabs button[aria-pressed=true]{background:#435be0;color:white}.account-card .check{display:flex;align-items:center}.account-card .check input{width:20px;height:20px}.account-card [hidden]{display:none!important}#auth-error{color:#a93336}.account-note{border-top:1px solid #e0e6f1;padding-top:18px}.server-account-banner{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--accent-soft);color:var(--ink);font-size:13px;margin-bottom:16px}.server-account-banner button{margin-inline-start:14px;padding:8px;border-radius:8px;cursor:pointer}.account-saving{opacity:.6;pointer-events:none}
.account-logout{background:var(--accent-soft);color:var(--ink);border:1px solid var(--line);border-radius:12px;min-height:44px;padding:8px 14px;font:inherit;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap;min-width:0}
.header-actions>button,.header-actions>select,.header-actions label>select,.header-actions .theme-picker,.header-actions .language-picker{box-sizing:border-box;height:44px;min-height:44px;max-height:44px;border-radius:12px;border:1px solid var(--line,#d8dfef);font-family:inherit;font-size:14px;line-height:1.2;margin:0;vertical-align:middle}
.header-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 14px;white-space:nowrap;background:var(--surface,#fff);color:var(--ink,#26364a)}
.header-actions>select,.header-actions label>select{padding-block:0;padding-inline:12px 28px;background:var(--surface,#fff);color:var(--ink,#26364a)}
.header-actions #profile{width:auto;min-width:0;max-width:100%;overflow:visible;flex-shrink:0}.header-actions #profile img{width:32px;height:32px;aspect-ratio:1/1;object-fit:cover;border-radius:50%;display:block}
.header-actions .chat-button-label{font-size:14px}.header-actions #account-notifications{max-width:100%}
#real-connections input,#real-connections textarea{box-sizing:border-box;width:100%;font:inherit;background:var(--surface,#fff);color:var(--ink,#26364a);border:1px solid var(--line,#d8dfef);border-radius:10px;padding:10px}
#real-connections form{display:grid;gap:10px;margin-block:16px}#real-connections .contact-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.header-actions{gap:6px;justify-content:flex-end;width:auto;margin-inline-start:auto;flex-wrap:nowrap}.header-actions>button{padding-inline:10px;font-size:13px}.header-actions>select{flex:none;min-width:0}}
.header-actions .theme-control{box-sizing:border-box;height:44px;min-height:44px;border-radius:12px;padding:0 10px;margin:0;gap:8px;background:var(--surface,#fff)}
.header-actions .theme-control select{height:42px;min-height:0;max-height:42px;border:0;border-radius:0;background:transparent;padding-block:0;padding-inline:0 20px;font:inherit;font-size:14px}
.header-actions .account-avatar-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-width:0;flex:0 0 auto;margin:0;overflow:visible}
.header-actions .account-avatar-wrap #profile{box-sizing:border-box;width:auto;height:44px;min-height:44px;min-width:0;border-radius:12px;margin:0;display:inline-flex;align-items:center;justify-content:flex-start}
.header-actions .account-avatar-wrap .profile-notification-badge{position:absolute;inset-block-start:-6px;inset-inline-end:-6px;z-index:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:22px;height:22px;padding:0 5px;border:2px solid var(--surface,#fff);border-radius:999px;background:#c92a40;color:#fff;font:700 11px/1 system-ui;cursor:pointer;direction:ltr}
.header-actions .account-avatar-wrap .profile-notification-badge[hidden]{display:none}.profile-notification-badge:focus-visible{outline:3px solid var(--highlight,#435be0);outline-offset:3px}
/* One frame around language selection, matching the theme control. */
.header-actions .language-control{box-sizing:border-box;display:flex;align-items:center;height:44px;min-height:44px;width:140px;max-width:140px;padding:0 10px;margin:0;border:1px solid var(--line,#d8dfef);border-radius:12px;background:var(--surface,#fff)}
.header-actions .language-control select{box-sizing:border-box;width:100%;max-width:none;height:42px;min-height:0;max-height:42px;padding-block:0;padding-inline:0 20px;border:0;border-radius:0;background:transparent;color:var(--ink,#26364a);font:inherit;font-size:14px}
.header-actions .language-control:focus-within{outline:2px solid var(--highlight,#435be0);outline-offset:2px}.header-actions .language-control select:focus{outline:none}
.header-actions .theme-label{display:inline}
.header-actions .theme-control{width:170px;max-width:none}
.header-actions .account-avatar-wrap{width:auto;min-width:0;order:10;margin-inline-start:auto}
.header-actions #profile{width:auto;min-width:0;max-width:100%;gap:8px;padding:4px 12px 4px 4px}
#city-picker{border:1px solid #cbd5e1;border-radius:16px;width:min(360px,85vw);padding:24px}
#city-picker::backdrop{background:#0008}.city-options{display:grid;gap:10px;margin-bottom:16px}.city-options button{padding:14px;border-radius:10px}
#auth-form input[readonly]{cursor:pointer}
#real-connections{width:100%;min-width:0}
#real-connections .chat-list{display:flex;flex-direction:column;gap:6px}
#real-connections .chat-person{display:flex;align-items:center;gap:10px;width:100%;text-align:start}
#real-connections .chat-conversation{padding:20px}
#real-thread{display:flex;flex-direction:column;flex:1;min-width:0}
#real-messages{flex:1;min-height:240px}
#real-send{display:flex;align-items:end;gap:12px}#real-send label{flex:1;min-width:0}#real-send textarea{width:100%;box-sizing:border-box;resize:vertical}
@media(max-width:600px){#real-connections .real-messenger{grid-template-columns:minmax(0,1fr)}#real-connections .has-conversation .chat-list{display:none}#real-connections .real-messenger:not(.has-conversation) .chat-conversation{display:none}#real-connections .chat-conversation{padding:12px}}

.person-avatar,.person-avatar img,img.person-avatar{aspect-ratio:1/1;object-fit:cover}.person-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--accent-soft,#e8eeff);color:var(--highlight,#244ef0);font-weight:800;overflow:hidden;flex-shrink:0;vertical-align:middle;font-size:16px}.person-avatar img{width:100%;height:100%;display:block;border-radius:50%}.person-card,.person-card.feed-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 12px;align-items:start;padding:10px 12px;background:var(--surface,#fff);border:1px solid var(--line,#dbe3f2);border-radius:12px;box-shadow:none;min-width:0}.person-card .person-avatar{grid-row:1;align-self:center;width:44px;height:44px;font-size:16px}.person-card-body{min-width:0;grid-column:2}.person-card h3{margin:0;font-size:15px;line-height:1.3;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-card .person-meta,.person-card .person-status{margin:2px 0 0;font-size:12px;color:var(--muted,#61708a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-card .person-tags{margin:4px 0 0;gap:4px}.person-card .person-tags span{font-size:11px;padding:3px 7px}.person-card .contact-actions{grid-column:1/-1;width:100%;margin:2px 0 0;gap:6px}.person-card .contact-actions .secondary,.person-card .contact-actions button{margin:0;min-height:32px;padding:5px 10px;font-size:13px;border-radius:10px;white-space:nowrap}#use-location{font:inherit;font-size:13px;border:1px solid var(--line,#d8dfef);background:var(--surface,#fff);color:var(--ink,#26364a);border-radius:12px;min-height:44px;padding:0 12px;cursor:pointer;white-space:nowrap}#account-delete{margin-top:28px;padding-top:20px;border-top:1px solid var(--line,#e0e6f1);display:grid;gap:12px}#account-delete .check{display:flex;align-items:center;gap:8px}#account-delete .check input{width:20px;height:20px}.admin-panel #admin-list{display:grid;gap:10px;margin-top:20px}.admin-user .person-avatar{float:inline-start;margin-inline-end:12px}.public-profile .person-avatar{width:88px;height:88px;font-size:32px}.header-actions .city{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.header-actions #account-logout{display:inline-flex;visibility:visible;order:11;flex-shrink:0}

.account-card .auth-switch button{background:transparent;color:#435be0;padding:0 4px;min-height:32px;text-decoration:underline;font-size:14px}
#chat-panel{width:100%;min-width:0;grid-column:1/-1}
#real-connections .chat-list{position:static;inset:auto;width:auto;height:auto;min-width:0;padding:16px;z-index:auto;overflow:auto}
#real-connections .real-messenger{width:100%;grid-template-columns:minmax(170px,240px) minmax(0,1fr)}
#real-messages{display:flex;flex-direction:column;gap:10px;padding:12px 4px}
#real-messages .message-bubble{width:fit-content;max-width:min(80%,640px);padding:10px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);align-self:flex-start;text-align:start}
#real-messages .message-bubble.mine{align-self:flex-end;background:var(--accent-soft);border-end-end-radius:4px}
#real-messages .message-bubble.received{border-end-start-radius:4px}
.message-bubble p{margin:5px 0;unicode-bidi:plaintext}.message-bubble small{font-size:11px;color:var(--muted)}
.message-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--highlight);color:var(--surface);font-size:11px;font-weight:700;direction:ltr}
@media(max-width:600px){#real-connections .real-messenger{grid-template-columns:minmax(0,1fr)}#real-messages .message-bubble{max-width:90%}}

.header-actions #profile,.header-actions #profile.avatar{display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;height:44px;min-height:44px;width:auto;min-width:0;max-width:100%;padding:4px 12px 4px 4px;overflow:visible;white-space:nowrap;background:var(--surface,#fff);color:var(--ink,#16233f);border:1px solid var(--line,#dbe3f2);border-radius:12px;font-size:14px;font-weight:700;line-height:1;flex-shrink:0}
.header-actions #profile::after{content:none!important}
.header-actions #profile .nav-avatar,.header-actions #profile>img{width:32px;height:32px;aspect-ratio:1/1;border-radius:50%;object-fit:cover;overflow:hidden;flex-shrink:0;display:grid;place-items:center;background:var(--accent-soft,#e8eeff);color:var(--highlight,#244ef0)}
.header-actions #profile .nav-avatar img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;border-radius:50%;display:block}
.header-actions #profile .nav-avatar-fallback{font-size:11px;font-weight:800}
.header-actions #profile .nav-profile-label{overflow:visible;text-overflow:clip;white-space:nowrap;flex-shrink:0}
.header-actions .account-avatar-wrap .profile-notification-badge{inset-inline-start:22px;inset-inline-end:auto}
.person-list{display:grid;gap:8px;min-width:0}
.chat-person .person-avatar{width:36px;height:36px;font-size:14px}
@media(min-width:1100px){#real-list.person-list,#real-suggestions.person-list,#real-result.person-list,#real-discover-result.person-list,#real-blocks.person-list{grid-template-columns:repeat(2,minmax(0,1fr))}#real-list.person-list>:last-child:nth-child(odd),#real-suggestions.person-list>:last-child:nth-child(odd),#real-result.person-list>:last-child:nth-child(odd),#real-discover-result.person-list>:last-child:nth-child(odd),#real-blocks.person-list>:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:600px){.header-actions #profile{padding:4px;font-size:13px;max-width:none;width:44px;min-width:44px;justify-content:center}.header-actions #profile .nav-profile-label{display:none}.person-card .contact-actions{flex-wrap:wrap}.person-card .contact-actions button{white-space:normal}.person-list{grid-template-columns:1fr!important}#use-location{width:100%;white-space:normal}html{scroll-padding-bottom:calc(var(--paye-bottom-nav,52px) + 16px);overflow-x:clip}body{overflow-x:clip;max-width:100%}header,.shell>header,.header-actions{max-width:100%;min-width:0}header,header:has(.account-logout),.shell>header{height:56px;min-height:56px;max-height:56px;padding:6px 12px;flex-wrap:nowrap;overflow:visible}.header-actions .theme-control,.header-actions .language-control{width:100%;max-width:none;flex:none;min-width:0}.header-actions #account-notifications{min-width:0;max-width:100%;flex:none}body>aside{position:fixed;inset:auto 0 0;width:100%;height:var(--paye-bottom-nav);min-height:var(--paye-bottom-nav);max-height:var(--paye-bottom-nav);padding:4px 4px env(safe-area-inset-bottom,0px);z-index:20;overflow:hidden}main{padding-bottom:calc(var(--paye-bottom-nav) + 16px)!important}#toast{bottom:calc(var(--paye-bottom-nav) + 12px);z-index:40}.header-actions .city{display:none}.header-actions .chat-button-label{display:none}.header-logo img{height:32px;max-height:32px}}
.brand-mark{display:inline-flex;align-items:center;gap:10px;min-width:0}
.brand-mark img{height:40px;width:auto;max-height:40px;object-fit:contain;display:block;flex-shrink:0}
.account-card header .brand-mark{font-size:22px;color:#3c54da}
#real-connections,#real-connections .person-list,#real-connections .person-card{min-width:0}
#real-connections h3{margin:18px 0 8px}

.paye-settings{display:grid;gap:16px;max-width:720px;min-width:0;padding-bottom:24px}
.paye-settings h1{margin:0;font-size:24px;line-height:1.3}
.settings-section{display:grid;gap:12px;min-width:0;padding:16px;border:1px solid var(--line,#dbe3f2);border-radius:16px;background:var(--surface,#fff)}
.settings-section h2{margin:0;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#61708a)}
.settings-section h3{margin:8px 0 0;font-size:15px}
.settings-section form{display:grid;gap:12px;min-width:0}
.settings-section input,.settings-section textarea{box-sizing:border-box;width:100%;min-width:0;font:inherit;padding:10px 12px;border:1px solid var(--line,#d8dfef);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#26364a)}
.settings-photo,.paye-onboarding .settings-photo,.onboarding-photo img{width:88px;height:88px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--accent-soft,#e8eeff);color:var(--highlight,#244ef0);font-weight:800;overflow:hidden;padding:0;border:0}
.settings-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#settings-photo{margin:0}
.discover-card .contact-actions{justify-content:flex-start}
#paye-onboarding{width:min(480px,100%);max-height:100dvh;margin:auto;padding:0;border:0;border-radius:20px;background:var(--surface,#fff);color:var(--ink,#16233f)}
#paye-onboarding::backdrop{background:#0f1a2ecc}
.paye-onboarding{display:grid;gap:14px;padding:22px 18px calc(20px + env(safe-area-inset-bottom,0px));overflow:auto;max-height:100dvh;min-width:0}
.paye-onboarding h1{margin:0;font-size:22px;line-height:1.3}
.paye-onboarding form,.paye-onboarding label{display:grid;gap:8px;min-width:0}
.paye-onboarding input{box-sizing:border-box;width:100%;font:inherit;padding:10px 12px;border:1px solid var(--line,#d8dfef);border-radius:12px}
.onboarding-actions{display:flex;flex-wrap:wrap;gap:8px;position:sticky;bottom:0;padding-top:8px;background:var(--surface,#fff)}
.onboarding-actions button{flex:1 1 140px;min-height:44px}
.onboarding-photo{display:grid;gap:8px;justify-items:start}
.onboarding-error{color:#a93336;min-height:1.2em;margin:0}
@media(max-width:600px){
 .paye-settings,.paye-onboarding{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 .onboarding-actions{padding-bottom:env(safe-area-inset-bottom,0px)}
 #paye-onboarding{width:100%;max-width:100%;border-radius:16px 16px 0 0}
}

#header-more{position:relative;z-index:30;flex:0 0 auto;flex-shrink:0;margin:0}
#header-more>.header-more-toggle{list-style:none;cursor:pointer;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line,#d8dfef);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#26364a);font-size:20px;line-height:1}
#header-more>.header-more-toggle::-webkit-details-marker{display:none}
#header-more .header-more-panel{display:none!important;visibility:hidden;pointer-events:none;position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:40;flex-direction:column;align-items:stretch;gap:8px;width:min(240px,calc(100dvw - 24px));max-width:calc(100dvw - 24px);min-width:0;padding:10px;border:1px solid var(--line,#d8dfef);border-radius:14px;background:var(--surface,#fff);box-shadow:0 12px 32px #16233f24}
#header-more[open] .header-more-panel{display:flex!important;visibility:visible;pointer-events:auto}
#header-more:not([open]) .header-more-panel{display:none!important;visibility:hidden;pointer-events:none;width:0;height:0;min-width:0;padding:0;border:0;margin:0;overflow:hidden;box-shadow:none}
#header-more .header-more-panel .theme-control,#header-more .header-more-panel .language-control,#header-more .header-more-panel .account-logout{width:100%;max-width:none;margin:0;justify-content:flex-start}
#header-more .theme-label{display:inline}
#header-more .account-logout{min-height:40px;padding:8px 12px;font-size:14px}
@media(min-width:601px){
 header,header:has(.account-logout){height:82px;min-height:82px;flex-wrap:nowrap;padding-top:0;padding-bottom:0}
 .header-actions,.header-actions:has(.account-logout){flex-wrap:nowrap}
 #header-more{display:flex;align-items:center;gap:inherit}
 #real-connections .chat-mobile-back{display:none}
}
@media(min-width:1100px){
 #header-more>.header-more-toggle{display:none}
 #header-more .header-more-panel,#header-more[open] .header-more-panel,#header-more:not([open]) .header-more-panel{display:flex!important;visibility:visible;pointer-events:auto;position:static;inset:auto;top:auto;z-index:auto;flex-direction:row;align-items:center;gap:10px;width:auto;height:auto;max-width:none;min-width:max-content;flex:0 0 auto;padding:0;border:0;margin:0;overflow:visible;box-shadow:none;background:transparent}
 #header-more .header-more-panel .theme-control,#header-more .header-more-panel .language-control,#header-more .header-more-panel .account-logout{width:auto;max-width:none;flex:0 0 auto}
}
@media(max-width:600px){
 #header-more{position:relative;z-index:30}
 #header-more>.header-more-toggle{display:inline-flex}
 .header-actions .account-avatar-wrap{order:0;margin-inline-start:0}
 .header-actions #open-chats{order:0}
 .header-logo{margin-inline-end:auto}
 body>aside{width:100%;left:0;right:0}
 body>aside nav button{white-space:nowrap;overflow:hidden;min-width:0}
 body>aside nav button span{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.1}
}

@media(max-width:600px){
 html,body{overflow-x:clip;max-width:100%}
 input,select,textarea{font-size:16px}
 body:has(#chat-panel:not([hidden])) .intro,
 body:has(#chat-panel:not([hidden])) .demo-note{display:none}
 #chat-panel:has(#real-connections){display:flex;flex-direction:column;min-height:0;height:calc(100dvh - 56px - var(--paye-bottom-nav) - 20px);max-height:calc(100dvh - 56px - var(--paye-bottom-nav) - 20px)}
 #real-connections{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;height:100%;max-height:100%}
 #real-connections:has(.has-conversation)>h2{display:none}
 #real-connections #real-body{flex:1;min-height:0;display:flex;flex-direction:column}
 #real-connections .real-messenger{flex:1;min-height:0;height:100%;max-height:none;grid-template-columns:minmax(0,1fr)!important;border-radius:16px}
 #real-connections .has-conversation .chat-list{display:none!important}
 #real-connections .real-messenger:not(.has-conversation) .chat-conversation{display:none!important}
 #real-connections .chat-list{display:flex;flex-direction:column;gap:4px;flex:1;min-height:0;height:100%;width:100%;padding:8px;overflow:auto;border-inline-end:0}
 #real-connections .chat-person{display:flex;align-items:center;gap:10px;width:100%;max-width:none;margin:0;padding:10px 8px;text-align:start}
 #real-connections .chat-person-copy{min-width:0;flex:1;display:grid;text-align:start}
 #real-connections .chat-person b{font-size:15px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #real-connections .chat-person small{display:block;font-size:12px;color:var(--muted,#61708a);max-width:none;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #real-connections .chat-conversation{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;padding:0}
 #real-connections .chat-title{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:8px 10px;border-bottom:1px solid var(--line,#dbe3f2)}
 #real-connections .chat-title h3{margin:0;font-size:16px;line-height:1.2}
 #real-connections .chat-title-copy{min-width:0;flex:1}
 #real-connections .chat-mobile-back{display:inline-flex;margin:0;padding:6px 10px;min-height:36px;font-size:13px;flex-shrink:0}
 #real-thread{flex:1;min-height:0;display:flex;flex-direction:column}
 #real-messages{flex:1;min-height:0;max-height:none;overflow:auto}
 #real-send{margin:0;padding:8px 10px;position:static;flex-shrink:0;background:var(--surface,#fff);border-top:1px solid var(--line,#dbe3f2)}
 #real-send textarea{font-size:16px;min-height:44px}
 #city-picker{width:min(360px,calc(100% - 24px))}
}

.paye-people{min-width:0;max-width:100%;padding:0 0 20px}
.paye-people[hidden]{display:none!important}
.paye-people [role=alert]{min-height:0;margin:0;color:#a93336}
.people-tabs{display:flex;gap:6px;margin:0 0 12px;padding:0;min-width:0}
.people-tabs button{flex:1 1 0;min-width:0;min-height:40px;padding:8px 10px;border:1px solid var(--line,#dbe3f2);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#16233f);font:inherit;font-size:14px;line-height:1.2;cursor:pointer}
.people-tabs button[aria-selected=true]{background:var(--accent,#315afa);color:var(--accent-ink,#fff);border-color:transparent}
#paye-people-body{display:grid;gap:8px;min-width:0}
#paye-people-body .person-card{min-width:0}
#paye-people-body form{display:grid;gap:10px;min-width:0}
#paye-people-body input{box-sizing:border-box;width:100%;min-width:0;font:inherit;padding:10px 12px;border:1px solid var(--line,#d8dfef);border-radius:12px;background:var(--surface,#fff)}
.profile-goals,.profile-intents{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px 10px;margin:0;padding:0;border:0}
.profile-goals legend,.profile-intents legend{padding:0;margin-bottom:6px;font-weight:700}
.profile-goals .check,.profile-intents .check{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px}
.profile-goals .check input,.profile-intents .check input{width:18px;height:18px;flex-shrink:0}
@media(max-width:600px){
 .people-tabs{gap:4px}
 .people-tabs button{min-height:38px;padding:6px 6px;font-size:13px}
 .paye-people{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 #paye-people-body .person-card .contact-actions{flex-wrap:wrap}
 #paye-people-body input{font-size:16px}
 .profile-goals,.profile-intents{grid-template-columns:repeat(2,minmax(0,1fr))}
}
#circle-panel .private-list{min-width:0}
#circle-panel .private-card{overflow-wrap:anywhere;min-width:0}
#circle-panel .plan-guests,#circle-panel .private-card{max-width:100%}
#detail .plan-guests{list-style:none;padding:0;margin:0;display:grid;gap:8px}
#detail .plan-guests li{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#detail form{display:grid;gap:10px;min-width:0}
#detail input,#detail select,#detail textarea,#create-dialog input,#create-dialog select,#create-dialog textarea{box-sizing:border-box;max-width:100%;font-size:16px}
#create-dialog,#detail{max-height:calc(100dvh - 32px);overflow:auto}
#circle-panel .private-card .primary,#circle-panel .private-card .secondary,#circle-panel .private-card button{min-height:44px;margin:8px 8px 0;margin-inline-end:8px}
@media(max-width:600px){
 #create-dialog,#detail{padding:16px;max-height:calc(100dvh - var(--paye-bottom-nav,52px) - 16px);overflow:auto}
 #circle-panel .circle-heading .primary{width:100%}
 #circle-panel .private-card{padding:16px}
}
@media(min-width:1100px){
 #paye-people-body.person-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 #paye-people-body.person-list>:last-child:nth-child(odd){grid-column:1/-1}
 #paye-people-body form,#paye-people-body h3,#paye-people-body .muted,#paye-people-body #people-discover,#paye-people-body #people-invite,#paye-people-body #people-find-result{grid-column:1/-1}
}
.paye-settings{display:grid;gap:14px;max-width:860px}
.settings-hub{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.settings-hub button{display:flex;align-items:center;gap:10px;min-height:64px;width:100%;text-align:start;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit}
.settings-back{justify-self:start}
.settings-danger{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.theme-choices{display:grid;gap:8px}
.theme-choice{display:flex;align-items:center;width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;text-align:start}
.theme-choice[aria-pressed=true]{outline:2px solid var(--accent)}
.message-unread-badge{background:var(--accent);color:var(--accent-ink)}
@media(min-width:601px){
 body:has(#chat-panel:not([hidden])){overflow:hidden}
 #chat-panel:has(#real-connections){display:flex;flex-direction:column;height:calc(100dvh - 82px - 52px);max-height:calc(100dvh - 82px - 52px);min-height:0;overflow:hidden}
 #real-connections{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 #real-connections>h2{margin:0 0 8px;font-size:18px;flex:0 0 auto}
 #real-connections #real-body{flex:1;min-height:0;display:flex;overflow:hidden}
 #real-connections .real-messenger{flex:1;min-height:0;height:100%;max-height:100%;overflow:hidden;grid-template-columns:minmax(180px,240px) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 #real-connections .chat-list,#real-connections .chat-conversation{min-height:0;height:auto;max-height:100%;overflow:hidden}
 #real-connections .chat-list{overflow-y:auto}
 #real-connections .chat-conversation{display:flex;flex-direction:column}
 #real-thread{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 #real-messages{flex:1;min-height:0;overflow-y:auto}
 #real-send{flex:0 0 auto;margin:0}
 #real-messages .message-bubble{margin:0}
}
@media(max-width:600px){
 .header-actions>.language-control{width:auto;max-width:88px;min-width:72px;flex:0 0 auto;padding:0 6px}
 body:has(#chat-panel:not([hidden])) main{display:flex;flex-direction:column;min-height:calc(100dvh - 56px - var(--paye-bottom-nav));padding-top:8px}
 body:has(#chat-panel .has-conversation) main{padding-top:0;padding-bottom:0}
 body:has(#chat-panel .has-conversation) footer{display:none}
 #chat-panel:has(#real-connections .has-conversation){flex:1;height:calc(100dvh - 56px - var(--paye-bottom-nav));max-height:calc(100dvh - 56px - var(--paye-bottom-nav));min-height:0}
 #real-connections>h2{display:none}
 #real-connections .real-messenger{border:0;border-radius:0;background:transparent;box-shadow:none}
}
@media(max-width:1099px){
 .header-actions>.language-control{order:2}
}
.person-state{display:inline-flex;align-items:center;min-height:28px;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--ink);font-size:12px;font-weight:700}
.people-section-title{grid-column:1/-1;margin:10px 0 0;font-size:14px}
.public-posts{display:grid;gap:8px;margin-top:16px;max-width:680px;min-width:0}
.public-posts .feed-card{padding:12px 14px}
#profile-panel:has(.public-profile){max-width:680px}
#profile-panel .public-profile{display:grid;grid-template-columns:72px minmax(0,1fr);gap:4px 12px;align-items:center;max-width:680px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
#profile-panel .public-profile .person-avatar{width:72px;height:72px;font-size:26px;grid-row:1 / span 2}
#profile-panel .public-profile .profile-heading h2{margin:0;font-size:22px;line-height:1.2}
#profile-panel .public-profile .profile-heading p{margin:2px 0 0}
#profile-panel .public-profile .profile-about,#profile-panel .public-profile .profile-intent-summary,#profile-panel .public-profile .profile-actions{grid-column:1 / -1;margin:0}
#profile-panel .public-profile .profile-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.profile-more{position:relative}
.profile-more summary{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;list-style:none;cursor:pointer}
.profile-more summary::-webkit-details-marker{display:none}
.profile-more-panel{position:absolute;inset-inline-end:0;z-index:3;display:grid;gap:6px;min-width:180px;margin-top:4px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px rgba(20,32,51,.12)}
.post-media{display:grid;gap:6px;margin-top:8px;min-width:0}
.post-media img{width:100%;max-height:420px;object-fit:cover;border-radius:12px;background:var(--canvas)}
.post-media.many{grid-template-columns:1fr 1fr}
.post-media.many img{aspect-ratio:4/3;max-height:240px}
.compose-photos{display:flex;gap:8px;overflow:auto;max-width:100%}
.compose-photo{position:relative;flex:0 0 auto}
.compose-photo img{width:72px;height:72px;object-fit:cover;border-radius:10px}
.compose-photo button{position:absolute;top:2px;inset-inline-end:2px;width:22px;height:22px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;padding:0}
.photo-pick{display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer}
.photo-pick input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.picker-search{display:grid;gap:4px;font-size:13px}
.picker-search input{width:100%;box-sizing:border-box}
#attach-results{display:grid;gap:6px;max-height:180px;overflow:auto}
#profile-panel #real-connections{height:auto;max-height:none;overflow:visible}
#profile-panel #real-body{display:flex;flex-direction:column;align-items:stretch;gap:16px;overflow:visible;height:auto;max-width:680px;min-width:0}
.feed-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.feed-tabs button{min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink)}
.feed-tabs button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.feed-kind{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--highlight)}
.composer-more{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.composer-more button{min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
.verified-badge{display:inline-flex;width:fit-content;margin-top:6px;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--ink);font-size:12px;font-weight:700}
.notice-unread{border-color:var(--accent)}
.admin-user-actions{display:flex;flex-wrap:wrap;gap:12px}
.post-heading .post-author{flex:1;min-width:0}
.mod-menu{position:relative;margin-inline-start:auto;flex:0 0 auto}
.mod-menu summary{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;cursor:pointer;list-style:none;color:var(--muted,#5c6b82)}
.mod-menu summary::-webkit-details-marker{display:none}
.mod-menu[open] summary{background:var(--accent-soft,#e8eeff);color:var(--ink,#26364a)}
.mod-menu button{position:absolute;inset-inline-end:0;top:100%;z-index:3;width:max-content;max-width:min(240px,70vw);margin-top:4px;min-height:36px;padding:6px 10px;border:1px solid var(--line,#dbe3f2);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#26364a);white-space:normal;text-align:start;box-shadow:0 8px 24px rgba(20,32,51,.12)}
.admin-danger{background:#8d2f2f;color:#fff;min-height:44px;padding:8px 12px;border-radius:12px}
.composer-attach{grid-column:2;display:grid;gap:8px;min-width:0}
.composer-attach-label{margin:0;font-size:13px;color:var(--muted)}
.composer-attach-actions,.admin-nav{display:flex;flex-wrap:wrap;gap:8px}
.composer-attach-actions button,#attach-picker button{min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
#attach-picker{display:grid;gap:6px;max-height:240px;overflow:auto}
.attachment-preview{display:grid;gap:2px;width:100%;margin-top:8px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--canvas);color:var(--ink);text-align:start}
.attachment-preview b{font-size:15px}
.attachment-preview small,.attachment-missing{color:var(--muted);font-size:12px}
.admin-nav{margin:8px 0 16px}
.admin-nav button{min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
.admin-nav button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.admin-panel{max-width:860px}
@media(max-width:600px){
 body:has(#timeline-panel:not([hidden])) .intro{padding:8px 0 4px}
 body:has(#timeline-panel:not([hidden])) .intro h1{font-size:22px;line-height:1.25;margin:0}
 body:has(#timeline-panel:not([hidden])) .intro p,body:has(#timeline-panel:not([hidden])) .persian{display:none}
 .feed-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;min-width:0}
 .feed-tabs button{flex:0 0 auto;min-height:32px;padding:4px 10px;font-size:13px}
 .post-composer textarea{min-height:44px}
 .post-composer:focus-within textarea{min-height:96px}
}
body.people-active .intro,body.people-active .section-heading,body.people-active .activity-banner{display:none!important}
#people-friend-sections{display:flex;flex-direction:column;gap:16px}
.friend-columns{display:grid;gap:16px;min-width:0}
.friend-primary,.friend-sent,.friend-incoming{min-width:0}
.friend-primary .people-section-title{font-size:18px}
@media(min-width:900px){.friend-columns{grid-template-columns:minmax(0,1.7fr) minmax(240px,.85fr);align-items:start}}
form label.check,form label.friend-choice{display:flex;flex-direction:row;align-items:center;gap:8px;width:fit-content;max-width:100%}
form label.check input[type=checkbox],form label.friend-choice input[type=checkbox]{width:18px;height:18px;margin:0;padding:0;flex:0 0 auto}
.notice-list{display:flex;flex-direction:column;gap:6px;width:min(640px,100%);align-self:flex-start}
.notice-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:start}
.notice-row small{display:block;color:var(--muted);font-size:12px}
.notice-unread{background:var(--accent-soft);border-color:var(--accent)}
body.notices-open #open-chats,body.notices-open [data-view="chat"]{outline:none;background:var(--surface);color:var(--ink);box-shadow:none}
.header-bell[aria-pressed=true]{outline:2px solid var(--accent);background:var(--accent-soft)}
@media(max-width:600px){
 #chat-panel:has(.has-conversation) #real-connections>h2{display:none}
 #chat-panel:has(.has-conversation) .chat-title{padding:2px 8px;gap:6px;min-height:0}
 #chat-panel:has(.has-conversation) .chat-title h3{font-size:14px;line-height:1.15}
 #chat-panel:has(.has-conversation) .chat-title .person-meta{margin:0;font-size:11px;line-height:1.15}
 #chat-panel:has(.has-conversation) .chat-title .person-avatar{width:24px;height:24px;font-size:11px}
 #chat-panel:has(.has-conversation) .chat-mobile-back{min-height:28px;padding:2px 8px;font-size:12px;margin:0}
 #chat-panel:has(.has-conversation) #real-thread>[data-action=profile]{align-self:flex-start;min-height:26px;margin:2px 8px;padding:2px 8px;font-size:12px}
 #chat-panel:has(.has-conversation) .message-bubble{padding:4px 8px;margin:2px 0}
 #chat-panel:has(.has-conversation) .message-bubble p{margin:2px 0}
 #chat-panel:has(.has-conversation) #real-send{gap:6px;padding:4px 8px}
 #chat-panel:has(.has-conversation) #real-send textarea{min-height:32px;max-height:120px;padding:4px 8px;font-size:16px}
 #chat-panel:has(.has-conversation) #real-send button{min-height:32px;padding:4px 10px}
}
.people-span,.people-contacts{grid-column:1/-1}
.people-contacts{display:grid;gap:8px;margin-top:8px}
.plan-error{margin:0 0 8px;color:#a93336;font-size:14px}
.header-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line,#d8dfef);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#26364a);flex:0 0 auto}
.header-bell-icon{font-size:18px;line-height:1;pointer-events:none}
.header-bell .bell-badge{position:absolute;inset-block-start:-4px;inset-inline-end:-4px;z-index:1;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:18px;height:18px;padding:0 4px;border:2px solid var(--surface,#fff);border-radius:999px;background:#c92a40;color:#fff;font:700 10px/1 system-ui;pointer-events:none;direction:ltr}
.header-bell .bell-badge[hidden]{display:none}
@media(min-width:601px){
 body:has(#chat-panel:not([hidden])) .intro,
 body:has(#chat-panel:not([hidden])) footer,
 body:has(#chat-panel:not([hidden])) .activity-banner,
 body:has(#chat-panel:not([hidden])) .demo-note{display:none!important}
 body:has(#chat-panel:not([hidden])) main{display:flex;flex-direction:column;height:calc(100dvh - 82px);max-height:calc(100dvh - 82px);overflow:hidden;box-sizing:border-box}
 #chat-panel:has(#real-connections){flex:1 1 auto;height:auto;max-height:100%;min-height:0}
}
@media(max-width:600px){
 #chat-panel:has(.real-messenger:not(.has-conversation)){display:flex;flex-direction:column;height:calc(100dvh - 56px - var(--paye-bottom-nav));max-height:calc(100dvh - 56px - var(--paye-bottom-nav));min-height:0;overflow:hidden}
 #chat-panel:has(.real-messenger:not(.has-conversation)) #real-connections{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 #chat-panel:has(.real-messenger:not(.has-conversation)) #real-body{flex:1;min-height:0;display:flex;overflow:hidden}
 #chat-panel:has(.real-messenger:not(.has-conversation)) .real-messenger{flex:1;min-height:0;height:auto;display:flex!important;flex-direction:column!important;align-items:stretch!important;border:0;border-radius:0;background:transparent;box-shadow:none}
 #chat-panel:has(.real-messenger:not(.has-conversation)) .chat-list{flex:1 1 0%!important;height:auto!important;min-height:0!important;max-height:none!important;align-self:stretch!important;overflow-y:auto}
}
@media(max-width:600px){#suggestion-dialog,#event-suggestion-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - var(--paye-bottom-nav) - 24px);overflow:auto;padding:16px 16px calc(var(--paye-bottom-nav) + 20px)}#suggestion-form,#event-suggestion-form{display:grid;gap:12px}#suggestion-form .primary,#event-suggestion-form .primary{margin-top:8px}}
#profile-panel #real-connections{height:auto;max-height:none;overflow:visible}
#profile-panel #real-body{display:flex;flex-direction:column;align-items:stretch;gap:16px;overflow:visible;height:auto;max-width:680px;min-width:0}
.reaction-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.reaction-bar button{min-height:32px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink)}
.reaction-bar button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}
.comment-panel{display:grid;gap:8px;margin-top:8px}
.feed-comment{padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.feed-comment p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-form{display:grid;gap:8px}
.comment-form textarea{min-height:44px;max-height:120px}
@media(max-width:600px){
 body:has(#chat-panel .has-conversation){overflow:hidden}
 body:has(#chat-panel .has-conversation) main{display:flex;flex-direction:column;box-sizing:border-box;width:100%;max-width:100%;height:calc(100dvh - 56px - var(--paye-bottom-nav));max-height:calc(100dvh - 56px - var(--paye-bottom-nav));min-height:0;margin:0;padding:0 !important;overflow:hidden}
 #chat-panel:has(#real-connections .has-conversation){display:flex;flex-direction:column;flex:1 1 auto;width:100%;max-width:100%;height:calc(100dvh - 56px - var(--paye-bottom-nav));max-height:calc(100dvh - 56px - var(--paye-bottom-nav));min-height:0;margin:0;overflow:hidden}
 #chat-panel:has(#real-connections .has-conversation) #real-connections,
 #chat-panel:has(#real-connections .has-conversation) #real-body,
 #chat-panel:has(#real-connections .has-conversation) .real-messenger.has-conversation{display:flex;flex-direction:column;flex:1 1 auto;width:100%;max-width:100%;min-width:0;min-height:0;height:auto;margin:0;border:0;border-radius:0;box-shadow:none}
 #chat-panel:has(#real-connections .has-conversation) #real-connections>p[role=alert]:empty{display:none}
 #chat-panel:has(#real-connections .has-conversation) .chat-conversation,
 #chat-panel:has(#real-connections .has-conversation) #real-thread{display:flex;flex-direction:column;flex:1 1 auto;width:100%;max-width:100%;min-width:0;min-height:0;height:auto;margin:0;padding:0;overflow:hidden;background:var(--surface,#fff)}
 #chat-panel:has(#real-connections .has-conversation) #real-messages{flex:1 1 auto;min-height:0;width:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}
 #chat-panel:has(#real-connections .has-conversation) #real-send{display:flex;flex-direction:row;align-items:flex-end;flex:0 0 auto;width:100%;max-width:100%;margin:0}
 #chat-panel:has(#real-connections .has-conversation) .chat-title:has([data-action=profile]){display:grid;grid-template-columns:auto auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:8px;row-gap:0;width:100%;margin:0;padding:6px 8px;border:0;border-radius:0;border-bottom:1px solid var(--line,#dbe3f2);background:var(--surface,#fff)}
 #chat-panel:has(#real-connections .has-conversation) .chat-title:has([data-action=profile]) .chat-mobile-back{grid-column:1;grid-row:1 / span 2;align-self:center}
 #chat-panel:has(#real-connections .has-conversation) .chat-title:has([data-action=profile]) .person-avatar{grid-column:2;grid-row:1 / span 2;align-self:center}
 #chat-panel:has(#real-connections .has-conversation) .chat-title:has([data-action=profile]) .chat-title-copy{grid-column:3;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
 #chat-panel:has(#real-connections .has-conversation) .chat-title h3,
 #chat-panel:has(#real-connections .has-conversation) .chat-title .person-meta{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #chat-panel:has(#real-connections .has-conversation) .chat-title [data-action=profile]{margin:0;padding:0;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted,#61708a);font-size:12px;line-height:1.2;text-align:start}
}
#paye-report{border:0;border-radius:16px;padding:16px;max-width:420px;width:calc(100% - 32px);background:var(--surface,#fff);color:var(--ink,#16233f)}
#paye-report form{display:grid;gap:10px}
#paye-report textarea,#paye-report select{width:100%;box-sizing:border-box;font:inherit}
#paye-report::backdrop{background:rgba(20,32,51,.35)}


