:root{
  --ink:#16243d;--muted:#6f82a0;--blue:#3478f6;--orange:#ff954d;--green:#149b79;
  --glass-bg:linear-gradient(140deg,rgba(255,255,255,.62),rgba(255,255,255,.22) 55%,rgba(255,255,255,.4));
  --glass-border:rgba(255,255,255,.7);
  --glass-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(255,255,255,.35),inset 0 0 26px rgba(255,255,255,.28),0 22px 56px rgba(38,72,140,.15),0 2px 8px rgba(38,72,140,.06);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;color:var(--ink);font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:linear-gradient(135deg,#e6efff,#dde9fb 45%,#f1ecfb);background-attachment:fixed}
button,input,textarea,select{font:inherit}button{cursor:pointer}[hidden]{display:none!important}

/* ---------- liquid background ---------- */
.bg-blobs{position:fixed;inset:0;overflow:hidden;z-index:-1;pointer-events:none}
.bg-blobs i{position:absolute;border-radius:50%;filter:blur(70px);opacity:.75;animation:drift 22s ease-in-out infinite alternate}
.bg-blobs i:nth-child(1){width:520px;height:520px;background:#6aa8ff;left:-120px;top:-100px}
.bg-blobs i:nth-child(2){width:440px;height:440px;background:#ffb27d;right:-100px;top:22%;animation-duration:28s;animation-delay:-6s}
.bg-blobs i:nth-child(3){width:480px;height:480px;background:#7fe3c8;left:30%;bottom:-200px;animation-duration:26s;animation-delay:-12s;opacity:.55}
.bg-blobs i:nth-child(4){width:360px;height:360px;background:#b79bff;right:24%;top:-120px;animation-duration:32s;opacity:.6}
@keyframes drift{from{transform:translate(0,0) scale(1)}to{transform:translate(60px,40px) scale(1.12)}}

/* ---------- glass material ---------- */
.glass{
  background:radial-gradient(380px circle at var(--mx,18%) var(--my,0%),rgba(255,255,255,.55),transparent 58%),var(--glass-bg);
  border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);
  backdrop-filter:blur(26px) saturate(190%);-webkit-backdrop-filter:blur(26px) saturate(190%);
  border-radius:26px;
}
.app{max-width:1560px;margin:auto;min-height:100vh;display:grid;grid-template-columns:244px minmax(0,1fr);gap:22px;padding:20px}
.sidebar{padding:18px 14px 16px;display:flex;flex-direction:column;height:calc(100vh - 40px);position:sticky;top:20px;border-radius:30px}
.brand{display:flex;align-items:center;gap:11px;padding:3px 12px 30px;font-weight:780;letter-spacing:.01em;font-size:19px}
.brand-mark{width:36px;height:36px;border-radius:13px;background:none;display:grid;place-items:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 8px 18px rgba(53,116,239,.32)}
.brand-mark img{width:100%;height:100%;display:block;border-radius:inherit}
.brand small{display:block;color:#7c8ea8;font-size:9px;letter-spacing:.16em;font-weight:750;margin-top:-1px}
.nav-label{padding:8px 13px;color:#8d9db4;font-size:10px;letter-spacing:.13em;font-weight:800}
.nav{display:grid;gap:5px}
.nav a{height:43px;text-decoration:none;color:#667791;padding:0 14px;display:flex;align-items:center;gap:13px;border-radius:999px;font-size:13px;font-weight:650;transition:.2s;border:1px solid transparent}
.nav a:hover{background:rgba(255,255,255,.5);color:#2d4666}
.nav a.active{color:#2563e6;background:linear-gradient(120deg,rgba(255,255,255,.85),rgba(255,255,255,.35));border-color:rgba(255,255,255,.85);box-shadow:inset 0 1px 0 #fff,0 6px 16px rgba(52,110,230,.14)}
.nav svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.sidebar-bottom{margin-top:auto}
.market-status{margin:16px 4px 12px;padding:14px;border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.4);border-radius:20px;color:#64768f;font-size:11px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.status-top{display:flex;align-items:center;gap:8px;color:#3a4f6d;font-size:12px;font-weight:700;margin-bottom:7px}
.live-dot{width:7px;height:7px;border-radius:50%;background:#2bc299;box-shadow:0 0 0 4px rgba(43,194,153,.18)}
.status-time{font-size:10px;color:#8798ae}
.profile{display:flex;gap:10px;align-items:center;padding:11px 9px;border-radius:18px;cursor:pointer;transition:.2s}
.profile:hover{background:rgba(255,255,255,.5)}
.profile strong{font-size:12px;display:block;max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile span{font-size:10px;color:var(--muted);display:block;max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(140deg,#ffd1aa,#ff975f);display:grid;place-items:center;color:#713d23;font-size:12px;font-weight:800;flex:0 0 auto;background-size:cover;background-position:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 2px 8px rgba(255,140,80,.25);overflow:hidden}

.main{min-width:0;padding:4px 4px 30px}
.topbar{height:53px;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.crumb{font-size:12px;color:#7889a0}.crumb b{color:#35496a;font-weight:700}
.top-actions{display:flex;align-items:center;gap:12px}
.search{width:240px;height:40px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,255,255,.45);display:flex;align-items:center;gap:9px;padding:0 14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 14px rgba(44,72,119,.05);backdrop-filter:blur(14px)}
.search svg{width:16px;stroke:#7f90a6;fill:none;stroke-width:2}
.search input{width:100%;border:0;background:transparent;outline:0;font-size:12px;color:#34496a}
.search input::placeholder{color:#97a5b8}
.icon-btn{width:40px;height:40px;border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.45);border-radius:50%;display:grid;place-items:center;color:#63758f;position:relative;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 14px rgba(44,72,119,.05)}
.icon-btn svg{width:17px;stroke:currentColor;fill:none;stroke-width:1.8}
.icon-btn.has-notifications:after{background:#2f6be8;box-shadow:0 0 0 3px rgba(47,107,232,.18)}

.page-title{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:21px}
.eyebrow{color:#7687a0;font-weight:750;text-transform:uppercase;letter-spacing:.14em;font-size:10px;margin:0 0 4px}
.page-title h1{font-size:28px;letter-spacing:-.04em;margin:0;font-weight:770}
.date-chip{border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.5);color:#566a88;font-size:11px;border-radius:999px;padding:9px 14px;display:flex;align-items:center;gap:8px;box-shadow:inset 0 1px 0 #fff}
.date-chip svg{width:15px;stroke:#6f829c;fill:none;stroke-width:1.7}

.indices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.index-card{position:relative;overflow:hidden;padding:18px 20px 16px;min-height:116px}
.index-card:after{content:"";position:absolute;width:120px;height:80px;right:0;top:0;background:radial-gradient(circle at top right,rgba(99,160,255,.28),transparent 70%);pointer-events:none}
.index-top{display:flex;justify-content:space-between;align-items:center;color:#64768f;font-size:11px;font-weight:680}
.ticker-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#3774e8;background:rgba(255,255,255,.7);font-size:11px;font-weight:850;box-shadow:inset 0 1px 0 #fff}
.index-card:nth-child(2) .ticker-icon{color:#ef8d48}.index-card:nth-child(3) .ticker-icon{color:#20a382}
.index-value{font-size:24px;letter-spacing:-.04em;font-weight:770;margin:7px 0 4px}
.index-bottom{display:flex;gap:7px;align-items:center;font-size:10px;color:#7d8da4}
.positive{color:#129a78;font-weight:720}.index-bottom .period{color:#93a1b5}

.layout{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(275px,.92fr);gap:15px;align-items:stretch}
.chart-card{padding:20px 21px 13px;min-height:331px}
.card-head{display:flex;justify-content:space-between;align-items:flex-start}
.card-head h2{margin:0;font-size:15px;letter-spacing:-.02em}
.subtle{font-size:10px;color:#8696ab;margin-top:3px}
.range{display:flex;gap:3px;padding:3px;background:rgba(255,255,255,.38);border:1px solid rgba(255,255,255,.75);border-radius:999px;box-shadow:inset 0 1px 2px rgba(60,90,150,.08)}
.range button{border:0;background:transparent;color:#71839c;font-size:10px;border-radius:999px;padding:6px 11px}
.range button.selected{background:linear-gradient(180deg,#fff,rgba(255,255,255,.7));color:#2e6bea;box-shadow:0 2px 8px rgba(55,102,174,.16),inset 0 1px 0 #fff;font-weight:750}
.chart-summary{display:flex;gap:10px;align-items:baseline;margin-top:16px}
.chart-summary strong{font-size:28px;letter-spacing:-.05em}.chart-summary span{font-size:11px;color:#169979;font-weight:730}
.chart-wrap{height:178px;margin-top:7px;position:relative}.chart-wrap svg{width:100%;height:100%;overflow:visible}
.gridline{stroke:rgba(120,150,200,.25);stroke-dasharray:3 5;stroke-width:1}
.axis-label{fill:#8d9bb0;font:9px system-ui,sans-serif}
.chart-line{fill:none;stroke:#4387f5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 4px 6px rgba(52,120,246,.28));transition:d .35s}
.chart-fill{opacity:.9;transition:d .35s}
.chart-dot{fill:#fff;stroke:#4285f4;stroke-width:3}
.chart-legend{display:flex;align-items:center;justify-content:space-between;color:#8d9bb0;font-size:9px;padding:0 3px}

.watch-card{padding:20px 18px 14px;min-width:0}
.watch-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.watch-head h2{margin:0;font-size:15px}
.plain-link{border:0;background:transparent;color:#3a78ea;font-size:10px;font-weight:720;padding:5px 2px}
.watch-item{display:grid;grid-template-columns:34px minmax(50px,1fr) auto;align-items:center;gap:10px;padding:10px 8px;margin:0 -8px;border-radius:16px;cursor:pointer;transition:.18s}
.watch-item:hover{background:rgba(255,255,255,.5)}
.coin{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.75);color:#4b78d5;display:grid;place-items:center;font-weight:800;font-size:12px;box-shadow:inset 0 1px 0 #fff}
.watch-item:nth-of-type(3) .coin{color:#ef914c}.watch-item:nth-of-type(4) .coin{color:#8c72d9}.watch-item:nth-of-type(5) .coin{color:#21a483}.watch-item:nth-of-type(6) .coin{color:#64718a}
.symbol{font-size:11px;font-weight:730;white-space:nowrap}
.company{font-size:9px;color:#8696ab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:105px}
.price{text-align:right;font-size:11px;font-weight:700}
.change{text-align:right;font-size:9px;color:#159879;margin-top:2px}.change.down{color:#e17d50}

.lower{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(275px,.92fr);gap:15px;margin-top:15px}
.movers-card,.sentiment-card{padding:18px 20px}
.movers-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.movers-head h2,.sentiment-card h2{font-size:14px;margin:0}.movers-head span{font-size:10px;color:#8696ab}
.movers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mover{padding:12px;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.38);border-radius:18px;min-width:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.mover-top{display:flex;justify-content:space-between;align-items:center}
.mover-symbol{font-size:11px;font-weight:760}
.spark{width:48px;height:19px}.spark path{fill:none;stroke:#28a783;stroke-width:2;stroke-linecap:round}.spark.down path{stroke:#ed9861}
.mover-name{color:#8696ab;font-size:9px;margin-top:2px}
.mover-price{font-size:13px;font-weight:740;margin-top:8px}
.mover-change{font-size:9px;color:#159879;margin-top:2px}.mover-change.down{color:#e17d50}
.sentiment-body{display:flex;align-items:center;gap:15px;padding-top:14px}
.gauge{width:84px;height:46px;position:relative;flex:0 0 auto}.gauge svg{width:84px;height:46px;display:block}
.gauge-needle{position:absolute;width:30px;height:2px;left:42px;bottom:2px;background:#334d6e;transform-origin:left center;transform:rotate(-26deg);border-radius:3px}
.gauge-dot{position:absolute;left:38px;bottom:-1px;width:9px;height:9px;border-radius:50%;background:#334d6e;border:2px solid white}
.sentiment-copy strong{font-size:15px;display:block}.sentiment-copy span{font-size:9px;color:#8696ab}
.sentiment-foot{font-size:9px;color:#8696ab;margin-top:11px}

.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:rgba(24,44,78,.82);backdrop-filter:blur(16px);color:#fff;border-radius:999px;padding:11px 18px;font-size:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 10px 25px rgba(18,43,80,.28);transition:.25s;z-index:30;max-width:90vw;text-align:center}
.toast.show{transform:translate(-50%,0);opacity:1}

/* ---------- buttons ---------- */
.auth-button,.post-button{border:1px solid rgba(255,255,255,.55);border-radius:999px;color:#fff;background:linear-gradient(180deg,#6aa6ff,#2f6be8);font-size:12px;font-weight:750;padding:10px 18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -2px 6px rgba(20,60,160,.25),0 8px 20px rgba(52,120,246,.32);white-space:nowrap;transition:.18s;display:inline-flex;align-items:center;gap:8px}
.auth-button:hover,.post-button:hover{filter:brightness(1.06);transform:translateY(-1px)}
.post-button:disabled{opacity:.6;cursor:progress;transform:none}
.ghost-button{border:1px solid rgba(255,255,255,.85);border-radius:999px;color:#3b5273;background:rgba(255,255,255,.55);font-size:12px;font-weight:720;padding:10px 18px;box-shadow:inset 0 1px 0 #fff,0 4px 12px rgba(44,72,119,.07);transition:.18s}
.ghost-button:hover{background:rgba(255,255,255,.8)}
.auth-wrap{position:relative}
.mini-avatar{width:22px;height:22px;border-radius:50%;background:linear-gradient(140deg,#ffd1aa,#ff975f);background-size:cover;background-position:center;display:grid;place-items:center;font-size:9px;font-weight:800;color:#713d23;border:1px solid rgba(255,255,255,.8)}
.account-menu{position:absolute;right:0;top:calc(100% + 10px);width:210px;padding:8px;z-index:12;border-radius:22px}
.account-menu .who{padding:8px 10px 10px;border-bottom:1px solid rgba(255,255,255,.6);margin-bottom:6px}
.account-menu .who strong{display:block;font-size:12px}.account-menu .who span{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.account-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:14px;padding:10px;font-size:12px;color:#3b5273;font-weight:650}
.account-menu button:hover{background:rgba(255,255,255,.65)}

/* ---------- videos ---------- */
.video-title{align-items:center;margin:1px 0 20px}.video-subtitle{margin:5px 0 0;color:#71839c;font-size:12px}
.demo-pill{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.5);padding:9px 14px;border-radius:999px;color:#53688a;font-size:10px;font-weight:700;box-shadow:inset 0 1px 0 #fff}
.demo-pill .live-dot{width:6px;height:6px}
.video-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.75fr);gap:16px;align-items:start}
.video-main-column{min-width:0}
.composer-card{padding:20px;margin-bottom:18px}
.composer-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.composer-heading h2,.video-side-card h2{font-size:14px;margin:0}.composer-heading p{font-size:10px;color:#7d8fa8;margin:3px 0 0}
.file-drop{position:relative;display:flex;min-height:116px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1.5px dashed rgba(90,140,235,.5);border-radius:22px;background:linear-gradient(135deg,rgba(214,230,255,.55),rgba(255,255,255,.45));color:#41597a;cursor:pointer;transition:.2s;text-align:center;padding:10px}
.file-drop:hover{border-color:#4f8df4;background:rgba(235,244,255,.85)}
.file-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.file-drop strong{font-size:12px;overflow-wrap:anywhere}.file-drop>span:last-of-type{font-size:10px;color:#7d8fa8}
.upload-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.8);color:#3e80ed;margin-bottom:2px;box-shadow:inset 0 1px 0 #fff}
.upload-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.video-preview-wrap{margin-top:12px;border-radius:20px;overflow:hidden;background:#101c30;text-align:center}
.video-preview-wrap video{max-width:100%;max-height:330px;vertical-align:middle}
.caption-label{display:block;margin:13px 0 6px;font-size:10px;color:#566b88;font-weight:700}
.composer-card textarea,.field textarea{width:100%;min-height:65px;resize:vertical;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.55);border-radius:16px;padding:10px 13px;outline:none;color:#223652;font-size:12px;box-shadow:inset 0 1px 3px rgba(60,90,150,.08)}
.composer-card textarea:focus,.auth-modal input:focus,.field input:focus,.field textarea:focus,.field select:focus{border-color:#78a8f5;box-shadow:0 0 0 3px rgba(69,133,245,.15)}
::placeholder{color:#93a2b6}
.composer-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:11px}
.form-note{font-size:9px;line-height:1.45;color:#8496ad}
.progress{height:8px;border-radius:99px;background:rgba(255,255,255,.55);margin-top:12px;overflow:hidden;box-shadow:inset 0 1px 2px rgba(60,90,150,.15)}
.progress i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#6aa6ff,#2f6be8);transition:width .15s}
.feed-heading{display:flex;justify-content:space-between;align-items:end;margin:4px 4px 10px}
.feed-heading h2{font-size:15px;margin:0}.feed-heading span{font-size:10px;color:#8496ad}.feed-count{font-size:10px;color:#8496ad}
.empty-feed{padding:26px 18px;text-align:center}
.empty-video-icon{width:48px;height:48px;border-radius:50%;margin:0 auto 10px;display:grid;place-items:center;color:#4584ed;background:rgba(255,255,255,.75);box-shadow:inset 0 1px 0 #fff}
.empty-video-icon svg{width:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.empty-feed h3{font-size:13px;margin:0 0 4px}.empty-feed p{font-size:10px;line-height:1.55;color:#7d8fa8;max-width:330px;margin:0 auto 9px}
.video-side-card{padding:21px;position:sticky;top:20px}
.side-card-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#ed8c4d;background:rgba(255,255,255,.75);margin-bottom:13px;box-shadow:inset 0 1px 0 #fff}
.video-side-card>p{font-size:10px;color:#71839c;line-height:1.6;margin:7px 0 15px}
.side-rule{height:1px;background:rgba(255,255,255,.7);margin-bottom:13px}
.rule-row{display:flex;gap:8px;align-items:center;color:#52678a;font-size:10px;margin:10px 0}
.rule-check{width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.8);color:#169878;display:grid;place-items:center;font-size:10px;font-weight:800}
.demo-warning{margin-top:17px;border:1px solid rgba(255,255,255,.8);background:rgba(255,248,239,.55);padding:11px;border-radius:16px;color:#8d6a49;font-size:9px;line-height:1.55}
.video-post{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:16px;padding:12px;margin-bottom:13px;align-items:center}
.video-media{background:#101c30;border-radius:20px;overflow:hidden;max-height:520px;display:grid;place-items:center}
.video-media video{width:100%;height:auto;max-height:520px;object-fit:contain;display:block;background:#101c30}
.video-media img{width:100%;height:auto;max-height:520px;object-fit:contain;display:block;background:#101c30}
.video-post-details{align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:12px 9px}
.video-byline{display:flex;gap:9px;align-items:center;cursor:pointer;border:0;background:none;padding:0;text-align:left;color:inherit}
.video-byline strong{display:block;font-size:12px}.video-byline span{display:block;color:#8496ad;font-size:10px;margin-top:2px}
.video-caption{font-size:13px;line-height:1.55;color:#34496a;white-space:pre-wrap;overflow-wrap:anywhere;margin:15px 0}.video-caption.collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.see-more{border:0;background:none;color:#3478f6;font-size:11px;font-weight:700;padding:0;margin:-10px 0 12px;cursor:pointer}.see-more:hover{text-decoration:underline}
.post-actions{display:flex;gap:8px;flex-wrap:wrap}
.like-button,.delete-button{border:1px solid rgba(255,255,255,.85);border-radius:999px;background:rgba(255,255,255,.55);padding:8px 14px;color:#5a6e8a;font-size:11px;box-shadow:inset 0 1px 0 #fff;transition:.15s}
.like-button:hover,.delete-button:hover{background:rgba(255,255,255,.85)}
.like-button.liked{color:#e26d77;background:rgba(255,240,242,.85)}
.delete-button{color:#c2584f}

/* ---------- profile ---------- */
.profile-card{padding:0;margin-bottom:16px;overflow:hidden}
.cover{height:220px;background:linear-gradient(120deg,#7fb0ff,#b79bff 55%,#ffb98a);background-size:cover;background-position:center;position:relative}
.cover:after{content:"";position:absolute;inset:auto 0 0 0;height:80px;background:linear-gradient(to top,rgba(255,255,255,.45),transparent)}
.profile-head{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"avatar actions" "id id";column-gap:18px;align-items:start;padding:0 26px 8px;position:relative;z-index:1}
.profile-head .big-avatar{grid-area:avatar;margin-top:-64px}
.big-avatar{width:128px;height:128px;font-size:36px;border:5px solid #fff;box-shadow:0 14px 34px rgba(40,70,140,.25)}
.profile-actions{grid-area:actions;display:flex;gap:10px;justify-content:flex-end;align-items:center;padding-top:16px}
.profile-id{grid-area:id;min-width:0;padding:14px 0 6px}
.profile-id h2{margin:0;font-size:28px;line-height:1.15;letter-spacing:-.04em;font-weight:780}
.profile-id .handle{display:inline-block;margin-top:6px;padding:3px 11px;border-radius:999px;background:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.85);color:#4a6a9c;font-size:12px;font-weight:650;box-shadow:inset 0 1px 0 #fff}
.profile-id .handle:empty{display:none}
.profile-id .bio{margin:12px 0 0;font-size:14px;line-height:1.55;color:#34496a;max-width:620px;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-id .bio:empty{display:none}
.profile-stats{display:flex;flex-wrap:wrap;gap:10px;padding:8px 26px 22px;font-size:11px;color:#71839c}
.profile-stats>div{flex:1 1 84px;max-width:140px;padding:11px 14px;border-radius:16px;background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 0 #fff;text-align:center}
.profile-stats b{display:block;font-size:17px;color:var(--ink);letter-spacing:-.02em}
.profile-grid{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.5fr);gap:16px;align-items:start}
.about-card,.profile-videos-card{padding:20px}
.about-card h2,.profile-videos-card h2{margin:0 0 12px;font-size:14px}
.about-row{display:flex;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.65);font-size:12px}
.about-row:first-of-type{border-top:0}
.about-row dt{width:92px;flex:0 0 auto;color:#7d8fa8}.about-row dd{margin:0;color:#25394f;overflow-wrap:anywhere}
.about-row dd a{color:#2f6be8}
.about-empty{font-size:11px;color:#8496ad;margin:0}
.profile-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.pv{border-radius:20px;overflow:hidden;background:#101c30;position:relative;box-shadow:0 8px 20px rgba(30,50,90,.18)}
.pv video{width:100%;aspect-ratio:9/16;object-fit:cover;display:block}
.pv img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.pv p{margin:0;position:absolute;left:0;right:0;bottom:0;padding:22px 10px 8px;font-size:10px;color:#fff;background:linear-gradient(transparent,rgba(8,16,30,.78));pointer-events:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.login-prompt{padding:40px 20px;text-align:center}.login-prompt h3{margin:0 0 6px}.login-prompt p{font-size:12px;color:#71839c;margin:0 0 14px}

/* ---------- marketplace ---------- */
.market-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.75fr);gap:16px;align-items:start}
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:13px}
.market-card{padding:12px;display:flex;flex-direction:column;gap:10px}
.market-photo{border-radius:16px;overflow:hidden;background:#101c30;min-height:150px;display:grid;place-items:center;color:#8fa3bd;font-size:11px}
.market-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.market-price{font-size:17px;font-weight:780;letter-spacing:-.02em}
.market-title{font-size:13px;font-weight:650;color:#243955}
.market-meta{font-size:10px;color:#8496ad}
.market-seller{display:flex;gap:8px;align-items:center;background:none;border:0;padding:0;text-align:left;color:inherit;cursor:pointer}
.market-seller strong{font-size:11px;display:block}.market-seller span{font-size:10px;color:#8496ad;display:block}
.market-comments{border-top:1px solid rgba(255,255,255,.7);padding-top:8px;display:grid;gap:8px}
.comment{display:flex;gap:8px}
.comment .avatar{width:28px;height:28px;font-size:10px;flex:0 0 auto}
.comment-body{background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.8);border-radius:14px;padding:7px 10px;font-size:11px;flex:1;min-width:0}
.comment-body strong{font-size:11px}.comment-body p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#34496a}
.comment-meta{display:flex;gap:8px;margin-top:4px;font-size:10px;color:#8496ad}
.comment-meta button{border:0;background:none;color:#3478f6;font-size:10px;font-weight:700;padding:0}
.comment-replies{margin:2px 0 2px 36px;display:grid;gap:8px}
.comment-form{display:flex;gap:7px}
.comment-form input{flex:1;height:36px;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:rgba(255,255,255,.65);padding:0 12px;font-size:11px;outline:0;color:#243955}
.reply-box{margin-left:36px}

/* ---------- messages ---------- */
.messages-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.4fr);gap:16px;align-items:start;min-height:480px}
.convo-list{display:flex;flex-direction:column;gap:6px;max-height:560px;overflow:auto}
.convo-item{display:flex;gap:10px;align-items:center;border:0;background:transparent;border-radius:16px;padding:9px;text-align:left;cursor:pointer;transition:.15s;color:inherit;width:100%}
.convo-item:hover{background:rgba(255,255,255,.5)}
.convo-item.active{background:rgba(255,255,255,.8);box-shadow:inset 0 1px 0 #fff}
.convo-item strong{font-size:12px;display:block}.convo-item span{font-size:10px;color:#8496ad;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
.unread-dot{margin-left:auto;width:9px;height:9px;border-radius:50%;background:#2f6be8;flex:0 0 auto}
.chat-card{display:flex;flex-direction:column;min-height:480px;padding:0;overflow:hidden}
.chat-head{display:flex;gap:10px;align-items:center;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.7)}
.chat-head strong{font-size:13px;display:block}.chat-head span{font-size:10px;color:#8496ad}
.chat-thread{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:8px;min-height:280px}
.bubble{max-width:78%;padding:9px 13px;border-radius:18px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.bubble.mine{align-self:flex-end;background:linear-gradient(180deg,#6aa6ff,#2f6be8);color:#fff;border-bottom-right-radius:6px}
.bubble.theirs{align-self:flex-start;background:rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.9);color:#243955;border-bottom-left-radius:6px}
.bubble-time{font-size:9px;color:#8496ad;margin-top:2px}
.chat-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid rgba(255,255,255,.7)}
.chat-form input{flex:1;height:42px;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:rgba(255,255,255,.7);padding:0 15px;font-size:12px;outline:0;color:#243955}
.user-search{position:relative}
.user-search input{width:100%;height:38px;border:1px solid rgba(255,255,255,.9);border-radius:12px;background:rgba(255,255,255,.65);padding:0 12px;font-size:11px;outline:0;color:#243955}
.user-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;display:grid;gap:4px;padding:6px}
.user-results button{display:flex;gap:8px;align-items:center;border:0;background:transparent;border-radius:12px;padding:7px;text-align:left;cursor:pointer}
.user-results button:hover{background:rgba(255,255,255,.7)}
@media(max-width:820px){.market-layout,.messages-layout{grid-template-columns:1fr}.chat-card{min-height:60vh}}

/* ---------- modals ---------- */
.auth-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px;background:rgba(19,39,68,.32);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);overflow:auto}
.auth-modal{position:relative;width:min(100%,400px);padding:28px;border-radius:32px;background:var(--glass-bg),rgba(255,255,255,.55);box-shadow:var(--glass-shadow),0 40px 100px rgba(21,48,87,.3)}
.edit-modal{width:min(100%,560px);max-height:calc(100vh - 36px);overflow:auto;padding:0}
.edit-modal .edit-body{padding:0 26px 26px}
.modal-close{position:absolute;right:15px;top:14px;width:32px;height:32px;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.7);color:#6f8199;font-size:21px;line-height:1;z-index:3}
.auth-logo{width:40px;height:40px;border-radius:14px;background:linear-gradient(145deg,#6db0ff,#2f65e9);display:grid;place-items:center;color:white;font-size:22px;font-weight:800;margin-bottom:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 8px 18px rgba(53,116,239,.28)}
.auth-modal .eyebrow{font-size:9px;margin:0 0 4px}
.auth-modal h2{font-size:22px;letter-spacing:-.03em;margin:0}
.auth-description{font-size:11px;color:#71839c;margin:5px 0 17px}
.auth-modal label,.field>label{display:block;font-size:10px;color:#4a6080;font-weight:700;margin:11px 0 5px}
.auth-modal label span{font-weight:400;color:#8f9db0}
.auth-modal input,.field input,.field select,.market-form input,.market-form textarea{width:100%;height:42px;border:1px solid rgba(255,255,255,.9);border-radius:14px;background:rgba(255,255,255,.65);padding:0 13px;color:#243955;font-size:12px;outline:0;box-shadow:inset 0 1px 3px rgba(60,90,150,.08)}
.market-form textarea{height:auto;min-height:65px;padding:10px 13px;resize:vertical}
#marketForm input,#marketForm textarea{width:100%;border:1px solid rgba(255,255,255,.9);border-radius:14px;background:rgba(255,255,255,.65);color:#243955;font-size:12px;outline:0;box-shadow:inset 0 1px 3px rgba(60,90,150,.08)}
#marketForm input{height:42px;padding:0 13px}#marketForm textarea{min-height:65px;padding:10px 13px;resize:vertical}
#marketForm input:focus,#marketForm textarea:focus{border-color:#78a8f5;box-shadow:0 0 0 3px rgba(69,133,245,.15)}
.field input[type=file]{display:none}
.auth-submit{width:100%;margin-top:16px;height:44px;justify-content:center}
.auth-legal{font-size:9px;color:#8496ad;line-height:1.5;margin:10px 0 0}
.auth-legal#authStatus,.auth-legal.err{color:#bd4f49;font-size:10px}
.auth-switch{display:block;margin:10px auto 0;border:0;background:transparent;color:#3478f6;font-size:10px;font-weight:700;padding:6px}
.edit-cover{height:160px;background:linear-gradient(120deg,#7fb0ff,#b79bff 55%,#ffb98a);background-size:cover;background-position:center;position:relative;display:flex;align-items:flex-end;justify-content:flex-end;padding:12px}
.edit-avatar-row{display:flex;align-items:flex-end;gap:12px;margin:-46px 0 6px;position:relative}
.edit-avatar-row .big-avatar{width:92px;height:92px;font-size:26px;margin-top:0;border-width:4px}
.pill-label{display:inline-block;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.75);border-radius:999px;padding:7px 13px;font-size:11px;font-weight:700;color:#3b5273;cursor:pointer;box-shadow:inset 0 1px 0 #fff}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.edit-cover{gap:8px}
.pill-label.danger{color:#bd4f49}
.cover-btn{position:absolute;right:14px;bottom:14px;z-index:2}
.big-avatar.editable{cursor:pointer}
.mobile-nav{display:none}

@media(max-width:1100px){.app{grid-template-columns:205px minmax(0,1fr);padding:16px;gap:16px}.layout,.lower{grid-template-columns:minmax(0,1.4fr) minmax(255px,.85fr)}.search{width:190px}.profile-grid{grid-template-columns:1fr}}
@media(max-width:820px){
  .app{display:block;padding:14px 16px 96px}.sidebar{display:none}.main{padding:2px 0 0}.topbar{margin-bottom:20px}.crumb{display:none}
  .layout,.lower{grid-template-columns:1fr}
  .watch-card{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}.watch-head{grid-column:1/-1}
  .indices{gap:10px}.index-card{min-height:104px}
  .mobile-nav{position:fixed;z-index:15;display:flex;bottom:12px;left:12px;right:12px;height:62px;border:1px solid rgba(255,255,255,.85);border-radius:999px;background:linear-gradient(140deg,rgba(255,255,255,.75),rgba(255,255,255,.4));backdrop-filter:blur(26px) saturate(190%);-webkit-backdrop-filter:blur(26px) saturate(190%);box-shadow:var(--glass-shadow);align-items:center;justify-content:space-around;padding:0 6px}
  .mobile-nav button{border:0;background:none;color:#71839c;font-size:9px;display:grid;justify-items:center;gap:3px;padding:7px 8px;border-radius:999px}
  .mobile-nav button.active{color:#2f6be8;background:rgba(255,255,255,.75);box-shadow:inset 0 1px 0 #fff,0 3px 10px rgba(52,110,230,.15)}
  .mobile-nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .video-layout{grid-template-columns:1fr}.video-side-card{position:static;grid-row:1}
  .video-post{grid-template-columns:minmax(0,260px) minmax(0,1fr)}
}
@media(max-width:560px){
  .app{padding:10px 12px 92px}.topbar{height:45px;margin-bottom:17px}.top-actions{gap:7px}.search{width:min(46vw,190px);height:38px}.icon-btn{width:38px;height:38px}
  .page-title{align-items:center;margin-bottom:16px}.page-title h1{font-size:24px}.date-chip{font-size:0;padding:9px}.date-chip svg{width:16px}
  .indices{grid-template-columns:1fr;gap:8px}
  .index-card{min-height:0;padding:13px 15px;display:grid;grid-template-columns:1fr auto;align-items:center}
  .index-top{grid-column:1/-1}.index-value{font-size:20px;margin:6px 0 0}.index-bottom{justify-self:end;grid-column:2;grid-row:2}
  .chart-card{padding:16px 14px;min-height:306px}.range button{padding:6px 8px;font-size:9px}.chart-wrap{height:164px}
  .watch-card{padding:16px 14px;column-gap:10px}.watch-item{grid-template-columns:30px minmax(45px,1fr) auto;gap:7px}.coin{width:29px;height:29px}.company{max-width:84px}
  .movers-card,.sentiment-card{padding:16px 14px}.movers{gap:7px}.mover{padding:10px 9px}.mover-price{font-size:12px}.spark{width:35px}
  .demo-pill{font-size:0;padding:8px}.auth-button{padding:9px 13px;font-size:11px}
  .composer-card{padding:15px}.composer-actions{align-items:flex-end}.form-note{max-width:170px}
  .video-post{grid-template-columns:1fr;gap:0;padding:9px}.video-media{max-height:none}.video-media video{width:min(100%,320px);max-height:480px;margin:auto}
  .video-post-details{padding:12px 6px 5px}.auth-modal{padding:23px}.auth-backdrop{padding:12px}
  .cover{height:150px}.profile-head{padding:0 16px 6px;column-gap:12px}.big-avatar{width:104px;height:104px;font-size:30px}.profile-head .big-avatar{margin-top:-52px}.profile-id h2{font-size:24px}.profile-stats{padding:6px 16px 18px;gap:8px}.profile-stats>div{padding:9px 8px}.field-row{grid-template-columns:1fr}
  .profile-actions{padding-top:12px}
}
/* ---------- mobile material pass ---------- */
@media(max-width:820px){
  body{background:linear-gradient(145deg,#dcecff 0%,#eaf2ff 43%,#f6ecf8 100%);background-attachment:fixed}
  .bg-blobs{display:block;opacity:.72}
  .bg-blobs i{filter:blur(58px);opacity:.68}
  .bg-blobs i:nth-child(1){width:300px;height:300px;left:-140px;top:60px;background:#8ec5ff}
  .bg-blobs i:nth-child(2){width:250px;height:250px;right:-110px;top:35%;background:#ffc6a9}
  .bg-blobs i:nth-child(3){width:280px;height:280px;left:14%;bottom:-80px;background:#9ce7d2}
  .bg-blobs i:nth-child(4){width:220px;height:220px;right:10%;top:-100px;background:#c4b5ff}
  .app{padding:11px 13px 94px}
  .main{padding:0}
  .topbar{height:46px;margin:0 -1px 17px;position:relative;z-index:2;background:transparent!important}
  .top-actions{gap:7px}
  .search,.icon-btn,.auth-button{border-color:rgba(255,255,255,.9);background:rgba(255,255,255,.48)!important;backdrop-filter:blur(18px) saturate(175%)!important;-webkit-backdrop-filter:blur(18px) saturate(175%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -8px 18px rgba(255,255,255,.12),0 7px 18px rgba(76,113,177,.11)}
  .search{width:min(46vw,190px);height:39px}
  .icon-btn{width:39px;height:39px}
  .auth-button{padding:9px 14px;color:#fff;background:linear-gradient(135deg,#8bbcff,#4b83f2)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 18px rgba(65,119,228,.27)}
  .page-title{margin-bottom:15px}
  .page-title h1{font-size:25px;letter-spacing:-.055em}
  .eyebrow{font-size:8px;letter-spacing:.13em;color:#7c91ad}
  .date-chip{padding:9px;border-color:rgba(255,255,255,.88);background:rgba(255,255,255,.42);backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
  .glass{border-color:rgba(255,255,255,.78);background:radial-gradient(260px circle at var(--mx,12%) var(--my,0%),rgba(255,255,255,.54),transparent 60%),linear-gradient(145deg,rgba(255,255,255,.68),rgba(255,255,255,.28) 62%,rgba(255,255,255,.48));backdrop-filter:blur(22px) saturate(170%)!important;-webkit-backdrop-filter:blur(22px) saturate(170%)!important;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.96),inset 0 -1px 0 rgba(255,255,255,.28),inset 0 0 22px rgba(255,255,255,.22),0 16px 34px rgba(80,113,171,.13),0 2px 7px rgba(80,113,171,.06)}
  .indices{gap:9px;margin-bottom:13px}
  .index-card{min-height:0;padding:14px 15px;border-radius:24px}
  .index-card:after{width:110px;height:70px;opacity:.8}
  .index-top{font-size:10px}
  .ticker-icon{width:25px;height:25px;font-size:10px}
  .index-value{font-size:21px;margin:5px 0 0}
  .index-bottom{font-size:9px;gap:6px}
  .chart-card{padding:16px 14px 13px;min-height:306px;border-radius:27px}
  .card-head h2,.watch-head h2{font-size:14px}
  .subtle{font-size:9px}
  .range{background:rgba(255,255,255,.3);border-color:rgba(255,255,255,.65)}
  .range button{padding:6px 8px;font-size:9px}
  .range button.selected{background:rgba(255,255,255,.82);box-shadow:0 3px 10px rgba(87,122,184,.16),inset 0 1px 0 #fff}
  .chart-summary{margin-top:14px}.chart-summary strong{font-size:25px}.chart-summary span{font-size:9px}
  .chart-wrap{height:164px;margin-top:5px}
  .chart-line{stroke-width:3.4;filter:drop-shadow(0 4px 6px rgba(52,120,246,.35))}
  .watch-card{padding:16px 14px;column-gap:9px;border-radius:27px}
  .watch-item{padding:9px 7px;margin:0 -7px}
  .coin{width:29px;height:29px}
  .company{font-size:8px}
  .price{font-size:10px}.change{font-size:8px}
  .lower{gap:13px;margin-top:13px}
  .movers-card,.sentiment-card{padding:16px 14px;border-radius:27px}
  .mobile-nav{left:12px;right:12px;bottom:11px;height:63px;border-radius:25px;padding:0 5px;border-color:rgba(255,255,255,.9);background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,255,255,.42))!important;backdrop-filter:blur(24px) saturate(180%)!important;-webkit-backdrop-filter:blur(24px) saturate(180%)!important;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),0 12px 28px rgba(73,106,160,.2)}
  .mobile-nav button{min-width:48px;color:#7c8ea8}
  .mobile-nav button.active{color:#3b7cf0;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 #fff,0 4px 12px rgba(61,117,226,.15)}
}

@media(max-width:560px){
  .app{padding-left:12px;padding-right:12px}
  .topbar{margin-bottom:16px}
  .indices{grid-template-columns:1fr}
  .layout,.lower{gap:12px}
  .movers{gap:7px}
  .mover{border-color:rgba(255,255,255,.75);background:rgba(255,255,255,.34)}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* ---------- family social shell ---------- */
.family-shell{display:none}
.family-shell.is-visible{display:block}
body.family-active{background:#ededed}
body.family-active .app,body.family-active~.app{display:none!important}
body.family-active .mobile-nav{display:none!important}
.family-screen{width:min(100%,430px);min-height:100vh;margin:auto;background:#fff;position:relative;overflow:hidden}
.family-screen[hidden]{display:none}
.family-onboarding{min-height:100vh;display:flex;flex-direction:column;padding:18px 14px 16px;background:linear-gradient(180deg,#f0f0f0 0%,#f6f6f6 56%,#fff 75%)}
.family-status{height:30px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:650;color:#111;position:relative}.family-status:after{content:"";position:absolute;top:0;left:50%;width:86px;height:29px;transform:translateX(-50%);border-radius:20px;background:#050505}
.family-progress{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:10px 3px 0}.family-progress i{height:4px;border-radius:99px;background:#c4c4c4}.family-progress i:first-child{background:#111}
.family-skip{align-self:flex-end;border:0;background:transparent;color:#161616;font-size:12px;margin-top:-17px;padding:4px 0;position:relative;z-index:1}
.family-hero{height:440px;margin:4px -14px 0;position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(238,238,238,.1),#fff)}.family-hero img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top;mix-blend-mode:multiply}.family-hero:after{content:"";position:absolute;inset:52% 0 0;background:linear-gradient(transparent,#fff 70%)}
.family-onboarding-copy{text-align:center;margin-top:-3px;position:relative;z-index:1}.family-onboarding-copy h1{font-size:25px;line-height:1.08;letter-spacing:-.06em;margin:0 auto 14px;max-width:280px;font-weight:700}.family-onboarding-copy p{font-size:11px;line-height:1.55;color:#858585;max-width:215px;margin:0 auto}
.family-primary{height:45px;border:0;border-radius:99px;background:#050505;color:#fff;font-weight:650;font-size:12px;width:100%;margin-top:auto;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.family-home{min-height:100vh;background:linear-gradient(180deg,#70c9fa 0,#bde4f8 16%,#f6f6f6 28%,#fff 52%);padding-bottom:86px}
.family-home-head{padding:17px 16px 12px;color:#111}.family-home-top{display:flex;align-items:center;justify-content:space-between}.family-home-title{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:500}.family-circle{width:35px;height:35px;border-radius:50%;border:1px solid rgba(255,255,255,.82);background:rgba(255,255,255,.75);display:grid;place-items:center;color:#111}.family-circle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.family-head-actions{display:flex;gap:8px}.family-badge{position:relative}.family-badge b{position:absolute;right:-1px;top:-2px;background:#111;color:#fff;border-radius:9px;min-width:14px;height:14px;display:grid;place-items:center;font-size:8px}
.family-stories{display:flex;gap:8px;overflow:hidden;padding:0 10px 14px}.family-story{width:63px;height:86px;flex:0 0 auto;border-radius:17px;overflow:hidden;position:relative;background:#ddd;border:2px solid rgba(255,255,255,.85);box-shadow:0 4px 10px rgba(38,113,163,.14)}.family-story img{width:100%;height:100%;object-fit:cover}.family-story:after{content:"";position:absolute;inset:auto 0 0;height:30px;background:linear-gradient(transparent,rgba(0,0,0,.38))}.family-story span{position:absolute;bottom:5px;left:5px;color:#fff;font-size:8px;z-index:1}.family-story.add{background:rgba(255,255,255,.66);display:grid;place-items:center;color:#222}.family-story.add:before{content:"+";width:22px;height:22px;border-radius:50%;background:#159ef1;color:#fff;display:grid;place-items:center;font-size:19px;line-height:1}.family-story.add span{position:static;color:#777;margin-top:43px}
.family-post{margin:0 10px 12px;border-radius:20px;background:rgba(255,255,255,.91);box-shadow:0 3px 12px rgba(54,93,120,.12);overflow:hidden}.family-post-head{display:flex;align-items:center;gap:9px;padding:12px 11px}.family-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;background:#ddd}.family-post-head strong{font-size:12px;font-weight:650}.family-post-head small{display:block;font-size:9px;color:#888;margin-top:2px}.family-relation{margin-left:auto;border:0;border-radius:99px;background:#fafafa;padding:7px 11px;font-size:9px;color:#444}.family-photo{width:100%;height:285px;object-fit:cover;display:block}.family-post-copy{padding:10px 12px 12px}.family-post-copy p{font-size:10px;line-height:1.45;margin:0;color:#222}.family-post-actions{display:flex;gap:7px;padding-top:11px}.family-post-actions button{border:0;background:#f8f8f8;border-radius:99px;padding:8px 11px;font-size:9px;color:#444}.family-post-actions button:first-child{background:#fff}
.family-bottom{position:fixed;z-index:40;bottom:10px;left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),406px);height:61px;border-radius:22px;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.82);backdrop-filter:blur(22px);box-shadow:0 9px 25px rgba(32,64,92,.18);display:flex;align-items:center;justify-content:space-around;padding:0 7px}.family-bottom button{border:0;background:transparent;color:#888;display:grid;place-items:center;gap:3px;font-size:8px;padding:7px 10px;border-radius:16px}.family-bottom button.active{background:#090909;color:#fff}.family-bottom button.plus{width:38px;height:38px;border-radius:50%;background:#159ef1;color:#fff;font-size:25px;line-height:1;padding:0}.family-bottom svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.family-active .family-shell~.app,body.family-active .family-shell~.mobile-nav{display:none}
@media(min-width:821px){.family-screen{min-height:100vh;box-shadow:0 0 80px rgba(37,58,75,.1)}body{background:#ededed}.family-shell{min-height:100vh;background:#ededed}}

/* ---------- reference polish ---------- */
.family-home{position:relative;background:linear-gradient(180deg,#62c4f6 0,#a9dcf5 20%,#f7f7f7 32%,#fff 52%)}
.family-home:before{content:"10:41";position:absolute;z-index:3;top:8px;left:31px;font-size:11px;font-weight:650;color:#111}
.family-home:after{content:"";position:absolute;z-index:3;top:7px;left:50%;width:78px;height:23px;transform:translateX(-50%);background:#050505;border-radius:18px}
.family-home-head{padding:36px 15px 10px}
.family-home-title{font-size:16px;gap:9px}.family-circle{width:34px;height:34px;background:rgba(255,255,255,.78);box-shadow:0 2px 8px rgba(46,110,155,.1)}
.family-head-actions{gap:7px}.family-badge b{right:0;top:-1px}
.family-stories{gap:7px;padding:0 9px 12px}.family-story{width:59px;height:78px;border-radius:15px;border-width:1.5px;box-shadow:0 3px 8px rgba(37,100,142,.16)}.family-story.add:before{width:19px;height:19px;font-size:17px}.family-story.add span{font-size:7px;margin-top:40px}.family-story span{font-size:7px;bottom:4px;left:4px}
.family-post{margin:0 8px 10px;border-radius:19px;box-shadow:0 2px 10px rgba(40,75,105,.13)}.family-post-head{padding:10px 10px 9px;gap:8px}.family-avatar{width:27px;height:27px}.family-post-head strong{font-size:10px}.family-post-head small{font-size:7px}.family-relation{padding:6px 9px;font-size:7px}
.family-photo{height:270px}.family-post-copy{padding:9px 11px 10px}.family-post-copy p{font-size:8px;line-height:1.42}.family-post-actions{gap:5px;padding-top:9px}.family-post-actions button{padding:7px 9px;font-size:7px}
.family-bottom{bottom:8px;height:57px;border-radius:21px;width:min(calc(100% - 18px),410px);padding:0 4px}.family-bottom button{font-size:7px;padding:6px 9px}.family-bottom button.plus{width:36px;height:36px;font-size:23px}
.family-create-screen .family-home-head{padding-bottom:12px}.family-create-screen .family-post{box-shadow:0 2px 9px rgba(40,75,105,.1)}
@media(max-width:430px){.family-photo{height:270px}.family-home-head{padding-top:36px}}

/* ---------- Famio secondary routes ---------- */
@media(max-width:959px){
body.family-route-active{background:#ededed}
body.family-route-active .app{display:block;width:min(100%,430px);min-height:100vh;margin:auto;padding:0;background:linear-gradient(180deg,#62c4f6 0,#a9dcf5 20%,#f7f7f7 32%,#fff 52%);box-shadow:0 0 80px rgba(37,58,75,.1)}
body.family-route-active .sidebar{display:none}
body.family-route-active .main{padding:0 0 84px;min-height:100vh}
body.family-route-active .topbar{height:68px;margin:0;padding:27px 14px 7px;align-items:center}
body.family-route-active .crumb{font-size:16px;color:#111;font-weight:500}
body.family-route-active .crumb span{display:none}
body.family-route-active .crumb b{display:none}
body.family-route-active .top-actions{gap:7px}
body.family-route-active .search{width:34px;height:34px;padding:0;justify-content:center;border-radius:50%;background:rgba(255,255,255,.78);box-shadow:0 2px 8px rgba(46,110,155,.1)}
body.family-route-active .search input{display:none}
body.family-route-active .search svg{width:16px}
body.family-route-active .icon-btn{width:34px;height:34px;background:rgba(255,255,255,.78);box-shadow:0 2px 8px rgba(46,110,155,.1)}
body.family-route-active .auth-wrap .auth-button{height:34px;padding:0 13px;font-size:10px}
body.family-route-active .market-view,body.family-route-active .messages-view{padding:0 9px}
body.family-route-active .page-title{margin:0 2px 13px;align-items:flex-end}
body.family-route-active .page-title h1{font-size:23px;letter-spacing:-.06em}
body.family-route-active .eyebrow{font-size:7px;letter-spacing:.12em;margin-bottom:2px}
body.family-route-active .video-subtitle{font-size:9px;margin-top:3px;color:#858585}
body.family-route-active .demo-pill{font-size:8px;padding:8px 10px;background:rgba(255,255,255,.62)}
body.family-route-active .market-layout{display:block}
body.family-route-active .market-layout>aside{display:none}
body.family-route-active .composer-card{padding:12px;margin-bottom:13px;border-radius:19px;background:rgba(255,255,255,.9);box-shadow:0 2px 10px rgba(40,75,105,.13)}
body.family-route-active .composer-heading{margin-bottom:10px;gap:8px}
body.family-route-active .composer-heading h2{font-size:12px}
body.family-route-active .composer-heading p{font-size:8px}
body.family-route-active .file-drop{min-height:76px;border-radius:14px}
body.family-route-active .field-row{gap:8px}
body.family-route-active .field-row label,body.family-route-active .caption-label{font-size:8px}
body.family-route-active .field-row input,body.family-route-active .composer-card textarea{font-size:10px;border-radius:11px;padding:8px}
body.family-route-active .composer-card textarea{min-height:58px}
body.family-route-active .market-grid{grid-template-columns:1fr;gap:10px}
body.family-route-active .market-card{padding:9px;border-radius:18px;gap:8px}
body.family-route-active .market-photo{min-height:155px;border-radius:14px}
body.family-route-active .market-price{font-size:15px}
body.family-route-active .market-title{font-size:11px}
body.family-route-active .market-meta,body.family-route-active .market-seller span{font-size:8px}
body.family-route-active .market-seller strong{font-size:10px}
body.family-route-active .feed-heading{margin:2px 3px 8px}
body.family-route-active .feed-heading h2{font-size:13px}
body.family-route-active .feed-heading span{font-size:8px}
body.family-route-active .messages-layout{display:grid;grid-template-columns:1fr;gap:10px}
body.family-route-active .messages-layout>.about-card,body.family-route-active .messages-layout>.chat-card{padding:12px;border-radius:19px;background:rgba(255,255,255,.9);box-shadow:0 2px 10px rgba(40,75,105,.13)}
body.family-route-active .messages-layout>.chat-card{min-height:360px}
body.family-route-active .login-prompt{padding:30px 16px;border-radius:19px;background:rgba(255,255,255,.9);box-shadow:0 2px 10px rgba(40,75,105,.13)}
body.family-route-active .login-prompt h3{font-size:14px}
body.family-route-active .login-prompt p{font-size:9px}
body.family-route-active .mobile-nav{display:flex;z-index:40;left:50%;right:auto;bottom:8px;width:min(calc(100% - 18px),410px);height:57px;transform:translateX(-50%);border-radius:21px;padding:0 4px;background:rgba(255,255,255,.82)!important;backdrop-filter:blur(22px);box-shadow:0 9px 25px rgba(32,64,92,.18)}
body.family-route-active .mobile-nav button{font-size:7px;padding:6px 8px}
body.family-route-active .mobile-nav button.active{color:#3b7cf0;background:rgba(255,255,255,.72)}
body.family-route-active .mobile-nav svg{width:17px;height:17px}
}
@media(min-width:821px) and (max-width:959px){body.family-route-active .mobile-nav{display:flex}}

.family-stories{overflow-x:auto;scrollbar-width:none}.family-stories::-webkit-scrollbar{display:none}
.family-story{padding:0;cursor:pointer;font:inherit}.family-story .avatar{width:100%;height:100%;border-radius:0;font-size:20px}
.family-who{display:flex;align-items:center;gap:9px;border:0;background:none;padding:0;text-align:left;color:inherit;cursor:pointer}.family-who .avatar{width:36px;height:36px}
.family-who strong{display:block;font-size:12px}.family-who small{display:block;color:#8a8f98;font-size:10px}
video.family-photo{width:100%;background:#000;object-fit:cover}
.family-circle{position:relative}.family-circle.has-dot:after{content:"";position:absolute;top:5px;right:5px;width:9px;height:9px;border-radius:50%;background:#2f6be8;border:2px solid #fff}
.family-market{margin:0 10px 12px;padding:12px 0 12px 12px;border-radius:20px;background:rgba(255,255,255,.91);box-shadow:0 3px 12px rgba(54,93,120,.12)}
.family-market-head{display:flex;justify-content:space-between;align-items:center;padding-right:12px;margin-bottom:9px}.family-market-head strong{font-size:13px}.family-market-head button{border:0;background:none;color:#3478f6;font-size:11px;font-weight:650;cursor:pointer}
.family-market-row{display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;padding-right:12px}.family-market-row::-webkit-scrollbar{display:none}
.family-market-card{flex:0 0 112px;border:0;background:none;padding:0;text-align:left;cursor:pointer;color:inherit;font:inherit}
.family-market-card img,.family-market-none{width:112px;height:112px;border-radius:14px;object-fit:cover;background:#eef1f5;display:grid;place-items:center;color:#8a96a8;font-size:10px}
.family-market-card b{display:block;margin-top:6px;font-size:12px}.family-market-card span{display:block;font-size:10px;color:#6f7a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html{overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-x pan-y}body{touch-action:pan-x pan-y;max-width:100vw}button,a,label,summary,[role=button]{touch-action:manipulation}
@media(max-width:820px){input,textarea,select{font-size:16px!important}}
.family-stories{gap:8px;padding:0 12px 14px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.fb-story{flex:0 0 auto;width:112px;height:196px;border:0;padding:0;border-radius:16px;overflow:hidden;position:relative;background:#cfd6e0;cursor:pointer;box-shadow:0 4px 12px rgba(38,113,163,.18);color:#fff;font:inherit;text-align:left;scroll-snap-align:start}
.fb-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fb-story:after{content:"";position:absolute;inset:auto 0 0;height:90px;background:linear-gradient(transparent,rgba(0,0,0,.62));pointer-events:none}
.fb-ring{position:absolute;top:9px;left:9px;width:38px;height:38px;border:3px solid #3478f6;box-shadow:0 0 0 2px #fff;z-index:1;font-size:13px}
.fb-story>span{position:absolute;left:9px;right:9px;bottom:9px;z-index:1;font-size:13px;font-weight:700;line-height:1.2;text-shadow:0 1px 3px rgba(0,0,0,.5);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.fb-add{background:#fff;display:flex;flex-direction:column;color:#16243d}.fb-add:after{display:none}
.fb-add-top{flex:1 1 0;position:relative;overflow:hidden;background:#e4e8ee}.fb-add-top .avatar{width:100%;height:100%;border-radius:0;font-size:36px}
.fb-add-bot{position:relative;height:58px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:9px;font-size:12px;font-weight:700}
.fb-add-bot i{position:absolute;top:-17px;left:50%;transform:translateX(-50%);width:34px;height:34px;border-radius:50%;background:#3478f6;color:#fff;border:3px solid #fff;display:grid;place-items:center;font-style:normal;font-size:22px;font-weight:400;line-height:1}
.story-viewer{position:fixed;inset:0;z-index:200;background:#000;display:flex;align-items:center;justify-content:center}
.sv-media{width:100%;height:100%;object-fit:contain}
.sv-bars{position:absolute;top:calc(env(safe-area-inset-top,0px) + 8px);left:10px;right:10px;display:flex;gap:4px;z-index:3}
.sv-bars i{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.35);position:relative;overflow:hidden}.sv-bars i.done{background:#fff}
.sv-bars i.run:after{content:"";position:absolute;inset:0;background:#fff;transform-origin:left;animation:svfill var(--d,5s) linear forwards}
@keyframes svfill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.sv-head{position:absolute;top:calc(env(safe-area-inset-top,0px) + 20px);left:10px;right:10px;display:flex;align-items:center;gap:10px;color:#fff;z-index:4}
.sv-head .avatar{width:38px;height:38px}.sv-head strong{display:block;font-size:14px}.sv-head small{display:block;font-size:11px;opacity:.8}
.sv-x{margin-left:auto;background:none;border:0;color:#fff;font-size:34px;line-height:1;cursor:pointer;padding:0 6px}
.sv-zone{position:absolute;top:70px;bottom:0;z-index:2;background:none;border:0;padding:0}.sv-zone.l{left:0;width:35%}.sv-zone.r{right:0;width:65%}
.sv-cap{position:absolute;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom,0px) + 24px);color:#fff;font-size:15px;z-index:3;pointer-events:none;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.family-home:before,.family-home:after{display:none!important}
.family-home-head{padding-top:calc(env(safe-area-inset-top,0px) + 14px)!important}
.family-onboarding{padding-top:calc(env(safe-area-inset-top,0px) + 16px)}
.family-progress i:first-child{background:#c4c4c4}.family-progress i.on{background:#111}
.family-hero img{transition:opacity .2s}
.family-who .avatar{width:42px;height:42px}.family-who strong,.family-post-head strong{font-size:15px}.family-who small,.family-post-head small{font-size:12px}
.family-post-copy{padding:12px 14px 14px}.family-post-copy p{font-size:16px;line-height:1.5}
.family-post-actions{gap:8px;padding-top:12px}.family-post-actions button{font-size:14px;padding:9px 15px}

.family-stories{scroll-padding-left:12px}
.family-post-head{padding:14px 14px 12px}
/* ---------- desktop layout ---------- */
.family-aside,.family-aside:empty{display:none}
@media(min-width:960px){
  body.family-active{background:linear-gradient(135deg,#e6efff,#dde9fb 45%,#f1ecfb);background-attachment:fixed}
  .family-shell,.family-shell.is-visible{background:none!important}
  .family-screen{width:100%}
  #familyHome:not([hidden]){display:grid;width:100%;max-width:1240px;margin:0 auto;padding:0 28px 56px;background:none!important;box-shadow:none!important;overflow:visible;
    grid-template-columns:96px minmax(0,640px) 330px;grid-template-areas:"nav head aside" "nav stories aside" "nav posts aside";grid-template-rows:auto auto 1fr;column-gap:28px;justify-content:center;align-items:start;min-height:100vh}
  #familyHome .family-home-head{grid-area:head;padding:24px 0 14px!important}
  #familyHome .family-stories{grid-area:stories;padding:0 0 18px;gap:10px;scroll-padding-left:0}
  #familyHome #familyPosts{grid-area:posts}
  #familyHome .family-post{margin:0 0 18px;border-radius:24px}
  #familyHome .family-photo{height:auto;max-height:600px;min-height:300px}
  #familyHome video.family-photo{height:auto;max-height:600px;object-fit:contain}
  #familyHome .fb-story{width:128px;height:224px}
  #familyPosts .family-market{display:none}
  #familyHome .family-aside:not(:empty){grid-area:aside;display:block;position:sticky;top:24px;margin-top:24px;padding:16px;border-radius:24px;background:rgba(255,255,255,.72);backdrop-filter:blur(20px);box-shadow:0 10px 30px rgba(38,72,140,.12)}
  #familyHome .family-bottom{grid-area:nav;position:sticky;top:24px;left:auto;bottom:auto;transform:none;width:auto;height:auto;margin-top:24px;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;padding:10px;border-radius:26px}
  #familyHome .family-bottom button{font-size:11px;padding:12px 4px;gap:5px;cursor:pointer}
  #familyHome .family-bottom svg{width:22px;height:22px}
  #familyHome .family-bottom button.plus{width:52px;height:52px;font-size:30px;margin:4px auto}
  #familyHome .family-bottom button:not(.active):not(.plus):hover{background:rgba(0,0,0,.05)}
  .family-create-screen:not([hidden]){max-width:560px;min-height:0;margin:32px auto 120px;border-radius:26px;overflow:hidden}
  .family-onboarding:not([hidden]){max-width:460px;min-height:0;height:min(780px,calc(100vh - 64px));margin:32px auto;border-radius:28px}
  .family-onboarding .family-hero{height:min(520px,60vh)}
}
.fa-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.fa-head strong{font-size:16px}.fa-head button{border:0;background:none;color:#3478f6;font-size:13px;font-weight:650;cursor:pointer}
.fa-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;padding:8px 6px;border-radius:14px;text-align:left;cursor:pointer;color:inherit;font:inherit}.fa-item:hover{background:rgba(255,255,255,.7)}
.fa-item img,.fa-none{width:60px;height:60px;border-radius:12px;object-fit:cover;background:#eef1f5;display:grid;place-items:center;color:#8a96a8;flex:0 0 auto}
.fa-item b{display:block;font-size:15px}.fa-item span{display:block;font-size:13px;color:#6f7a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.fa-empty{font-size:13px;color:#6f7a8a}

/* ---------- smoothness ---------- */
html{scroll-behavior:smooth;scrollbar-width:thin}
.family-screen:not([hidden]){animation:famFade .28s ease both}
body:not(.family-active) .app{animation:famFade .3s ease both}
@keyframes famFade{from{opacity:0}to{opacity:1}}
@keyframes famUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
#familyPosts .family-post{animation:famUp .45s cubic-bezier(.2,.7,.2,1) both;content-visibility:auto;contain-intrinsic-size:auto 560px;transition:box-shadow .25s ease,transform .25s ease}
#familyPosts .family-post:nth-child(2){animation-delay:.05s}#familyPosts .family-post:nth-child(3){animation-delay:.1s}#familyPosts .family-post:nth-child(n+4){animation-delay:.14s}
#familyPosts .family-photo{opacity:0;transition:opacity .45s ease}#familyPosts .family-photo.ready{opacity:1}
.fb-story,.fa-item,.family-market-card,.family-circle,.family-post-actions button,.family-bottom button{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease}
.fb-story:active,.fa-item:active,.family-circle:active,.family-post-actions button:active,.family-bottom button:active{transform:scale(.96)}
.family-stories.dragging{scroll-snap-type:none;cursor:grabbing;user-select:none}
.family-stories.dragging .fb-story{pointer-events:none}
.fam-skel{margin:0 0 16px;border-radius:22px;background:#fff;padding:16px;height:380px;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:12px}
.fam-skel i{width:42px;height:42px;border-radius:50%}.fam-skel b{height:14px;width:45%;border-radius:8px}.fam-skel u{flex:1;border-radius:16px;text-decoration:none}
.fam-skel i,.fam-skel b,.fam-skel u{background:linear-gradient(90deg,#eceff4 25%,#f7f8fa 50%,#eceff4 75%);background-size:200% 100%;animation:famShimmer 1.3s linear infinite}
@keyframes famShimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@media(hover:hover){
  .family-post:hover{box-shadow:0 14px 34px rgba(38,72,140,.16)}
  .fb-story:hover{transform:translateY(-4px);box-shadow:0 10px 22px rgba(38,72,140,.24)}
  .family-stories{cursor:grab}
  .family-market-card:hover{transform:translateY(-3px)}
  .family-circle:hover{box-shadow:0 4px 12px rgba(38,72,140,.18)}
}
/* desktop: cheap gradient blobs instead of animated 70px blur filters (much smoother) */
@media(min-width:821px){
  .bg-blobs i{filter:none!important;will-change:transform}
  .bg-blobs i:nth-child(1){background:radial-gradient(circle,#6aa8ff 0,rgba(106,168,255,0) 68%)!important}
  .bg-blobs i:nth-child(2){background:radial-gradient(circle,#ffb27d 0,rgba(255,178,125,0) 68%)!important}
  .bg-blobs i:nth-child(3){background:radial-gradient(circle,#7fe3c8 0,rgba(127,227,200,0) 68%)!important}
  .bg-blobs i:nth-child(4){background:radial-gradient(circle,#b79bff 0,rgba(183,155,255,0) 68%)!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.bg-blobs i{animation:none!important}}

/* active tab = black pill (same as Home) */
.nav a.active,.mobile-nav button.active,body.family-route-active .mobile-nav button.active{background:#090909!important;color:#fff!important;border-color:#090909!important;box-shadow:0 6px 16px rgba(0,0,0,.22)!important}
.nav a.active svg,.mobile-nav button.active svg{stroke:#fff}
.nav a,.mobile-nav button{transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
@media(min-width:960px){body:not(.family-active){background:linear-gradient(135deg,#e6efff,#dde9fb 45%,#f1ecfb) fixed}}

/* edit profile: keep Save reachable (mobile toolbars, tall forms) */
.auth-backdrop{height:100vh;height:100dvh}
.edit-modal{max-height:calc(100vh - 36px);max-height:calc(100dvh - 24px);-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.edit-modal .edit-actions{position:sticky;bottom:0;z-index:6;margin:20px -26px 0;padding:12px 26px calc(env(safe-area-inset-bottom,0px) + 14px);background:linear-gradient(to top,rgba(255,255,255,.96) 70%,rgba(255,255,255,0));border-radius:0 0 32px 32px}
.edit-modal .edit-actions button{position:relative;z-index:1;pointer-events:auto}

/* long text: clamp + see more, wrap in marketplace */
.clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.family-post-copy .see-more{margin:6px 0 0;font-size:14px;display:block}
.profile-id .see-more{margin:4px 0 0;font-size:12px}
.market-grid{grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr))}
.market-card,.market-card>*{min-width:0;max-width:100%}
.market-title,.market-price,.market-card .video-caption,.market-seller strong,.market-seller span{overflow-wrap:anywhere;word-break:break-word}
.market-card .video-caption{margin:2px 0}
.market-card .see-more{margin:-4px 0 4px}
.comment-body p,.comment-body strong{overflow-wrap:anywhere;word-break:break-word}

/* ================= DESKTOP: top nav + 3-column liquid glass ================= */
.dt-nav,.family-left,.family-composer,.fam-follow{display:none}
@media(min-width:960px){
  .dt-nav{display:flex;position:fixed;top:14px;left:50%;transform:translateX(-50%);width:min(calc(100% - 48px),1232px);height:62px;align-items:center;justify-content:space-between;gap:16px;padding:0 14px;border-radius:31px;z-index:15}
  body.on-onboarding .dt-nav{display:none}
  .dt-left,.dt-right{display:flex;align-items:center;gap:10px;flex:1 1 0;min-width:0}
  .dt-right{justify-content:flex-end}
  .dt-links{display:flex;gap:4px;flex:0 0 auto}
  .dt-links button{border:0;background:transparent;color:#56698a;font-size:14px;font-weight:650;padding:9px 17px;border-radius:999px;transition:background-color .2s,color .2s,box-shadow .2s}
  .dt-links button:hover{background:rgba(255,255,255,.65);color:#243955}
  .dt-links button.active{background:#090909;color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.22)}
  .dt-nav .search{width:250px;max-width:100%;background:rgba(255,255,255,.55)}
  .dt-nav .icon-btn:hover{background:rgba(255,255,255,.85)}
  .dt-nav .icon-btn.has-notifications:after{content:"";position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:#2f6be8;border:2px solid #fff;box-shadow:none}
  .dt-nav .auth-button:has(.mini-avatar){background:rgba(255,255,255,.6);color:#16243d;border-color:rgba(255,255,255,.9);box-shadow:inset 0 1px 0 #fff,0 4px 14px rgba(44,72,119,.08)}
  .dt-nav .auth-button .mini-avatar{width:28px;height:28px;font-size:10px}
  .dt-nav .account-menu{top:calc(100% + 16px)}

  /* legacy views (Feed / Market / Messages / Profile) under the top nav */
  .app{display:block;max-width:1180px;padding:96px 24px 48px}
  .sidebar,.topbar{display:none}
  .main{padding:0}
  .video-side-card{top:92px}

  /* home: left profile | feed | right cards */
  #familyHome:not([hidden]){max-width:1280px;padding:92px 24px 56px;
    grid-template-columns:272px minmax(0,640px) 312px;
    grid-template-areas:"left composer aside" "left stories aside" "left posts aside";
    grid-template-rows:auto auto 1fr;column-gap:24px;justify-content:center}
  #familyHome .family-home-head{display:none}
  #familyHome .family-bottom,.family-create-screen .family-bottom{display:none}

  #familyHome .family-left{grid-area:left;display:flex;flex-direction:column;gap:16px;position:sticky;top:92px;align-self:start}
  .fl-card,.fa-card,.family-composer .fc-card{position:relative;overflow:hidden;border-radius:26px;background:var(--glass-bg);border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);backdrop-filter:blur(26px) saturate(190%);-webkit-backdrop-filter:blur(26px) saturate(190%)}
  .fl-cover{height:96px;background:linear-gradient(120deg,#7fb0ff,#b79bff 55%,#ffb98a);background-size:cover;background-position:center}
  .fl-avatar{width:78px;height:78px;margin:-39px auto 0;position:relative;border:4px solid #fff;font-size:24px;cursor:pointer;box-shadow:0 8px 20px rgba(40,70,140,.22)}
  .fl-name{margin:10px 16px 2px;text-align:center;font-size:18px;letter-spacing:-.02em;font-weight:760;cursor:pointer;overflow-wrap:anywhere}
  .fl-sub{margin:0 16px 14px;text-align:center;font-size:13px;color:#6f82a0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .fl-stat{display:flex;justify-content:space-between;align-items:center;padding:13px 18px;border-top:1px solid rgba(255,255,255,.7);font-size:13px;color:#4a6080}
  .fl-stat b{color:#16243d;font-size:14px}
  .fl-login{margin:0 auto 18px;display:flex}
  .fl-link{display:flex;align-items:center;gap:12px;width:100%;border:0;border-top:1px solid rgba(255,255,255,.7);background:none;padding:15px 18px;font-size:14px;color:#3b5273;font-weight:650;cursor:pointer;text-align:left;transition:background-color .2s}
  .fl-link:first-child{border-top:0}
  .fl-link:hover{background:rgba(255,255,255,.55)}
  .fl-link svg{width:19px;height:19px;stroke:#6f82a0;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

  #familyHome .family-composer{grid-area:composer;display:block;margin-bottom:16px}
  .fc-card{padding:16px 20px 12px}
  .fc-top{display:flex;gap:12px;align-items:center}
  .fc-top .avatar{width:44px;height:44px}
  .fc-input{flex:1;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.55);box-shadow:inset 0 1px 3px rgba(60,90,150,.08);text-align:left;padding:0 18px;color:#8696ab;font-size:14px;cursor:text}
  .fc-input:hover{background:rgba(255,255,255,.8)}
  .fc-actions{display:flex;justify-content:space-around;margin-top:10px}
  .fc-actions button{display:flex;align-items:center;gap:9px;border:0;background:none;color:#4a6080;font-size:14px;font-weight:650;padding:9px 18px;border-radius:999px;cursor:pointer;transition:background-color .2s}
  .fc-actions button:hover{background:rgba(255,255,255,.65)}
  .fc-actions svg{width:20px;height:20px;stroke:#3478f6;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

  #familyHome .family-post{background:var(--glass-bg);border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);backdrop-filter:blur(26px) saturate(190%);-webkit-backdrop-filter:blur(26px) saturate(190%)}
  #familyHome .family-post-head{padding:16px 18px 12px}
  #familyHome .family-post-copy{padding:12px 18px 8px}
  .fam-follow{display:block;margin-left:auto;border:0;background:none;color:#1a73e8;font-size:14px;font-weight:700;padding:6px 4px;cursor:pointer}
  .fam-follow.on{color:#6f7a8a;font-weight:600}
  #familyHome .family-post-actions{border-top:1px solid rgba(255,255,255,.75);margin-top:12px;padding-top:6px;gap:0;justify-content:space-between}
  #familyHome .family-post-actions button{flex:1;background:none;border-radius:14px;padding:10px;font-size:15px;color:#4a6080;font-weight:650;transition:background-color .2s}
  #familyHome .family-post-actions button:hover{background:rgba(255,255,255,.65)}

  #familyHome .family-aside:not(:empty){grid-area:aside;display:flex;flex-direction:column;gap:16px;position:sticky;top:92px;margin-top:0;padding:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
  .fa-card{padding:20px}
  .fa-card .fa-head strong{font-size:18px;letter-spacing:-.02em}
  .fa-card .fa-head button{font-size:13px}
  .fa-promo{display:flex;justify-content:space-between;align-items:center;gap:12px}
  .fa-promo small{display:block;font-size:10px;letter-spacing:.08em;color:#6f82a0;font-weight:700;margin-bottom:4px}
  .fa-promo strong{font-size:16px}

  .family-create-screen:not([hidden]){background:var(--glass-bg);border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);backdrop-filter:blur(26px) saturate(190%);-webkit-backdrop-filter:blur(26px) saturate(190%);margin-top:92px}
  .family-create-screen .family-home{background:none}
}

.sound-hint{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);z-index:60;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(18,32,58,.82);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#fff;font-size:14px;font-weight:650;padding:11px 20px;box-shadow:0 10px 26px rgba(18,43,80,.35);cursor:pointer;white-space:nowrap}
.sound-hint[hidden]{display:none}
@media(min-width:960px){.sound-hint{bottom:28px}}

/* clean autoplay video: no native controls / overlays */
video[data-autoplay-on-scroll]::-webkit-media-controls,video[data-autoplay-on-scroll]::-webkit-media-controls-panel,video[data-autoplay-on-scroll]::-webkit-media-controls-start-playback-button,video[data-autoplay-on-scroll]::-webkit-media-controls-overlay-play-button{display:none!important;-webkit-appearance:none}
video[data-autoplay-on-scroll]{-webkit-tap-highlight-color:transparent}

/* profile header: name + @username on the same row as the button */
.profile-head{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"avatar name actions" "avatar handle actions" "bio bio bio"}
.profile-id{display:contents}
.profile-id h2{grid-area:name;align-self:end;margin:14px 0 0;min-width:0;overflow-wrap:anywhere}
.profile-id .handle{grid-area:handle;align-self:start;justify-self:start;margin:4px 0 0;max-width:100%;overflow-wrap:anywhere}
.profile-id .bio{grid-area:bio;margin:12px 0 4px}
.profile-id .bio-more{grid-column:1/-1;grid-row:4;justify-self:start}
.profile-actions{grid-area:actions;align-self:center;padding-top:14px;flex-wrap:nowrap}
@media(max-width:560px){.profile-actions{padding-top:12px}.profile-actions button{padding:9px 13px;font-size:11px}}

/* ---------- install app popup ---------- */
.install-pop{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translate(-50%,24px);width:min(440px,calc(100vw - 28px));z-index:18;padding:16px;border-radius:24px;opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .3s}
.install-pop.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.install-row{display:flex;gap:13px;align-items:center}
.install-icon{width:48px;height:48px;border-radius:14px;flex:0 0 auto;box-shadow:0 8px 18px rgba(53,116,239,.3)}
.install-text{min-width:0;flex:1}
.install-text strong{display:block;font-size:14px;color:var(--ink)}
.install-text span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.install-actions{display:flex;gap:10px;margin-top:14px}
.install-actions button{flex:1;height:42px;border-radius:999px;font-size:13px;font-weight:700;border:1px solid rgba(255,255,255,.85)}
.install-btn{color:#fff;border-color:transparent!important;background:linear-gradient(135deg,#4a8bff,#2563e6);box-shadow:0 8px 20px rgba(52,110,230,.35)}
.install-later{color:#4a5f80;background:rgba(255,255,255,.55)}
.install-ios{margin:12px 2px 0;font-size:12px;color:#4a5f80;line-height:1.5}
.install-ios b{color:var(--ink)}
.update-pop{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top,0px));transform:translate(-50%,-90px);z-index:10000;padding:11px 18px;border-radius:999px;font-size:13px;font-weight:700;color:var(--ink);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.update-pop.show{transform:translate(-50%,0)}

@media(max-width:959px){.install-pop{bottom:calc(88px + env(safe-area-inset-bottom,0px))}}
