/* SABSUS Social: Services palette, Events material, one quiet workspace. */
@font-face{font-family:Inter;src:url('./fonts/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
html:root.social-crystal{
 color-scheme:dark;--ink:#f4f4f4;--text:#f4f4f4;--muted:#c8c8ca;--placeholder:#aaa9ac;
 --primary:#326ee8;--accent:#326ee8;--blue:#83afff;--accent-display:#a9c7ff;--accent-contrast:#fff;
 --background:#171717;--surface:rgba(24,24,24,.74);--elevated-bg:#262626;--panel:var(--surface);
 --control-bg:rgba(240,240,240,.085);--soft-bg:rgba(240,240,240,.06);--accent-soft:rgba(50,110,232,.22);--hover-bg:rgba(240,240,240,.12);
 --line:rgba(210,210,212,.14);--stroke:var(--line);--scrim:rgba(8,8,8,.5);
 --card-surface:linear-gradient(145deg,rgba(62,54,50,.76),rgba(22,22,24,.89) 55%,rgba(16,21,25,.86));
 --card-edge:inset 1px 1px 1px rgba(255,245,232,.18),inset -1px -1px 1px rgba(222,230,239,.065),0 8px 23px rgba(0,0,0,.18);
 --surface-fill:var(--surface);--glass-fill:var(--surface);--control-fill:var(--control-bg);--soft-fill:var(--soft-bg);--glass-border:transparent;
 --theme-accent:#326ee8;--theme-secondary:#8ecdb6;--theme-text:var(--ink);--theme-bg-1:#171717;--theme-bg-2:#242424;--theme-bg-3:#1c1d20;
 --shadow:0 8px 23px rgba(0,0,0,.18);--glass-blur:18px;--social-inset:14px;--social-nav:206px;
 --crm-border:var(--line);--crm-soft:var(--soft-bg);--login-fill:var(--surface);--login-label:var(--muted);--login-blue:var(--accent-display);--login-border:var(--line);
 --focus:#94b8ff;--scroll-thumb:rgba(210,210,214,.3);
 height:100%;min-height:0;background:var(--background);overflow:hidden;
}
html:root.social-crystal[data-social-theme="light"]{
 color-scheme:light;--ink:#232323;--text:#232323;--muted:#606060;--placeholder:#747474;
 --primary:#2a64dc;--accent:#2a64dc;--blue:#2a64dc;--accent-display:#2458c4;
 --background:#f0f0f0;--surface:rgba(248,248,248,.79);--elevated-bg:#fafafa;
 --control-bg:rgba(80,80,80,.09);--soft-bg:rgba(80,80,80,.065);--accent-soft:rgba(42,100,220,.12);--hover-bg:rgba(60,60,60,.075);
 --line:rgba(60,60,60,.13);--scrim:rgba(24,24,24,.24);--theme-accent:#2a64dc;--theme-secondary:#318b71;
 --theme-bg-1:#f0f0f0;--theme-bg-2:#fafafa;--theme-bg-3:#e9eaed;
 --card-surface:linear-gradient(145deg,rgba(255,253,250,.89),rgba(247,248,250,.84) 55%,rgba(233,237,241,.82));
 --card-edge:inset 1px 1px 1px rgba(255,255,255,.8),inset -1px -1px 1px rgba(89,98,112,.065),0 8px 23px rgba(26,29,35,.09);
 --shadow:0 8px 23px rgba(26,29,35,.09);--focus:#2458c4;--scroll-thumb:rgba(65,65,70,.28);
}
html.social-crystal *,html.social-crystal *::before,html.social-crystal *::after{box-sizing:border-box}
html:root.social-crystal body{
 margin:0;min-width:320px;height:100%;min-height:0;overflow:hidden;color:var(--ink);background:transparent!important;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;isolation:isolate;
}
html:root.social-crystal body::before,html:root.social-crystal body::after{content:none!important}
html.social-crystal button,html.social-crystal input,html.social-crystal select,html.social-crystal textarea{font:inherit}
html.social-crystal a{color:inherit}
html.social-crystal :focus-visible{outline:2px solid var(--focus)!important;outline-offset:3px}
html.social-crystal [hidden]{display:none!important}
html.social-crystal .icon{width:20px;height:20px;flex-shrink:0;stroke-width:1.6}
html.social-crystal :is(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
html.social-crystal *{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
html.social-crystal *::-webkit-scrollbar{width:7px;height:7px;background:transparent}
html.social-crystal *::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid transparent;background-clip:padding-box;border-radius:20px}
html.social-crystal *::-webkit-scrollbar-track,html.social-crystal *::-webkit-scrollbar-corner{background:transparent}
.social-scene{position:fixed;inset:var(--social-inset);border-radius:32px;overflow:hidden;z-index:-3;background:var(--background);pointer-events:none}
#social-scene-photo,.social-scene-shade{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none;border-radius:inherit}
#social-scene-photo{object-fit:cover;object-position:center;user-select:none}
.social-scene-shade{background:linear-gradient(0deg,rgba(8,8,10,.52),rgba(8,8,10,.04) 65%),linear-gradient(90deg,rgba(8,8,10,.22),transparent 70%),rgba(10,10,12,.18)}
html[data-social-theme="light"] .social-scene-shade{background:linear-gradient(0deg,rgba(248,248,250,.66),rgba(248,248,250,.16) 65%),linear-gradient(90deg,rgba(248,248,250,.24),transparent 70%),rgba(248,248,250,.06)}
html:root.social-crystal #app{height:100%;min-height:0;isolation:isolate}
html:root.social-crystal body .app{
 display:flex;flex-direction:column;height:100dvh;min-height:0;max-width:none;margin:0;padding:28px 32px;gap:20px;overflow:hidden;
}
html:root.social-crystal body .app>.topbar{
 position:relative;top:auto;flex:0 0 66px;height:66px;min-height:66px;padding:10px 16px;gap:16px;border-radius:999px;z-index:80;
}
html:root.social-crystal body .layout{display:grid;grid-template-columns:var(--social-nav) minmax(0,1fr);align-items:stretch;gap:24px;margin:0;min-height:0;flex:1;overflow:visible}
html:root.social-crystal body .sidebar{position:relative;top:auto;height:100%;min-height:0;padding:14px 10px;gap:18px;border-radius:26px;z-index:70;overflow-y:auto;overflow-x:hidden}
html:root.social-crystal body .nav{display:flex;flex-direction:column;gap:4px;flex-shrink:0}
html:root.social-crystal body .nav-secondary{margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}
html:root.social-crystal body .nav a{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 13px;border-radius:999px;font-size:14px;font-weight:450;line-height:1.3;color:var(--muted);border:1px solid transparent;box-shadow:none;background:transparent;white-space:normal}
html:root.social-crystal body .nav a .icon{height:19px;width:19px;color:inherit}
html:root.social-crystal body .nav a:hover{color:var(--ink);background:var(--hover-bg)}
html:root.social-crystal body .nav a.active{color:var(--ink);font-weight:550;background:var(--accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 28%,transparent);border-color:transparent}
html:root.social-crystal body .nav a.active .icon{color:var(--accent-display)}
html:root.social-crystal body .nav a::before,html:root.social-crystal body .nav a::after{content:none!important}
html:root.social-crystal body .main{min-width:0;min-height:0;height:100%;max-height:100%;width:100%;max-width:none;padding:4px 8px 24px;overflow:auto;overscroll-behavior:contain;scroll-padding:20px;isolation:isolate}
html:root.social-crystal body .app.is-chats .main{display:flex;flex-direction:column;padding:0 0 2px;overflow:hidden}
html:root.social-crystal body .app.is-chats{height:100dvh;min-height:0;padding:28px 32px}
html:root.social-crystal body .app.is-chats .layout{height:auto;min-height:0}
html:root.social-crystal body .page-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:3px 0 24px;min-width:0;margin:0}
html:root.social-crystal body h1{font-size:clamp(28px,2.35vw,36px);line-height:1.16;letter-spacing:-1px;font-weight:500;color:var(--ink);margin:0}
html:root.social-crystal body h2{font-size:20px;line-height:1.3;letter-spacing:-.45px;font-weight:550;color:var(--ink)}
html:root.social-crystal body h3{font-weight:550;line-height:1.35;color:var(--ink)}
html:root.social-crystal body .page-head p{font-size:14px;line-height:1.5;margin:7px 0 0;color:var(--muted)}
html:root.social-crystal body .head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;width:auto;margin-left:auto}
html:root.social-crystal body .section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:26px 0 16px}
html:root.social-crystal body .section-head h2{font-size:20px;margin:0;font-weight:500}
html:root.social-crystal body .section-head>a{font-size:14px;color:var(--accent-display);padding:10px 2px}
html:root.social-crystal body .muted,html:root.social-crystal body .micro{color:var(--muted)}
html:root.social-crystal body .eyebrow{font-size:12px;line-height:1.4;letter-spacing:.4px;font-weight:500;color:var(--muted)}
/* Quiet surface fallback remains usable before photograph or graphics load. */
html:root.social-crystal body :is(.glass,.panel,.stat,.sidebar,.topbar,.social-profile-menu,.social-native-select,.sabsus-suite-menu,.sp-panel){
 color:var(--ink);background:var(--card-surface);border:1px solid transparent;box-shadow:var(--card-edge);backdrop-filter:blur(18px) saturate(1.12);-webkit-backdrop-filter:blur(18px) saturate(1.12);
}
html:root.social-crystal body .panel{padding:24px;border-radius:26px;min-width:0}
html:root.social-crystal body .panel-head{gap:14px;margin-bottom:20px;align-items:center;flex-wrap:wrap}
html:root.social-crystal body .panel-head p{font-size:14px;margin-top:7px}
html:root.social-crystal body :is(.glass,.panel)::before,html:root.social-crystal body :is(.glass,.panel)::after{content:none}
html:root.social-crystal body [data-social-optical]{isolation:isolate}
html:root.social-crystal body .sg-pane{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;border-radius:inherit;pointer-events:none!important;z-index:-1!important;contain:strict;opacity:1!important;visibility:hidden}
html:root.social-crystal body .glass-painted[data-social-optical]>.sg-pane{visibility:visible}
html:root.social-crystal:not(.glass-off):not(.social-static-glass):not(.social-css-scene) body .glass-painted[data-social-optical]{background:transparent!important;border-color:transparent!important;box-shadow:var(--card-edge)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root.social-crystal body [data-social-optical] :is(.glass,input,select,textarea):not([data-social-optical]){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root.social-crystal:is(.social-static-glass,.social-css-scene,.glass-off) body .sg-pane{visibility:hidden!important}
html:root.social-crystal:is(.social-static-glass,.social-css-scene) body .glass-painted[data-social-optical]{background:var(--card-surface)!important}
/* Controls have their own subtle fill, never a second optical canvas. */
html:root.social-crystal body :is(.btn,.icon-btn,.setting-trigger,.select-trigger,.social-native-select-trigger,.sp-trigger,.sabsus-suite-trigger){
 min-height:44px;padding:10px 17px;gap:8px;border-radius:999px;border:1px solid transparent;background:var(--control-bg);color:var(--ink);font-size:14px;font-weight:500;line-height:1.3;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none;white-space:normal;max-width:100%;cursor:pointer;
}
html:root.social-crystal body :is(.btn,.icon-btn,.setting-trigger,.select-trigger,.social-native-select-trigger):hover{background:var(--hover-bg);box-shadow:none;transform:none}
html:root.social-crystal body :is(.btn,.icon-btn,.setting-trigger,.select-trigger):active{background:var(--accent-soft)}
html:root.social-crystal body .btn.primary,html:root.social-crystal body .btn.primary:hover,html:root.social-crystal body .login-submit{background:var(--primary)!important;color:white!important;border-color:transparent!important;box-shadow:0 4px 12px rgba(28,72,170,.16)!important;font-weight:550}
html:root.social-crystal body .btn.primary:hover{filter:brightness(1.08)}
html:root.social-crystal body .btn.flat{background:transparent;color:var(--accent-display)}
html:root.social-crystal body .btn.danger{color:#ffb9bd;background:rgba(222,70,85,.13)}
html:root.social-crystal[data-social-theme="light"] body .btn.danger{color:#ad3041;background:rgba(190,45,60,.08)}
html:root.social-crystal body :is(button,input,select,textarea):disabled{opacity:.5;cursor:not-allowed;transform:none}
html:root.social-crystal body .icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:0;width:44px;min-width:44px;height:44px;min-height:44px;border-radius:50%}
html:root.social-crystal body .icon-btn.small{width:40px;min-width:40px;height:40px;min-height:40px}
html:root.social-crystal body .btn.small{min-height:40px;padding:8px 13px;font-size:13px}
html:root.social-crystal body .top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
html:root.social-crystal body .setting-trigger{display:inline-flex!important;align-items:center;gap:8px}
html:root.social-crystal body .header-company{width:auto;max-width:190px;min-width:0;display:none}
html:root.social-crystal body .header-company .selected-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root.social-crystal body .logo{font-weight:550;letter-spacing:-.45px;font-size:18px;gap:10px}
html:root.social-crystal body .logo b{color:var(--ink)}
html:root.social-crystal body .logo-mark{width:36px;height:36px;box-shadow:none}
html:root.social-crystal body .sabsus-suite-trigger{background:transparent!important;box-shadow:none!important;padding:0 6px 0 0;color:var(--ink)!important;max-width:min(44vw,400px);min-width:0;border-radius:999px}
html:root.social-crystal body .sabsus-suite-trigger .sabsus-suite-title{color:var(--ink)}
html:root.social-crystal body :is(.sabsus-suite-module,.sabsus-suite-chevron){color:var(--muted)}
html:root.social-crystal body .profile-trigger>.avatar{width:32px;height:32px;font-size:12px;border-radius:50%;display:grid;place-items:center;background:var(--soft-bg);color:var(--ink);box-shadow:none;border:0}
html:root.social-crystal body .avatar{box-shadow:none;color:var(--ink)}
html:root.social-crystal body .mobile-menu,html:root.social-crystal body .mobile-drawer-close{display:none}
html:root.social-crystal body .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px}
html:root.social-crystal body .stat{min-height:118px;display:flex;align-items:center;gap:14px;padding:20px;text-align:left;border-radius:24px;color:var(--ink);width:100%;min-width:0}
html:root.social-crystal body .stat-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--soft-bg);color:var(--muted);border:0;box-shadow:none;border-radius:50%;flex:none}
html:root.social-crystal body .stat :is(label,.stat-label){font-size:13px;line-height:1.4;color:var(--muted)}
html:root.social-crystal body .stat strong{font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:450;margin:6px 0 0;display:block}
html:root.social-crystal body .stat small{font-size:12px;color:var(--muted)}
html:root.social-crystal body .social-stat-link{cursor:pointer;transition:box-shadow .18s,transform .18s;text-decoration:none}
html:root.social-crystal body .social-stat-link:hover{transform:translateY(-2px)}
html:root.social-crystal body :is(.grid2,.grid21,.grid3,.grid4,.settings-layout,.post-layout){gap:20px;min-width:0}
html:root.social-crystal body .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
html:root.social-crystal body .field{display:grid;gap:7px;min-width:0;margin:0}
html:root.social-crystal body .field>span,html:root.social-crystal body .field>label{font-size:14px;line-height:1.4;font-weight:450;color:var(--ink);margin:0}
html:root.social-crystal body :is(.field input,.field select,.field textarea,.search,.select,.form-control){
 box-sizing:border-box;min-width:0;max-width:100%;min-height:46px;border-radius:14px;background:var(--control-bg);color:var(--ink);border:1px solid var(--line);box-shadow:none;padding:11px 14px;font-size:15px;line-height:1.4;
}
html:root.social-crystal body .field textarea{min-height:120px;resize:vertical;border-radius:16px}
html:root.social-crystal body .field :is(input,select,textarea):focus{border-color:var(--primary);outline:2px solid color-mix(in srgb,var(--primary) 20%,transparent);outline-offset:0;box-shadow:none}
html:root.social-crystal body :is(input,textarea)::placeholder{color:var(--placeholder);opacity:1}
html:root.social-crystal body select option{color:var(--ink);background:var(--elevated-bg)}
html:root.social-crystal body .field small,html:root.social-crystal body .form-hint{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
html:root.social-crystal body .field-grid{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
html:root.social-crystal body .stack{gap:20px;min-width:0}
html:root.social-crystal body .search{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 14px;border-color:transparent}
html:root.social-crystal body .search input{min-width:0;width:100%;height:44px;padding:0;color:var(--ink);font-size:14px;background:transparent;border:0;box-shadow:none}
html:root.social-crystal body .search .icon{color:var(--muted);width:18px;height:18px}
html:root.social-crystal body .toolbar{gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
html:root.social-crystal body .toolbar .search{max-width:360px;flex:1 1 220px}
html:root.social-crystal body :is(.actions,.modal-footer,.form-actions){display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px;min-width:0}
html:root.social-crystal body :is(.actions,.modal-footer,.form-actions)>.btn{white-space:normal;overflow-wrap:anywhere}
html:root.social-crystal body .tabs{gap:5px;padding:5px;border:0;border-radius:999px;background:var(--soft-bg);box-shadow:none;overflow-x:auto;max-width:100%;flex-shrink:0}
html:root.social-crystal body .tabs button{min-height:40px;padding:9px 16px;border-radius:999px;background:transparent;color:var(--muted);font-size:14px;font-weight:450;box-shadow:none;border:1px solid transparent}
html:root.social-crystal body .tabs button:is(.active,[aria-selected="true"]){background:var(--accent-soft);color:var(--ink);border-color:color-mix(in srgb,var(--primary) 30%,transparent);box-shadow:none}
html:root.social-crystal body .tabs button:hover{color:var(--ink);background:var(--hover-bg)}
html:root.social-crystal body .settings-nav{border-radius:24px;padding:8px;gap:5px}
html:root.social-crystal body .settings-nav button{color:var(--muted);min-height:44px;font-size:14px;padding:10px 14px;border-radius:999px}
html:root.social-crystal body .settings-nav button.active{color:var(--ink);background:var(--accent-soft)}
html:root.social-crystal body :is(.toggle-row,.setting-row){gap:16px;padding:16px 0;border-color:var(--line)}
html:root.social-crystal body :is(.toggle-row strong,.setting-row strong){font-size:14px;font-weight:500}
html:root.social-crystal body :is(.toggle-row p,.setting-row p){font-size:13px;color:var(--muted);line-height:1.5;margin-top:5px}
html:root.social-crystal body .switch{width:44px;min-width:44px;height:26px;background:var(--control-bg);border:1px solid var(--line);box-shadow:none}
html:root.social-crystal body .switch[aria-checked="true"]{background:var(--primary);border-color:var(--primary)}
html:root.social-crystal body :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--primary);width:20px;height:20px;min-height:20px;flex:none}
html:root.social-crystal body .notice{background:var(--soft-bg);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:14px 16px;gap:12px;font-size:14px;line-height:1.5;box-shadow:none}
html:root.social-crystal body .notice a{color:var(--accent-display);text-decoration:underline;text-underline-offset:3px}
html:root.social-crystal body .notice>.icon{flex:none}
html:root.social-crystal body .live-error{color:#ffbdc1;background:rgba(210,55,72,.12);border:1px solid rgba(230,80,90,.2);padding:13px 16px;border-radius:16px;font-size:14px}
html:root.social-crystal[data-social-theme="light"] body .live-error{color:#a52336;background:rgba(190,45,60,.07)}
html:root.social-crystal body .live-empty{padding:36px 24px;min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;color:var(--muted);font-size:14px}
html:root.social-crystal body .badge{padding:5px 9px;line-height:1.3;font-size:12px;font-weight:500;border-radius:999px}
html:root.social-crystal body .badge.green{color:#c7f2df;background:#83d7b315}
html:root.social-crystal body .badge.orange{color:#ffe0aa;background:#e5b96c15}
html:root.social-crystal[data-social-theme="light"] body .badge.green{color:#24674f;background:#258c5d14}
html:root.social-crystal[data-social-theme="light"] body .badge.orange{color:#8b5a14;background:#c08b2118}
html:root.social-crystal body .live-modal,html:root.social-crystal body .overlay{padding:24px;background:var(--scrim);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
html:root.social-crystal body .live-modal>.panel.dialog,html:root.social-crystal body .modal{width:min(640px,100%);max-width:100%;max-height:calc(100dvh - 48px);padding:24px;border-radius:28px;color:var(--ink);overflow:hidden}
html:root.social-crystal body .live-modal>.panel.dialog>.dialog-scroll{padding:24px;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:transparent;color:var(--ink)}
html:root.social-crystal body .live-modal>.panel.dialog:has(.appearance-dialog){width:min(560px,100%)}
html:root.social-crystal body .live-modal :is(h2,h3){color:var(--ink);margin:0 44px 18px 0}
html:root.social-crystal body .live-modal p.muted{font-size:14px;line-height:1.5}
html:root.social-crystal body .dialog-close{position:absolute;right:16px;top:16px;z-index:5}
html:root.social-crystal body :is(.social-native-select,.social-profile-menu,.sabsus-suite-menu,.sp-panel){border-radius:22px;color:var(--ink);background:var(--elevated-bg);box-shadow:var(--card-edge);border:1px solid var(--line);max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto}
html:root.social-crystal body :is(.social-native-select,.social-profile-menu) :is(button,a){color:var(--ink);min-height:44px;line-height:1.4;white-space:normal;font-size:14px;border-radius:12px;gap:10px;padding:10px 13px;background:transparent}
html:root.social-crystal body :is(.social-native-select,.social-profile-menu) :is(button,a):hover{background:var(--hover-bg)}
html:root.social-crystal body :is(.social-native-select,.social-profile-menu) :is([aria-selected="true"],.selected,.active){background:var(--accent-soft);color:var(--ink)}
html:root.social-crystal body .profile-menu-head{border-color:var(--line);padding:16px;gap:12px}
html:root.social-crystal body .profile-menu-head small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
html:root.social-crystal body .sp-panel{--sp-ink:var(--ink);--sp-muted:var(--muted);--sp-line:var(--line);--sp-bg:var(--elevated-bg);--sp-accent:var(--accent-display)}
html:root.social-crystal body .toast{color:var(--ink);background:var(--elevated-bg);font-size:14px;line-height:1.5;border-radius:18px;padding:14px 18px;max-width:min(500px,calc(100vw - 32px));box-shadow:var(--card-edge)}
html:root.social-crystal body .live-auth{padding:32px 20px;height:calc(100dvh - 110px);overflow:auto}
html:root.social-crystal body #app>.topbar{margin:28px 32px 0;padding:10px 16px;border-radius:999px;height:66px;position:relative;top:auto}
html:root.social-crystal body .login-panel{max-width:480px;margin:auto;padding:32px}
html:root.social-crystal body .login-panel h1{font-size:32px;font-weight:500;letter-spacing:-1px}
html:root.social-crystal body .login-intro{font-size:14px;color:var(--muted);line-height:1.5;margin:12px 0 24px}
html:root.social-crystal body #login-form{display:grid;gap:18px}
html:root.social-crystal body .login-secondary{gap:10px;margin-top:16px;flex-wrap:wrap}
html:root.social-crystal body .login-note{font-size:13px;line-height:1.5;margin-top:20px}
html:root.social-crystal body .social-appearance h3{margin:0 0 14px;font-size:15px;font-weight:500}
html:root.social-crystal body .social-theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html:root.social-crystal body .social-theme-option{position:relative;display:flex;flex-direction:column;gap:12px;min-height:140px;min-width:0;padding:12px;border-radius:20px;background:var(--soft-bg);border:2px solid transparent;color:var(--ink);text-align:left;cursor:pointer}
html:root.social-crystal body .social-theme-option[aria-pressed="true"]{border-color:var(--primary);background:var(--accent-soft)}
html:root.social-crystal body .social-theme-name{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}
html:root.social-crystal body .social-theme-check{position:absolute;right:10px;bottom:12px;display:grid;place-items:center;width:24px;height:24px;background:var(--primary);border-radius:50%;color:#fff}
html:root.social-crystal body .social-theme-check .icon{width:16px;height:16px}
html:root.social-crystal body .social-theme-preview{height:82px;width:100%;border-radius:12px;background:linear-gradient(145deg,#e7dfd2,#c1c9c8);display:grid;grid-template-columns:22px 1fr;gap:7px;padding:9px;overflow:hidden;box-shadow:inset 0 1px 2px #fff5}
html:root.social-crystal body .social-theme-preview.dark{background:linear-gradient(145deg,#53483d,#242d2d)}
html:root.social-crystal body .social-theme-preview i{border-radius:7px;background:rgba(255,255,255,.67);box-shadow:inset 1px 1px 1px #fff5}
html:root.social-crystal body .social-theme-preview i:first-child{grid-row:span 2}
html:root.social-crystal body .social-theme-preview.dark i{background:rgba(20,21,24,.7);box-shadow:inset 1px 1px 1px #fff2}
html:root.social-crystal body .social-effects-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;margin-top:18px;border-top:1px solid var(--line);font-size:14px;cursor:pointer}
html:root.social-crystal body .social-appearance-note{color:var(--muted);font-size:12px;margin:6px 0 0}
html:root.social-crystal body .mobile-bottom{display:none}
@media(max-width:1180px){
 html:root.social-crystal{--social-nav:76px}
 html:root.social-crystal body .app,html:root.social-crystal body .app.is-chats{padding:26px;gap:18px}
 html:root.social-crystal body .layout{gap:18px}
 html:root.social-crystal body .sidebar{padding:12px 9px}
 html:root.social-crystal body .nav a{padding:0;justify-content:center;min-height:48px}
 html:root.social-crystal body .nav a>span:not(.nav-icon){display:none}
 html:root.social-crystal body .stat{padding:18px 15px;gap:10px}
 html:root.social-crystal body .stat strong{font-size:28px}
}
@media(max-width:900px){
 html:root.social-crystal body .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 html:root.social-crystal body .grid21{grid-template-columns:minmax(0,1fr)}
 html:root.social-crystal body .page-head{gap:12px}
 html:root.social-crystal body .setting-trigger>span{display:none}
 html:root.social-crystal body .setting-trigger{height:44px;width:44px;min-width:44px;padding:0;justify-content:center}
 html:root.social-crystal body .head-actions .btn{font-size:14px;min-height:44px}
}
@media(min-width:761px) and (max-height:720px){
 html:root.social-crystal body .sidebar{gap:10px;padding-top:8px;padding-bottom:8px}
 html:root.social-crystal body .nav{gap:2px}
 html:root.social-crystal body .nav a{min-height:42px}
 html:root.social-crystal body .nav-secondary{padding-top:10px}
}
@media(max-width:760px){
 html:root.social-crystal{--social-inset:0px;--social-nav:0px}
 .social-scene{border-radius:0}
 #social-scene-photo{object-position:64% center}
 html:root.social-crystal body .app,html:root.social-crystal body .app.is-chats{padding:calc(10px + env(safe-area-inset-top)) 12px calc(84px + env(safe-area-inset-bottom));gap:12px}
 html:root.social-crystal body .app>.topbar{height:58px;min-height:58px;flex-basis:58px;padding:7px 10px;gap:8px}
 html:root.social-crystal body .layout{display:flex;gap:0;min-height:0;width:100%}
 html:root.social-crystal body .main{padding:4px 5px 18px;flex:1;width:100%;min-width:0}
 html:root.social-crystal body .app.is-chats .main{padding:0;overflow:hidden}
 html:root.social-crystal body .sidebar{display:none;position:fixed;inset:12px auto calc(12px + env(safe-area-inset-bottom)) 12px;width:min(290px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 24px);border-radius:26px;padding:18px 14px;z-index:1000;background:var(--elevated-bg)!important;overflow-y:auto}
 html:root.social-crystal.nav-open body .sidebar{display:flex;inset:12px auto calc(12px + env(safe-area-inset-bottom)) 12px;width:min(290px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 24px)}
 html:root.social-crystal.nav-open body .sidebar>.sg-pane{visibility:hidden!important}
 html:root.social-crystal.nav-open body .backdrop-nav{display:block;position:fixed;inset:0;z-index:990;background:var(--scrim);backdrop-filter:blur(4px)}
 html:root.social-crystal body .sidebar .nav a{padding:10px 14px;justify-content:flex-start;min-height:46px;font-size:14px}
 html:root.social-crystal body .sidebar .nav a>span{display:inline}
 html:root.social-crystal body .sidebar .nav-secondary{margin-top:12px;padding-top:14px}
 html:root.social-crystal body .mobile-drawer-close{display:inline-flex;margin-left:auto;flex:none}
 html:root.social-crystal body .mobile-menu{display:none!important}
 html:root.social-crystal body .sabsus-suite-trigger{max-width:calc(100vw - 174px);padding:0!important;gap:6px;font-size:14px}
 html:root.social-crystal body .sabsus-suite-trigger :is(.sabsus-suite-title,.sabsus-suite-name){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:95px}
 html:root.social-crystal body .top-actions{gap:4px}
 html:root.social-crystal body .top-actions>.icon-btn{width:44px;min-width:44px;height:44px}
 html:root.social-crystal body .setting-trigger{width:44px;min-width:44px;height:44px}
 html:root.social-crystal body .page-head{padding:4px 0 20px;align-items:flex-start;gap:14px}
 html:root.social-crystal body .page-head h1{font-size:28px;line-height:1.15}
 html:root.social-crystal body .head-actions{width:auto;gap:8px;margin-left:auto;justify-content:flex-end}
 html:root.social-crystal body .head-actions .btn{padding:10px 14px;font-size:13px;min-height:44px}
 html:root.social-crystal body .stats{gap:10px;margin-bottom:20px}
 html:root.social-crystal body .stat{padding:16px;min-height:112px;gap:9px;align-items:flex-start;flex-direction:column;position:relative;border-radius:22px}
 html:root.social-crystal body .stat-icon{position:absolute;right:12px;top:12px;width:28px;height:28px;background:transparent}
 html:root.social-crystal body .stat-icon .icon{width:17px;height:17px}
 html:root.social-crystal body .stat :is(label,.stat-label){font-size:12px;padding-right:24px;max-width:155px;min-height:33px;line-height:1.35}
 html:root.social-crystal body .stat strong{font-size:28px;line-height:1.1;margin-top:8px}
 html:root.social-crystal body .section-head{margin-top:22px;margin-bottom:14px}
 html:root.social-crystal body .section-head h2{font-size:19px}
 html:root.social-crystal body .panel{padding:20px;border-radius:24px}
 html:root.social-crystal body :is(.grid2,.grid3,.grid21){grid-template-columns:minmax(0,1fr);gap:16px}
 html:root.social-crystal body .field-grid{gap:16px}
 html:root.social-crystal body :is(.field input,.field select,.field textarea,.search input,.select){font-size:16px;min-height:48px}
 html:root.social-crystal body .field>span{font-size:14px}
 html:root.social-crystal body .search{min-height:48px}
 html:root.social-crystal body .toolbar .search{max-width:none;flex:1 1 200px;width:auto}
 html:root.social-crystal body .tabs{border-radius:18px}
 html:root.social-crystal body .tabs button{font-size:13px;min-height:44px;padding:10px 14px}
 html:root.social-crystal body .live-modal,html:root.social-crystal body .overlay{padding:12px 12px calc(12px + env(safe-area-inset-bottom));align-items:flex-end}
 html:root.social-crystal body .live-modal>.panel.dialog,html:root.social-crystal body .modal{width:100%;max-width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));padding:24px 20px;border-radius:28px;overflow:hidden}
 html:root.social-crystal body .live-modal :is(h2,h3){margin-right:36px}
 html:root.social-crystal body .mobile-bottom{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:90;display:flex;justify-content:space-around;min-height:62px;padding:5px 4px;border-radius:24px;background:var(--card-surface);border:1px solid transparent;box-shadow:var(--card-edge);backdrop-filter:blur(18px);isolation:isolate}
 html:root.social-crystal body .mobile-bottom :is(a,button){display:flex;flex:1 1 0;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:52px;padding:4px 2px;border-radius:18px;background:transparent;color:var(--muted);font-size:10px;font-weight:450;line-height:1.2;white-space:normal;text-align:center;text-decoration:none}
 html:root.social-crystal body .mobile-bottom .active{color:var(--ink);background:var(--accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 22%,transparent)}
 html:root.social-crystal body .mobile-bottom .active .icon{color:var(--accent-display)}
 html:root.social-crystal body .mobile-bottom .icon{width:20px;height:20px}
 html:root.social-crystal body .toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:14px}
 html:root.social-crystal body #app>.topbar{margin:10px 12px 0;height:58px}
 html:root.social-crystal body .live-auth{height:calc(100dvh - 80px);padding:24px 16px;min-height:0}
 html:root.social-crystal body .login-panel{padding:26px 22px;border-radius:28px}
 html:root.social-crystal body .social-theme-preview{height:72px}
 html:root.social-crystal body .social-theme-option{padding:10px;min-height:130px}
 html:root.social-crystal body .sabian-launcher{bottom:calc(88px + env(safe-area-inset-bottom))!important}
}
@media(max-width:600px){
 html:root.social-crystal body .field-grid{grid-template-columns:minmax(0,1fr)}
 html:root.social-crystal body .field.fullwidth{grid-column:auto}
 html:root.social-crystal body .page-head:has(.head-actions .btn:nth-child(2)) .head-actions{flex-basis:100%;justify-content:flex-start}
 html:root.social-crystal body .head-actions .btn{flex-shrink:0}
 html:root.social-crystal body .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){
 html:root.social-crystal body .app,html:root.social-crystal body .app.is-chats{padding-left:8px;padding-right:8px}
 html:root.social-crystal body .topbar .sabsus-suite-module{display:none}
 html:root.social-crystal body .page-head{flex-wrap:wrap}
 html:root.social-crystal body .page-head h1{font-size:26px}
 html:root.social-crystal body .stat{padding:14px 12px}
 html:root.social-crystal body .mobile-bottom{left:8px;right:8px}
 html:root.social-crystal body .mobile-bottom :is(a,button){font-size:10px}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 html:root.social-crystal{--card-surface:#252527}
 html:root.social-crystal[data-social-theme="light"]{--card-surface:#f6f6f8}
}
html:root.social-crystal.glass-off body :is(.glass,[data-social-optical],.panel){background:var(--elevated-bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root.social-crystal.glass-off body .btn.primary{background:var(--primary)!important}
@media(prefers-reduced-motion:reduce){html.social-crystal *,html.social-crystal *::before,html.social-crystal *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
 html:root.social-crystal body :is(.glass,[data-social-optical],.panel){background:var(--elevated-bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html:root.social-crystal body .sg-pane{visibility:hidden!important}
 html:root.social-crystal body .btn.primary{background:var(--primary)!important;color:white!important}
}
@media(forced-colors:active){
 html.social-crystal .social-scene,html.social-crystal .sg-pane{display:none!important}
 html:root.social-crystal body :is(.glass,.panel,.btn,.icon-btn,input,select,textarea){background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText!important;box-shadow:none!important}
 html.social-crystal :focus-visible{outline:2px solid Highlight!important}
 html:root.social-crystal body .nav a.active{border:2px solid Highlight!important}
}
@media print{
 html:root.social-crystal,html:root.social-crystal body{height:auto;overflow:visible;background:white!important;color:black!important}
 .social-scene,#liquid-scene,.sg-pane,.topbar,.sidebar,.mobile-bottom,.sabian-launcher{display:none!important}
 html:root.social-crystal body .app,html:root.social-crystal body .main,html:root.social-crystal body .layout{display:block;height:auto;overflow:visible;padding:0}
}

/* The existing navigation decorator wraps icons; keep this wrapper visible. */
html:root.social-crystal body .nav a>.nav-icon{display:inline-grid!important;place-items:center;flex:0 0 20px;width:20px;height:20px;min-height:0;padding:0;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;backdrop-filter:none!important}
html:root.social-crystal body .stat-label{display:block}

@media(min-width:761px){html:root.social-crystal body .app.is-post .sidebar{display:flex}}

/* Preserve the chat runtime's visual-viewport geometry when the keyboard opens. */
@media(max-width:760px){
 html:root.social-crystal body .app.is-chats{height:var(--cw-viewport-height,100dvh);inset:var(--cw-viewport-top,0px) 0 auto;padding-bottom:max(10px,env(safe-area-inset-bottom))}
 html:root.social-crystal body .app.is-chats:has(.chat-workspace.chat-open)~.mobile-bottom{display:none}
 html:root.social-crystal body .app.is-chats .mobile-menu{display:inline-flex!important}
 html:root.social-crystal body .app.is-chats .sabsus-suite-trigger{max-width:calc(100vw - 214px)}
}
html:root.social-crystal body .live-modal>.panel.dialog>.modal-close{position:absolute;right:16px;top:16px;width:44px;height:44px;min-height:44px;z-index:5}
html:root.social-crystal body .sp-panel{--sp-fg:var(--ink);--sp-active:var(--accent-soft);--sp-blue:var(--accent-display);color-scheme:inherit}
html:root.social-crystal body .sp-panel{position:fixed}
html:root.social-crystal body .sp-panel :is(button,select,.sp-account){min-height:44px}
html:root.social-crystal body .sp-panel [data-sp-close]{width:44px;min-width:44px;flex:0 0 44px}
html:root.social-crystal body .live-modal>.panel.dialog:has(.appearance-dialog)>.dialog-scroll{margin-top:0;max-height:calc(100dvh - 48px)}
html:root.social-crystal body:has(.live-modal) .sb-launch{visibility:hidden!important;pointer-events:none!important}
html:root.social-crystal body .sp-panel .sp-section:has([data-sp-theme]){display:none!important}
html:root.social-crystal body .field-shell{background:var(--control-bg)!important;border:1px solid var(--line)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root.social-crystal body .field-shell:focus-within{border-color:var(--primary)!important;box-shadow:0 0 0 3px var(--accent-soft)!important}
