:root{--bg:#f3f5f8;--card:#fff;--text:#1d2433;--muted:#6e7788;--line:#e3e7ef;--primary:#3157d5;--primary2:#2546b4;--danger:#a52f2f;--radius:16px;--shadow:0 2px 10px rgba(22,34,62,.06)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}.logo{display:flex;gap:10px;align-items:center;font-size:19px}.logo span{font-size:25px}.top-actions{display:flex;align-items:center;gap:18px;font-size:20px}.avatar{display:inline-grid;place-items:center;background:#e8ecfa;color:#2947aa;font-weight:800}.avatar.circle{width:42px;height:42px;border-radius:50%}.avatar.big{width:72px;height:72px;border-radius:50%;font-size:26px;margin:auto}.avatar.huge{width:112px;height:112px;border-radius:50%;font-size:42px;margin:auto}.top-actions .avatar{width:36px;height:36px;border-radius:50%;font-size:13px}.layout{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:220px minmax(0,680px);gap:24px;padding:24px}.sidebar{position:sticky;top:88px;height:max-content;display:grid;gap:6px}.sidebar a{padding:12px 14px;border-radius:11px;display:flex;gap:12px;font-weight:650}.sidebar a:hover,.sidebar a.active{background:#fff;box-shadow:var(--shadow)}.content{min-width:0}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin-bottom:16px}.composer-head,.post-head{display:flex;gap:11px;align-items:center}.composer textarea,.stack textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:13px;resize:vertical}.stack{display:grid;gap:12px}.stack label{display:grid;gap:6px;font-weight:650}.stack input,.stack select,.form-grid input,.form-grid select,.form-grid textarea,.inline-form input,.new-chat select{width:100%;border:1px solid #cfd5e2;border-radius:10px;padding:11px;background:#fff}.upload-row,.audience,.inline-form,.new-chat{display:flex;gap:10px;align-items:center}.upload-row select{max-width:180px}.file-btn{flex:1;border:1px dashed #b7c1d7;border-radius:12px;padding:11px;cursor:pointer;background:#f8f9fd}.audience{align-items:flex-start}.audience>label{flex:1;display:grid;gap:6px}.recipient-box{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f7f8fb;padding:10px;border-radius:10px}.btn{border:1px solid #cfd5e2;background:#fff;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer;display:inline-block}.btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn.primary:hover{background:var(--primary2)}.post-head .meta,.meta,.muted{color:var(--muted);font-size:13px}.post-body{font-size:16px;line-height:1.5;padding:14px 2px}.media-grid{display:grid;gap:3px;border-radius:12px;overflow:hidden;background:#000}.media-grid.count-2,.media-grid.count-3,.media-grid.count-4{grid-template-columns:1fr 1fr}.media-item{min-height:180px;background:#111;display:grid;place-items:center}.media-item img,.media-item video{width:100%;height:100%;max-height:520px;object-fit:cover;display:block}.doc{padding:28px;background:#f7f8fb;color:#23439f}.post-actions{display:flex;gap:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 2px;margin-top:10px}.text-btn{background:none;border:0;cursor:pointer}.text-btn.liked{color:#d73351;font-weight:800}.comments{display:grid;gap:8px;padding-top:10px}.comments>div{background:#f5f6f8;border-radius:12px;padding:8px 10px;font-size:14px}.comment-form{display:flex;gap:7px}.comment-form input{flex:1;border:1px solid var(--line);border-radius:999px;padding:9px 12px}.comment-form button,.chat-send button{border:0;background:var(--primary);color:#fff;border-radius:999px;width:40px;height:40px}.flash{padding:12px 15px;border-radius:12px;margin-bottom:14px}.flash.ok{background:#e7f7ec;color:#176331}.flash.error{background:#ffe7e7;color:#8b1f1f}.empty{background:#fff;border:1px dashed #cbd3e1;border-radius:16px;padding:28px;text-align:center;color:var(--muted)}.page-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.page-head h1{margin:0}.page-head p{margin:5px 0 0;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label{display:grid;gap:5px;font-weight:650}.span2{grid-column:1/-1}.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.person-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;text-align:center}.person-card h3{margin:9px 0 3px}.badge{display:inline-block;background:#edf1ff;color:#304daf;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}.person-card details{margin-top:10px;text-align:left}.mini{margin-top:8px}.tree-wrap{overflow:auto;padding:15px 0 40px}.tree-node{text-align:center;min-width:max-content}.couple{display:inline-flex;gap:8px;align-items:center;position:relative}.couple:has(.tree-person + .tree-person)::after{content:"❤";color:#d75b70;font-size:12px}.tree-person{display:grid;justify-items:center;gap:3px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;min-width:128px;box-shadow:var(--shadow)}.tree-person small{color:var(--muted)}.tree-line{width:2px;height:24px;background:#aeb8ca;margin:auto}.tree-children{display:flex;justify-content:center;align-items:flex-start;gap:22px;border-top:2px solid #aeb8ca;padding-top:22px;position:relative}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.gallery-item{background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--line);position:relative}.gallery-item img,.gallery-item video{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.gallery-item small{display:block;padding:7px}.messages-layout{display:grid;grid-template-columns:250px 1fr;background:#fff;border:1px solid var(--line);border-radius:16px;min-height:560px;overflow:hidden}.conversation-list{border-right:1px solid var(--line);padding:10px}.new-chat{margin-bottom:10px}.conversation-link{display:block;padding:11px;border-radius:10px}.conversation-link:hover,.conversation-link.active{background:#eef1fb}.chat-panel{display:flex;flex-direction:column;min-width:0}.chat-stream{padding:14px;display:flex;flex-direction:column;gap:10px;flex:1;max-height:500px;overflow:auto}.bubble{max-width:75%;align-self:flex-start;background:#f0f2f6;border-radius:16px 16px 16px 4px;padding:9px 12px}.bubble.mine{align-self:flex-end;background:#dfe7ff;border-radius:16px 16px 4px 16px}.bubble small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.chat-send{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.chat-send input{flex:1;border:1px solid var(--line);border-radius:999px;padding:10px 14px}.profile-card{text-align:center;padding:34px}.profile-actions{display:flex;gap:10px;justify-content:center;margin-top:20px}.public-content{max-width:520px;margin:45px auto}.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:var(--shadow);text-align:center}.brand-big{font-size:56px}.auth-card input{width:100%;border:1px solid #cfd5e2;border-radius:10px;padding:12px}.bottom-nav{display:none}hr{border:0;border-top:1px solid var(--line);margin:22px 0}code{display:inline-block;background:#f1f3f8;padding:6px 8px;border-radius:7px;word-break:break-all}@media(max-width:850px){.layout{grid-template-columns:76px minmax(0,1fr);padding:16px}.sidebar a span{display:none}.sidebar a{justify-content:center;font-size:21px}.people-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){body{padding-bottom:74px}.topbar{height:56px;padding:0 13px}.topbar .logo strong{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layout{display:block;padding:10px}.sidebar{display:none}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:1fr 1fr 62px 1fr 1fr;background:#fff;border-top:1px solid var(--line);z-index:30;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav a{display:grid;justify-items:center;gap:1px;padding:8px 2px 6px;font-size:20px}.bottom-nav a span{font-size:10px}.bottom-nav button{width:54px;height:54px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:30px;margin:-12px auto 0;box-shadow:0 5px 20px #3157d566}.card{border-radius:13px;padding:13px}.upload-row,.audience{display:grid;grid-template-columns:1fr}.upload-row select{max-width:none}.recipient-box{grid-template-columns:1fr}.media-item{min-height:130px}.people-grid,.gallery{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.page-head{align-items:flex-start;gap:10px}.messages-layout{grid-template-columns:1fr;min-height:auto}.conversation-list{border:0;border-bottom:1px solid var(--line)}.chat-panel{min-height:430px}.public-content{margin:15px}.auth-card{padding:22px}.profile-actions{flex-direction:column}}
.family-hero{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-bottom:16px;box-shadow:var(--shadow);min-height:210px}.family-hero img{width:100%;height:310px;object-fit:cover;display:block}.family-hero-caption{position:absolute;left:0;right:0;bottom:0;padding:38px 20px 18px;background:linear-gradient(transparent,rgba(0,0,0,.62));color:#fff;font-size:24px}.empty-hero{display:grid;place-items:center;text-align:center;background:linear-gradient(135deg,#eef2ff,#fff7ef);color:var(--muted);padding:32px}.empty-hero strong{color:var(--text);font-size:18px}.empty-hero a{color:var(--primary);font-weight:750}.head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.badge.soft{background:#f1f2f5;color:#666f7f}.account-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;background:#f7f8fb;border:1px solid var(--line);padding:12px;border-radius:12px}.checkline{display:flex!important;grid-template-columns:auto!important;align-items:center;gap:9px!important}.checkline input{width:auto!important}.banner-preview{border-radius:14px;overflow:hidden;margin:12px 0;background:#111}.banner-preview img{width:100%;max-height:320px;object-fit:cover;display:block}
@media(max-width:640px){.family-hero{min-height:150px;border-radius:14px}.family-hero img{height:220px}.family-hero-caption{font-size:20px}.head-actions{width:100%;justify-content:flex-start}.account-fields{grid-template-columns:1fr}}

/* FAMILY NODE v0.3 — typografia i galeria */
body{
  font-family:"Aptos","Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:15px;
  font-weight:400;
  line-height:1.55;
  letter-spacing:-.008em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,.logo strong{font-weight:650;letter-spacing:-.025em;line-height:1.2}
strong{font-weight:650}.sidebar a,.btn,.file-btn,.stack label,.form-grid label{font-weight:600}
.logo{font-size:18px}.post-head strong,.composer-head strong{font-weight:650}.post-body{font-size:15.5px;line-height:1.62}
.card{box-shadow:0 4px 18px rgba(24,38,70,.045)}

.family-hero{min-height:0;aspect-ratio:2.15/1;background:#e8edf5}
.family-hero img{width:100%;height:100%;min-height:260px;max-height:360px;object-fit:cover}
.family-hero-caption strong{font-weight:650}

.gallery{gap:9px}
.gallery-item{transition:transform .15s ease,box-shadow .15s ease}
.gallery-item:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(28,40,68,.10)}
.gallery-photo{display:block;position:relative;overflow:hidden;background:#eef1f5}
.gallery-photo img{transition:transform .25s ease}
.gallery-photo:hover img{transform:scale(1.025)}
.zoom-hint{position:absolute;right:9px;bottom:9px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(10,15,25,.68);color:#fff;font-size:21px;opacity:0;transition:opacity .15s ease}
.gallery-photo:hover .zoom-hint{opacity:1}
.media-item>.js-lightbox{display:block;width:100%;height:100%}
.media-item>.js-lightbox img{width:100%;height:100%;object-fit:cover}

.lightbox{position:fixed;inset:0;z-index:9999;background:rgba(7,10,16,.94);display:flex;align-items:center;justify-content:center;padding:28px 76px;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.lightbox.open{opacity:1;visibility:visible}
.lightbox-stage{position:relative;max-width:min(94vw,1500px);max-height:90vh;display:flex;flex-direction:column;align-items:center;justify-content:center}
.lightbox-image{display:block;max-width:100%;max-height:84vh;object-fit:contain;border-radius:8px;box-shadow:0 16px 60px rgba(0,0,0,.4)}
.lightbox-caption{color:#f4f5f7;text-align:center;margin-top:10px;font-size:14px;max-width:900px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lightbox-close,.lightbox-prev,.lightbox-next{position:fixed;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:grid;place-items:center;backdrop-filter:blur(8px);transition:background .15s ease,transform .15s ease}
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255,255,255,.22)}
.lightbox-close{right:22px;top:18px;width:44px;height:44px;border-radius:50%;font-size:29px}
.lightbox-prev,.lightbox-next{top:50%;transform:translateY(-50%);width:52px;height:68px;border-radius:14px;font-size:40px}
.lightbox-prev:hover,.lightbox-next:hover{transform:translateY(-50%) scale(1.04)}
.lightbox-prev{left:16px}.lightbox-next{right:16px}
body.lightbox-open{overflow:hidden}

@media(max-width:640px){
  body{font-size:14.5px}.post-body{font-size:15px}
  .family-hero{aspect-ratio:1.65/1}.family-hero img{min-height:190px;height:100%;max-height:260px}
  .lightbox{padding:58px 10px 70px}.lightbox-image{max-height:76vh;border-radius:4px}
  .lightbox-prev,.lightbox-next{width:44px;height:58px;font-size:34px;top:auto;bottom:8px;transform:none}
  .lightbox-prev:hover,.lightbox-next:hover{transform:none}.lightbox-prev{left:calc(50% - 58px)}.lightbox-next{right:calc(50% - 58px)}
  .lightbox-close{right:10px;top:10px}.zoom-hint{opacity:.85}
}

/* FAMILY NODE v0.5 — live chat i powiadomienia */
.notify-link,.messages-nav,.bottom-chat-link{position:relative}
.unread-badge{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e53935;color:#fff;font-size:11px;font-weight:700;line-height:1;box-shadow:0 0 0 2px #fff}
.unread-badge[hidden]{display:none!important}.notify-link .unread-badge{position:absolute;right:-9px;top:-8px}.messages-nav .nav-badge{margin-left:auto}.bottom-chat-link .bottom-badge{position:absolute;top:2px;left:calc(50% + 7px)}
.notification-permission{white-space:nowrap}.chat-live-note{font-size:12px;color:#718096;margin:8px 4px}.chat-live-note::first-letter{color:#31a354}
.chat-send button:disabled{opacity:.55;cursor:wait}.bubble-body{white-space:pre-wrap;overflow-wrap:anywhere}
.family-toast-wrap{position:fixed;right:18px;top:78px;z-index:10000;display:grid;gap:9px;width:min(360px,calc(100vw - 28px));pointer-events:none}
.family-toast{display:grid;gap:3px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 15px;box-shadow:0 12px 38px rgba(18,30,58,.18);transform:translateX(115%);opacity:0;transition:transform .22s ease,opacity .22s ease;pointer-events:auto}
.family-toast.show{transform:translateX(0);opacity:1}.family-toast strong{font-size:14px}.family-toast span{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:640px){.family-toast-wrap{top:64px;right:10px;width:calc(100vw - 20px)}.notification-permission{font-size:12px;padding:8px 10px}.page-head:has(.notification-permission){align-items:center}}

/* FAMILY NODE v0.6 — lista obecności przy czacie */
.chat-side-title{font-size:12px;font-weight:700;color:#7b8494;text-transform:uppercase;letter-spacing:.055em;padding:4px 7px 8px}
.presence-list{display:grid;gap:3px}.presence-form{margin:0}.presence-user{width:100%;border:0;background:transparent;border-radius:11px;padding:8px 7px;display:grid;grid-template-columns:12px 34px minmax(0,1fr);gap:8px;align-items:center;text-align:left;color:var(--text);cursor:pointer;transition:background .15s ease}.presence-user:hover{background:#f0f3f8}.presence-led{width:10px;height:10px;border-radius:50%;background:#df3e3e;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(223,62,62,.14);display:inline-block;flex:0 0 auto}.presence-user.online .presence-led,.presence-led.online-dot{background:#28b463;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(40,180,99,.16)}.presence-user.offline .presence-led{background:#df3e3e}.presence-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf1ff;color:#3854ae;font-size:12px;font-weight:700}.presence-name{min-width:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.presence-name small{display:block;font-size:11px;font-weight:400;color:#8b93a1;line-height:1.2;margin-top:1px}.presence-user.online .presence-name small{color:#238c50}.presence-empty,.conversation-empty{font-size:12px;color:var(--muted);padding:7px}.chat-side-divider{height:1px;background:var(--line);margin:11px 0}.conversation-list{overflow-y:auto}.conversation-link{font-size:14px}.chat-live-note{display:flex;align-items:center;gap:7px}.chat-live-note .presence-led{box-shadow:none}
@media(max-width:640px){.messages-layout{display:block}.conversation-list{max-height:310px;overflow:auto}.presence-list{grid-template-columns:1fr 1fr}.presence-user{grid-template-columns:10px 30px minmax(0,1fr);padding:7px 5px}.presence-avatar{width:30px;height:30px}.presence-name{font-size:13px}.chat-side-divider{margin:8px 0}}


/* FAMILY NODE v0.7 — zdjęcia profilowe / twarze */
.avatar{overflow:hidden;flex:0 0 auto}
.avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.top-profile-link{display:inline-flex;border-radius:50%}
.top-profile-avatar{width:36px!important;height:36px!important}
.face-file-label{border:1px dashed #b7c1d7;border-radius:12px;padding:11px;background:#f8f9fd;cursor:pointer}
.face-file-label input{margin-top:8px}
.avatar-upload-details{margin-top:12px!important}
.avatar-upload-details summary{cursor:pointer;color:#3157d5;font-weight:600;text-align:center}
.face-upload-form input[type=file]{font-size:12px}
.profile-avatar-form{display:flex;gap:8px;justify-content:center;align-items:center;margin:16px 0 4px;flex-wrap:wrap}
.face-picker{cursor:pointer}
.presence-avatar{overflow:hidden}
.presence-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.tree-person .avatar{width:52px;height:52px}
.person-card .avatar.big{box-shadow:0 0 0 3px #fff,0 3px 16px rgba(28,44,90,.15)}
@media(max-width:640px){.profile-avatar-form{display:grid;grid-template-columns:1fr}.profile-avatar-form .btn{text-align:center}.tree-person .avatar{width:46px;height:46px}}

/* FAMILY NODE v0.8 — logo rodziny i relacje */
.family-brand{gap:10px;min-width:0}
.family-logo-photo,.family-logo-fallback{width:42px;height:42px;border-radius:11px;overflow:hidden;display:grid;place-items:center;flex:0 0 42px;background:#eef1f5;border:1px solid var(--line)}
.family-logo-photo img{width:100%;height:100%;object-fit:cover;display:block}
.family-logo-fallback{font-size:25px}
.family-brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.relationship-help{display:flex;gap:12px;align-items:center;padding:13px 16px;background:linear-gradient(135deg,#fff7fb,#f7f9ff);font-size:14px}
.relationship-help strong{white-space:nowrap;color:#8a365b}
.person-badges{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin:7px 0}
.relation-summary{margin:10px -3px 8px;padding:9px 10px;border-radius:11px;background:#f8f9fc;text-align:left;font-size:13px;line-height:1.45}
.relation-summary>div+div{margin-top:4px}
.relation-editor{margin-top:8px;text-align:left;border-top:1px solid var(--line);padding-top:8px}
.relation-editor summary{cursor:pointer;color:#2947aa;font-weight:600;list-style:none}
.relation-editor summary::-webkit-details-marker{display:none}
.relation-editor summary:before{content:'▸ ';font-size:11px}.relation-editor[open] summary:before{content:'▾ '}
.relation-form{margin-top:10px;padding:11px;background:#f7f8fb;border-radius:12px;border:1px solid var(--line)}
.relation-form label{font-size:13px}
.relation-form select{width:100%;border:1px solid #cfd5e2;border-radius:9px;padding:9px;background:#fff}
.relation-tip{font-size:12px;color:var(--muted);margin:0;line-height:1.4}
@media(max-width:640px){.family-logo-photo,.family-logo-fallback{width:38px;height:38px;flex-basis:38px;border-radius:10px}.relationship-help{align-items:flex-start;flex-direction:column;gap:4px}.family-brand strong{max-width:225px}}

/* FAMILY NODE v0.9 — edycja wiadomości i rozmowy głosowe */
.presence-entry{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;align-items:stretch;margin-bottom:5px}.presence-entry .presence-form{min-width:0}.call-user-btn{border:1px solid var(--line);background:#fff;border-radius:12px;font-size:18px;cursor:pointer;display:grid;place-items:center;transition:.15s ease}.call-user-btn:hover:not(:disabled){background:#edf6ff;border-color:#b7c9ee;transform:translateY(-1px)}.call-user-btn:disabled{opacity:.35;cursor:not-allowed;filter:grayscale(1)}
.message-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:4px}.message-actions button{border:0;background:none;padding:0;color:#6c7482;font-size:11px;cursor:pointer}.message-actions button:hover{color:#244fc8;text-decoration:underline}.bubble.deleted{opacity:.72}.bubble.deleted .bubble-body{color:#7a8190}.edited-mark{font-style:italic}.bubble.mine .message-actions{justify-content:flex-end}
.voice-call-overlay[hidden]{display:none!important}.voice-call-overlay{position:fixed;inset:0;z-index:12000;background:rgba(8,12,20,.72);backdrop-filter:blur(8px);display:grid;place-items:center;padding:20px}.voice-call-card{width:min(390px,94vw);background:#fff;border-radius:28px;padding:32px 26px 28px;text-align:center;box-shadow:0 24px 90px rgba(0,0,0,.35)}.voice-call-icon{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#eaf0ff;margin:0 auto 10px;font-size:34px}.voice-call-label{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.08em}.voice-call-card h2{margin:8px 0 5px;font-size:25px}.voice-call-status{color:var(--muted);min-height:24px}.voice-call-time{font-variant-numeric:tabular-nums;font-weight:650;font-size:20px;margin-top:4px}.voice-call-actions{display:flex;justify-content:center;gap:22px;margin-top:26px}.call-round{width:62px;height:62px;border:0;border-radius:50%;font-size:28px;cursor:pointer;color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.16);transition:.15s ease}.call-round:hover{transform:scale(1.05)}.call-round.accept{background:#24a148}.call-round.reject,.call-round.hangup{background:#d63845}.call-round.mute{background:#526074}.call-round.mute.muted{background:#9b4d4d}.call-round.hangup{transform:rotate(135deg)}.call-round.hangup:hover{transform:rotate(135deg) scale(1.05)}
@media(max-width:640px){.presence-entry{grid-template-columns:minmax(0,1fr) 48px}.call-user-btn{font-size:20px}.voice-call-card{padding:28px 20px 24px;border-radius:24px}.voice-call-overlay{padding:12px}}

/* FAMILY NODE v1.0 — profil i bezpieczeństwo */
.profile-data-form{max-width:420px;margin:22px auto 0;text-align:left;display:grid;gap:10px}.profile-data-form label{display:grid;gap:6px;font-weight:600}.profile-data-form input{width:100%;border:1px solid #cfd5e2;border-radius:10px;padding:11px;background:#fff}
.security-card{padding:22px}.security-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.security-head h2{margin:0 0 4px}.security-status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:7px 10px;background:#f1f2f5;color:#687184;font-size:12px;font-weight:700}.security-status.on{background:#e8f8ed;color:#176a38}.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.security-box{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fbfcfe}.security-box h3{margin:0 0 12px}.security-box .stack label{font-weight:600}.security-box input{width:100%;border:1px solid #cfd5e2;border-radius:10px;padding:11px;background:#fff}.phone-state{margin:12px 0;padding:10px 12px;border-radius:10px;background:#f3f5f8;font-size:13px}.twofa-active{margin:12px 0;padding:12px;border-radius:10px;background:#eaf7ee;color:#1b6338;font-size:13px;line-height:1.45}.security-warning{margin:12px 0;padding:12px;border-radius:10px;background:#fff5dc;color:#76530b;font-size:13px;line-height:1.45}.security-note{margin:16px 0 0;color:var(--muted);font-size:12px}.compact-form{margin-top:12px}.pin-confirm-form{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.pin-input{text-align:center!important;letter-spacing:.32em!important;font-size:24px!important;font-weight:750!important;font-variant-numeric:tabular-nums}.danger-btn{border-color:#e4b2b2!important;color:#8b2424!important;background:#fff7f7!important}.auth-resend{margin-top:12px}.auth-resend .text-btn{color:var(--primary);font-weight:650}.auth-card .flash{margin-bottom:12px}
@media(max-width:760px){.security-grid{grid-template-columns:1fr}.security-head{display:grid}.security-status{width:max-content}}
