/* Murmur UI refresh — layered overrides; preserves existing component behavior. */
:root{
  color-scheme:light;
  --bg:#f4f7f8;--ink:#17252b;--muted:#687980;--line:#e3eaec;
  --acc:#12b995;--acc-strong:#079b7b;--on:#062b24;--white:#fff;
  --surface:#fff;--surface-soft:#f8fbfa;
  --shadow:0 12px 36px rgba(20,43,49,.075);
  --shadow-hover:0 18px 42px rgba(20,43,49,.12);
  --radius-lg:22px;--radius-md:16px;--radius-sm:12px;
  --motion-fast:160ms;--motion-medium:220ms;
}
html{scroll-behavior:smooth;background:var(--bg)}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}
button,input,select,textarea{font-family:inherit}
button{ -webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(18,185,149,.28);outline-offset:2px}
#app{min-height:100vh;min-height:100dvh}
.fb-head{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,232,232,.85)}
.topbar{min-height:62px;padding:10px clamp(14px,3vw,32px);background:transparent;border:0;box-shadow:none}
.fb-logo{font-size:1.65rem;font-weight:850;letter-spacing:-.075em;color:var(--ink)}
.fb-actions{display:flex;gap:9px}
.fb-actions button,.fr-icon,.reels-bar button{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);color:var(--ink)}
.fb-actions svg,.fr-icon svg,.reels-bar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fb-nav{display:flex;gap:clamp(4px,1.4vw,18px);padding:4px clamp(10px,2vw,28px) 8px;border:0;background:transparent;box-shadow:none}
.fb-nav button{position:relative;flex:1;min-width:0;min-height:44px;display:grid;place-items:center;border:0;border-radius:13px;background:transparent;color:#78888d;padding:8px}
.fb-nav button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fb-nav button.active{background:rgba(18,185,149,.11);color:var(--acc-strong)}
.fb-nav button.active:after{content:"";position:absolute;bottom:-5px;left:28%;right:28%;height:3px;border-radius:4px;background:var(--acc)}
.main{padding-top:22px}
.pane{animation:murmur-enter .22s ease both}
@keyframes murmur-enter{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.composer,.card,.post,.fr-block,.sidebar,.conversation,.alerts-heading,.murmur-menu-heading,.menu-profile-card,.menu-accordion,.menu-add-account,.legal-doc,.panel,.auth-card .panel{
  border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)
}
.composer{padding:14px 16px;gap:12px;margin-bottom:14px}
.composer input{min-height:44px;border:1px solid transparent;border-radius:999px;background:#f2f6f6;padding:11px 16px}
.composer input:hover{background:#edf3f2}
.posts{display:grid;gap:16px}
.post{padding:clamp(14px,2.2vw,22px);overflow:hidden}
.post:hover{box-shadow:var(--shadow-hover)}
.post img,.post video{border-radius:16px}
.post-actions{border-top:1px solid var(--line);margin-top:12px;padding-top:8px;gap:8px}
.post-actions button{border-radius:12px;min-height:40px}
.stories{gap:12px;padding:4px 2px 14px;scrollbar-width:thin}
.story-row{border-radius:18px}
.avatar{border:2px solid rgba(18,185,149,.18)}
.btn{min-height:42px;border-radius:13px;padding:10px 16px;font-weight:750;letter-spacing:-.01em}
.btn.primary{background:linear-gradient(135deg,#18c6a2,#0ca987);color:#052c25;box-shadow:0 5px 14px rgba(18,185,149,.2)}
.btn.primary:hover{filter:brightness(1.03);box-shadow:0 8px 20px rgba(18,185,149,.25)}
.btn.secondary{border:1px solid #cbd8d8;background:#fff;color:var(--ink)}
.btn.ghost{background:#f1f6f5;color:#34464a;border:1px solid transparent}
.btn.small{min-height:34px;border-radius:10px}
input,select,textarea{border:1px solid #dce6e6;background:#fff;border-radius:13px;min-height:44px;padding:11px 13px}
input::placeholder,textarea::placeholder{color:#96a4a7}
.field{gap:7px}
.field label{font-size:.82rem;letter-spacing:.01em;color:#53666b}
.auth-card{gap:clamp(28px,6vw,76px);padding:clamp(12px,3vw,30px)}
.auth-card .panel{padding:clamp(20px,3vw,34px);backdrop-filter:blur(14px)}
.brand h1{font-weight:850;letter-spacing:-.075em}
.brand p{line-height:1.55;font-size:clamp(1rem,1.8vw,1.3rem)}
.fr-head,.alerts-heading,.reels-bar,.murmur-menu-heading{margin-bottom:16px}
.fr-head h1,.alerts-heading h1,.murmur-menu-heading h1{font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.045em}
.fr-pills,.alerts-filters{display:flex;gap:8px;overflow:auto;padding:3px 1px 12px;scrollbar-width:none}
.fr-pills::-webkit-scrollbar,.alerts-filters::-webkit-scrollbar{display:none}
.fr-pill,.alerts-filters button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;color:#63757a;padding:9px 15px;font-weight:700}
.fr-pill.active,.alerts-filters button.active{background:#e5f8f3;border-color:#b9ecdf;color:#087e67}
.fr-block{padding:18px;margin:14px 0}
.fr-title{font-size:1rem;letter-spacing:-.02em}
.fr-list>*{border-bottom:1px solid #edf1f1;padding:12px 0}
.chat-layout{gap:16px}
.sidebar,.conversation{border-radius:20px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}
.sidebar-header{padding:20px 18px 12px;font-size:1.25rem;font-weight:800;letter-spacing:-.04em}
.search{padding:0 14px 12px}
.search input{background:#f4f7f7;border:0}
.chat-item{padding:12px 14px;border-radius:13px}
.chat-item:hover{background:#eff8f5}
.conversation-header{padding:13px 16px;border-bottom:1px solid var(--line);background:#fff}
.messages{padding:16px;background:linear-gradient(180deg,#fbfdfc,#f5f9f8)}
.composer-chat{padding:12px;border-top:1px solid var(--line);background:#fff;gap:8px}
.composer-chat input{border-radius:999px;background:#f4f7f7}
.composer-chat .btn{width:44px;min-width:44px;height:44px;padding:8px;border-radius:50%}
.alerts-heading{padding:clamp(18px,3vw,28px);background:linear-gradient(135deg,#fff,#effaf6)}
.alerts-list{display:grid;gap:10px}
.alerts-list>*{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px}
.murmur-menu-heading{display:flex;align-items:center;gap:10px}
.murmur-menu-heading h1{flex:1}
.menu-profile-card{width:100%;padding:14px;display:flex;align-items:center;gap:12px;text-align:left}
.menu-profile-details{display:grid;gap:3px}
.murmur-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.murmur-menu-item{min-height:92px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--line);border-radius:17px;background:#fff;color:var(--ink);font-weight:700}
.murmur-menu-item:hover{border-color:#b8e9dd;background:#f5fcf9;transform:translateY(-2px)}
.menu-tile-icon{width:22px;height:22px;color:var(--acc-strong)}
.menu-accordion{padding:8px 14px;margin:14px 0}
.menu-accordion-toggle,.menu-row,.menu-add-account{min-height:48px}
.menu-row{border-radius:11px}
.menu-row:hover{background:#f2f8f6}
.menu-logout{color:#b42318}
.modal-back{backdrop-filter:blur(7px);background:rgba(14,27,31,.48)}
.modal-card{border:1px solid rgba(255,255,255,.6);border-radius:22px;box-shadow:0 24px 80px rgba(0,0,0,.22)}
.legal-links{color:#879599;padding:24px 12px 32px;text-align:center;font-size:.8rem}
.legal-links a{color:#65777c;text-decoration:none}
.legal-links a:hover{text-decoration:underline;color:var(--acc-strong)}
.badge{box-shadow:0 0 0 2px #fff}
@media(min-width:901px){
 .fb-head .topbar{min-height:68px}
 .fb-nav{max-width:900px;margin:0 auto}
 .main{padding-top:26px}
 .main>.posts,.main>.composer,.main>.stories,.main>.active-row,.main>.story-row,.main>.alerts-list,.main>#alertsList,.main>.card,.main>.notice{max-width:760px}
}
@media(max-width:700px){
 .auth-card{grid-template-columns:1fr;width:100%;gap:20px}
 .auth-card .brand{text-align:center;align-items:center;padding:18px 8px 4px}
 .auth-card .brand p{max-width:390px}
 .murmur-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
 .topbar{min-height:54px}
 .fb-logo{font-size:1.45rem}
 .fb-nav{gap:2px;padding:2px 7px 7px}
 .fb-nav button{min-height:42px;border-radius:11px}
 .main{padding-top:12px}
 .composer,.post{border-radius:17px}
 .fr-block{padding:14px;border-radius:17px}
 .alerts-heading{border-radius:18px}
 .conversation-header{padding:10px}
 .murmur-menu-item{min-height:84px;padding:12px;border-radius:15px}
 .menu-profile-card{border-radius:17px}
 .legal-links{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-color-scheme:dark){
 html[data-theme="dark"],html[data-theme="dark"] body{color-scheme:dark;--bg:#0d1518;--ink:#e7f0ef;--muted:#9aabaa;--line:#29383b;--surface:#152124;--surface-soft:#1a2a2d;--white:#152124;--shadow:0 12px 36px rgba(0,0,0,.22);--shadow-hover:0 18px 42px rgba(0,0,0,.32)}
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .fb-head,html[data-theme="dark"] .topbar,html[data-theme="dark"] .fb-nav{background:rgba(18,30,33,.92)}
html[data-theme="dark"] .fb-logo,html[data-theme="dark"] .fb-nav button{color:var(--ink)}
html[data-theme="dark"] .composer,html[data-theme="dark"] .card,html[data-theme="dark"] .post,html[data-theme="dark"] .fr-block,html[data-theme="dark"] .sidebar,html[data-theme="dark"] .conversation,html[data-theme="dark"] .alerts-heading,html[data-theme="dark"] .menu-profile-card,html[data-theme="dark"] .menu-accordion,html[data-theme="dark"] .murmur-menu-item,html[data-theme="dark"] .alerts-list>*{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .search input,html[data-theme="dark"] .composer input,html[data-theme="dark"] .composer-chat input{background:#101b1e;border-color:#304144;color:var(--ink)}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .btn.secondary,html[data-theme="dark"] .fb-actions button,html[data-theme="dark"] .fr-icon,html[data-theme="dark"] .reels-bar button{background:#1c2b2e;border-color:#304144;color:var(--ink)}
html[data-theme="dark"] .conversation-header,html[data-theme="dark"] .composer-chat{background:#152124;border-color:var(--line)}
html[data-theme="dark"] .messages{background:#101a1d}
html[data-theme="dark"] .menu-row:hover,html[data-theme="dark"] .murmur-menu-item:hover{background:#203437}
html[data-theme="dark"] .fr-pill,html[data-theme="dark"] .alerts-filters button{background:#1b2a2d;border-color:#304144;color:#c2d0cf}
html[data-theme="dark"] .fr-pill.active,html[data-theme="dark"] .alerts-filters button.active{background:#123e35;color:#8ce4cf;border-color:#1e6555}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.pane{animation:none}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
