:root{color:#0f172a;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f3f4f6;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*,:before,:after{box-sizing:border-box}body{min-height:100vh;margin:0}a{color:inherit;text-decoration:none}.friends-app{box-sizing:border-box;background:#f6f5f1;justify-content:center;align-items:stretch;height:100vh;min-height:100vh;padding:0;display:flex;overflow:hidden}.friends-shell{width:100%;box-shadow:none;background:#fff;border:none;border-radius:0 0 .65rem .65rem;flex-direction:column;flex:auto;gap:1rem;height:100%;min-height:0;max-height:none;padding:1rem;display:flex;position:relative;overflow:hidden}.friends-header{text-align:left;flex-direction:column;align-items:stretch;gap:1rem;width:100%;display:flex;position:relative}.friends-toggle{background:#fff;border:1px solid #e2e8f0;border-radius:999px;align-items:center;gap:.35rem;width:fit-content;padding:.18rem;display:inline-flex;position:absolute;bottom:1rem;left:50%;transform:translate(-50%);box-shadow:0 12px 30px #0f172a29}.friends-toggle__btn{color:#475569;cursor:pointer;background:0 0;border:none;border-radius:999px;padding:.35rem .75rem;font-size:.85rem;font-weight:600;transition:background .2s,color .2s,box-shadow .2s}.friends-toggle__btn--active{color:#fff;background:#0f172a;box-shadow:0 6px 14px #0f172a2e}.friends-toggle__btn:not(.friends-toggle__btn--active):hover{color:#0f172a;background:#0f172a0f}.friends-header__row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.85rem;display:flex}.friends-help-button{color:#0f172a;cursor:pointer;z-index:50;background:#fff;border:1px solid #e2e8f0;border-radius:999px;justify-content:center;align-items:center;width:2.75rem;height:2.75rem;font-size:1.05rem;font-weight:700;transition:background .2s,color .2s,box-shadow .2s,transform .1s;display:inline-flex;position:fixed;bottom:1rem;right:1rem;box-shadow:0 10px 30px #0f172a2e}.friends-help-button:hover{color:#fff;background:#0f172a;outline:none;transform:translateY(-1px)}.friends-help-button:focus-visible{color:#fff;background:#0f172a;outline:none;transform:translateY(-1px)}.friends-help-button:focus-visible{box-shadow:0 0 0 3px #3b82f659}.friends-help-button:active{transform:scale(.96)}.friends-header__hero{flex-direction:column;align-items:center;gap:.25rem;display:flex}.friends-header h1{color:#0f172a;margin:0;font-size:max(1.35rem,min(4vw,1.85rem))}.friends-header__count{color:#94a3b8;font-size:1rem;font-weight:500}.friends-subtitle{color:#475569;margin:0;font-size:.9rem;line-height:1.3}.friends-header__actions{flex-wrap:nowrap;justify-content:center;align-items:center;gap:.85rem;width:100%;max-width:480px;display:flex}.friends-scorechip{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:.55rem;flex:160px;justify-content:center;align-items:center;gap:.45rem;min-width:0;margin:0;padding:.5rem .85rem;font-weight:600;display:inline-flex}.friends-scorechip__label{text-transform:uppercase;letter-spacing:.14em;color:#94a3b8;font-size:.62rem}.friends-scorechip__value{color:#0f172a;font-size:1.2rem}.friends-scorechip__unit{color:#94a3b8;font-size:.75rem}.add-friend-btn{color:#fff;cursor:pointer;background:#0f172a;border:1px solid #0f172a;border-radius:.4rem;flex:none;align-items:center;gap:.45rem;min-height:3rem;padding:.6rem 1.35rem;font-size:.85rem;font-weight:600;transition:background .2s,color .2s,transform .2s;display:inline-flex}.add-friend-btn:not(:disabled):active{transform:scale(.98)}.add-friend-btn:not(:disabled):hover{color:#0f172a;background:#fff}.add-friend-btn__icon{width:1.65rem;height:1.65rem;color:inherit;display:inline-flex}.add-friend-btn__icon svg{width:100%;height:100%}.add-friend-btn__label{align-items:center;display:inline-flex}.friends-list-section{background:0 0;border:none;flex-direction:column;flex:1;gap:.75rem;min-height:0;padding:0 .2rem 0 0;display:flex;overflow-y:auto}.friends-list-section--tree{overflow:hidden}.friends-list{flex-direction:column;gap:.65rem;margin:0;padding:0;list-style:none;display:flex}.friends-list__separator{color:var(--tier-accent,#2563eb);text-transform:uppercase;letter-spacing:.08em;align-items:center;gap:.25rem;padding:.15rem 0;font-size:.72rem;font-weight:600;display:flex}.friends-list__separator:before,.friends-list__separator:after{content:"";background:#e4e4e7;flex:1;height:1px;margin-inline-start:.35rem;margin-inline-end:.35rem}.friends-list__separator-emoji{opacity:.85;font-size:.95rem}.friends-list__separator-label{white-space:nowrap;letter-spacing:.12em;display:inline-block}.friends-list__item{cursor:pointer;background:#fff;border:1px solid #e4e4e7;border-radius:.45rem;align-items:center;gap:.75rem;padding:.65rem .8rem;display:flex}.friends-avatar{object-fit:cover;width:56px;height:56px;box-shadow:none;border:1px solid #e4e4e7;border-radius:.35rem}.friends-list__body{flex:1;justify-content:space-between;align-items:center;gap:.6rem;min-width:0;display:flex}.friends-list__content{flex-direction:column;flex:1;gap:.05rem;min-width:0;display:flex}.friends-name{color:#0f172a;margin:0;font-size:1rem;font-weight:700}.friends-last-seen{color:#64748b;margin:0;font-size:.75rem;line-height:1.3}.friends-parent-of{color:#0f172a;margin:0;font-size:.85rem;font-weight:600}.friends-points{color:#0f172a;white-space:nowrap;background:0 0;border:none;border-radius:0;align-items:baseline;gap:.2rem;margin:0;padding:0;font-weight:600;display:inline-flex}.friends-points__value{font-size:.95rem}.friends-points__unit{color:#94a3b8;font-size:.75rem}.friends-tree-placeholder{display:none}.friends-tree{touch-action:none;background:#f8fafc;border:1px solid #e5e7eb;border-radius:.75rem;height:100%;min-height:0;padding:.5rem;position:relative;overflow:hidden}.friends-tree__empty{color:#94a3b8;margin:0;font-size:.95rem}.friends-tree__roots,.friends-tree__children{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:flex}.friends-tree__children{border-left:2px dashed #e4e4e7;margin-left:1.5rem;padding-left:1rem}.friends-tree__node{flex-direction:column;gap:.5rem;display:flex;position:relative}.friends-tree__card{background:#fff;border:1px solid #e2e8f0;border-radius:.65rem;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.65rem .75rem;display:grid;box-shadow:0 8px 20px #0f172a0f}.friends-tree__avatar{object-fit:cover;border:1px solid #e4e4e7;border-radius:.45rem;width:44px;height:44px}.friends-tree__content{flex-direction:column;gap:.2rem;display:flex}.friends-tree__name{color:#0f172a;margin:0;font-weight:700}.friends-tree__viewport{transform-origin:0 0;width:100%;height:100%;position:relative}.friends-tree__edges{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0}.friends-tree__nodes{position:absolute;top:0;bottom:0;left:0;right:0}.friends-tree__node-card{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;align-items:center;gap:.6rem;min-width:160px;padding:.5rem .6rem;display:inline-flex;position:absolute;transform:translate(-50%,-50%);box-shadow:0 12px 28px #0f172a1f}.friends-tree__couple{color:#0f172a;pointer-events:none;opacity:.9;background:#e2e8f0;border-radius:999px;padding:.1rem .5rem;font-size:.7rem;font-weight:700;position:absolute;transform:translate(-50%,-50%);box-shadow:0 8px 16px #0f172a1f}.friends-tree__node-card:hover{box-shadow:0 16px 32px #0f172a29}.friends-tree__node-content{flex-direction:column;gap:.15rem;min-width:0;display:flex}.friends-tree__node-name{color:#0f172a;white-space:nowrap;font-weight:700}.friends-tree__meta{color:#475569;margin:0;font-size:.85rem}.friends-tree__count{color:#0f172a;font-weight:700}.friends-drawer-overlay{z-index:30;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);overscroll-behavior:contain;background:#0f172a73;justify-content:center;align-items:flex-end;height:100dvh;padding:1.5rem;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.friends-drawer{background:#fff;border-radius:1.25rem 1.25rem 1rem 1rem;flex-direction:column;gap:1rem;width:min(520px,100% - 2rem);max-height:min(640px,90dvh);padding:1.25rem 1.25rem 1.5rem;animation:.28s friends-drawer-rise;display:flex;overflow-y:auto;box-shadow:0 -12px 38px #0f172a47}@keyframes friends-drawer-rise{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.friends-drawer__header{justify-content:space-between;align-items:flex-start;gap:.5rem;display:flex}.friends-drawer__eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#94a3b8;margin:0;font-size:.7rem}.friends-drawer__title{color:#0f172a;margin:.1rem 0 0;font-size:1.25rem}.friends-drawer__close{color:#475569;cursor:pointer;background:#f8fafc;border:none;border-radius:999px;width:2.25rem;height:2.25rem;font-size:1.2rem;font-weight:700}.friends-drawer__form{flex-direction:column;gap:1rem;display:flex}.friends-input{color:#0f172a;flex-direction:column;gap:.35rem;font-weight:600;display:flex}.friends-input input{color:#0f172a;border:1px solid #e2e8f0;border-radius:.6rem;padding:.75rem .85rem;font-family:inherit;font-size:16px}.friends-input input:focus{border-color:#c7d2fe;outline:2px solid #c7d2fe}.friends-input__label{color:#475569;font-size:.9rem;font-weight:600}.friends-picker{flex-direction:column;gap:.5rem;display:flex}.friends-picker__header{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.friends-picker__count{color:#475569;font-size:.85rem;font-weight:600}.friends-picker__search{color:#0f172a;border:1px solid #e2e8f0;border-radius:.6rem;padding:.7rem .85rem;font-family:inherit;font-size:16px}.friends-picker__search:focus{border-color:#c7d2fe;outline:2px solid #c7d2fe}.friends-segmented{border:1px solid #e2e8f0;border-radius:.7rem;grid-template-columns:repeat(3,1fr);display:grid;overflow:hidden}.friends-segmented__btn{color:#0f172a;cursor:pointer;background:#f8fafc;border:none;padding:.5rem .6rem;font-weight:700;transition:background .2s,color .2s}.friends-segmented__btn+.friends-segmented__btn{border-left:1px solid #e2e8f0}.friends-segmented__btn--active{color:#fff;background:#0f172a}.friends-picker__selected{flex-wrap:wrap;gap:.4rem;display:flex}.friends-picker__tag{color:#fff;background:#0f172a;border-radius:9999px;align-items:center;gap:.35rem;padding:.35rem .65rem;font-size:.85rem;font-weight:700;display:inline-flex}.friends-picker__tag-label{line-height:1}.friends-picker__tag-remove{color:inherit;cursor:pointer;background:0 0;border:none;padding:0;font-size:1rem;line-height:1}.friends-picker__choice{background:#f8fafc;border:1px solid #e5e7eb;border-radius:.75rem;max-height:180px;padding:.65rem;overflow:auto}.friends-picker__empty{color:#94a3b8;margin:0;font-size:.9rem}.friends-picker__list{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.friends-picker__option{cursor:pointer;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:.6rem;justify-content:space-between;align-items:center;gap:.5rem;width:100%;padding:.6rem .75rem;display:flex}.friends-picker__option--active{color:#fff;background:#0f172a;border-color:#0f172a}.friends-picker__option-name{font-size:.95rem;font-weight:700}.friends-drawer__actions{justify-content:flex-end;gap:.6rem;display:flex}.friends-drawer__button{cursor:pointer;border:1px solid #0000;border-radius:.7rem;padding:.65rem 1.25rem;font-size:.95rem;font-weight:700}.friends-drawer__button--ghost{color:#0f172a;background:#f8fafc;border-color:#e2e8f0}.friends-drawer__button--solid{color:#fff;background:#0f172a}.friends-drawer__button--solid:hover{background:#111f3a}@media (max-width:480px){.friends-shell{border-radius:.55rem;width:100%;min-height:calc(100vh - 2rem);padding:1rem}.friends-drawer-overlay{padding:1rem max(1rem,env(safe-area-inset-right))max(1.25rem,env(safe-area-inset-bottom))max(1rem,env(safe-area-inset-left))}.friends-drawer{width:min(520px,100% - 1.25rem)}.friends-header__actions{gap:.6rem}.friends-header h1{font-size:1.45rem}.friends-subtitle{font-size:.8rem}.add-friend-btn{padding:.45rem 1rem;font-size:.8rem}}@media (max-width:360px){.friends-shell{padding:.85rem}.friends-header__actions{flex-direction:column;width:100%}.friends-header h1{font-size:1.3rem}.add-friend-btn{padding:.4rem .85rem;font-size:.75rem}.friends-avatar{width:48px;height:48px}}
