:root{
  color-scheme:dark;
  --bg:#000;
  --panel:#0c0d0f;
  --panel2:#111317;
  --panel3:#15181d;
  --line:rgba(255,255,255,.085);
  --line2:rgba(255,255,255,.055);
  --text:#f3f5f7;
  --soft:#b5bdc8;
  --muted:#727b87;
  --green:#52d887;
}
*{box-sizing:border-box}
/* v430 — hidden must always win over view layout rules */
[hidden]{display:none!important}
html,body{margin:0;min-height:100%;background:#000;color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
body{overflow:auto}
button,textarea{font:inherit}
button{cursor:pointer}




.logo{display:none}










.wallet-pill{display:none}
.sep,.badge{display:none}
.main{min-width:0;padding:0}.wrap{width:100%;margin:0}
.profile-hero{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:26px;background:#07110c;min-height:305px}
.profile-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% -10%,rgba(57,119,78,.28),transparent 48%),linear-gradient(180deg,#0a1b11 0%,#07110c 62%,#060a08 100%)}
.profile-hero::after{content:"KSAN  KSAN  KSAN  KSAN  KSAN  KSAN  KSAN  KSAN";position:absolute;inset:0;color:rgba(255,255,255,.018);font-weight:900;letter-spacing:26px;font-size:22px;line-height:74px;word-spacing:24px;transform:rotate(-2deg);pointer-events:none}
.hero-inner{position:relative;z-index:1;min-height:255px;padding:28px 24px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.avatar-wrap{position:relative}.avatar{width:112px;height:112px;border-radius:50%;border:4px solid rgba(255,255,255,.88);background:#171a1f;display:grid;place-items:center;font-size:40px;font-weight:820;letter-spacing:-.06em;box-shadow:0 10px 35px rgba(0,0,0,.35)}.avatar-add{position:absolute;right:-2px;bottom:4px;width:30px;height:30px;border-radius:50%;border:3px solid #07110c;background:#e8ebef;color:#0a0a0a;display:grid;place-items:center;font-size:19px;font-weight:500}.nick{margin-top:12px;font-size:22px;font-weight:790;letter-spacing:-.04em}.online{margin-top:6px;color:#d2d6da;font-size:11px}.online i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:6px;box-shadow:0 0 0 4px rgba(82,216,135,.08)}.statusline{margin-top:13px;color:#89928f;font-size:11px}.statusline strong{color:#c8cfcc;font-weight:650}
.rating-row{position:relative;z-index:1;height:50px;border-top:1px solid rgba(255,255,255,.065);background:rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;gap:34px}.rating-item{display:flex;align-items:center;gap:8px;color:#d6dadf;font-size:12px}.rating-item strong{font-size:15px;color:#fff}.rating-icon{color:#e5bf45;font-size:15px}.rating-divider{width:1px;height:24px;background:var(--line)}
.profile-tabs{margin-top:10px;border:1px solid var(--line);border-radius:19px;background:#090a0c;padding:10px 12px 12px}.tabs-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.tab-btn{height:46px;border:0;border-radius:16px;background:transparent;color:#b7bec8;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:650}.tab-btn:hover{background:#101216;color:#fff}.tab-btn.active{background:#15181d;color:#fff}.tab-count{color:#68727d;font-size:10px}.wallet-line{margin-top:8px;height:34px;display:flex;align-items:center;justify-content:center;gap:8px;color:#737c87;font-size:11px}.wallet-line button{border:0;background:transparent;color:#8c95a0;font-weight:600}
.content{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:12px;margin-top:12px}.wall-col{min-width:0}.card{border:1px solid var(--line);border-radius:16px;background:#0b0c0f}.composer{padding:13px}.composer-main{display:flex;gap:10px}.mini-avatar{width:36px;height:36px;border-radius:50%;background:#171a1f;display:grid;place-items:center;font-size:12px;font-weight:760;flex:0 0 36px}.post-input{width:100%;min-height:52px;resize:none;border:0;outline:0;background:transparent;color:#e9edf1;padding:8px 2px;font-size:13px;line-height:1.45}.post-input::placeholder{color:#626b75}.composer-actions{margin-top:8px;padding-top:9px;border-top:1px solid var(--line2);display:flex;justify-content:space-between;align-items:center}.left-actions{display:flex;gap:6px}.ghost{height:28px;padding:0 9px;border:1px solid var(--line2);border-radius:9px;background:#0f1114;color:#7f8893;font-size:9px}.publish{height:30px;padding:0 13px;border:0;border-radius:9px;background:#e9ecef;color:#0a0a0a;font-size:9px;font-weight:800}.section-title{display:flex;justify-content:space-between;align-items:center;padding:0 4px;margin:14px 0 8px}.section-title h2{margin:0;font-size:13px}.section-title span{font-size:9px;color:#5f6872}.posts{display:grid;gap:8px}.post{padding:13px}.post-head{display:flex;align-items:center;gap:9px}.author{font-size:11px;font-weight:700}.date{font-size:9px;color:#59626d;margin-top:2px}.more{margin-left:auto;color:#5d6570}.post-text{font-size:12.5px;line-height:1.5;color:#cbd1d8;margin:11px 0 0}.post-media{margin-top:11px;border-radius:13px;overflow:hidden;border:1px solid var(--line2);height:220px;background:#0f1114}.post-media img{width:100%;height:100%;object-fit:cover;display:block}.post-actions{display:flex;gap:18px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line2)}.post-action{border:0;background:transparent;color:#68717c;font-size:9px;padding:0}.post-action.is-active{color:#e7eaed}
.side{display:grid;align-content:start;gap:9px}.side-card{padding:13px}.side-title{font-size:10px;font-weight:750;margin-bottom:9px;color:#d8dce1}.info-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line2);font-size:9.5px}.info-row:last-child{border-bottom:0}.info-row span:first-child{color:#606975}.info-row span:last-child{color:#aeb5bf;text-align:right}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.quick{border:1px solid var(--line2);border-radius:11px;background:#101216;color:#8c95a0;text-align:center;padding:10px 5px;font-size:9px}.footer-back{position:fixed;right:16px;bottom:16px;height:36px;border:1px solid var(--line);border-radius:12px;background:#0e1013;color:#8d96a2;padding:0 12px;font-size:10px}
@media(max-width:1080px){
  
  
  
  .content{grid-template-columns:1fr}
  .side{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  
  
  
  
  
  
  .wallet-pill{display:none!important}
  .main{padding:0}
  .profile-hero{border-radius:20px;min-height:270px}
  .hero-inner{min-height:220px;padding:20px 14px 14px}
  .avatar{width:86px;height:86px;font-size:30px}
  .avatar-add{width:26px;height:26px}
  .nick{font-size:19px;margin-top:10px}
  .rating-row{height:46px;gap:16px}
  .rating-item{font-size:10px}.rating-item strong{font-size:13px}
  .profile-tabs{border-radius:17px;padding:8px}.tabs-row{grid-template-columns:repeat(2,1fr)}.tab-btn{height:40px}
  .content{margin-top:9px}.side{grid-template-columns:1fr}.post-media{height:165px}.footer-back{bottom:76px}
}

    
    .personal-brand__ai {
      color: #8e98a5;
      font-size: .76em;
      font-weight: 520;
      letter-spacing: -.03em;
    }
    @media (max-width: 760px) {
      
    }
  








.settings-btn{margin-top:auto}
@media(max-width:1080px){
  
  
  
}
@media(max-width:760px){
  
  
  
  
  
  
}


/* Right-side content switching: Personal / Ksan AI */
.main{position:relative}
.ai-workspace{
  width:100%;
  height:calc(100vh - 56px);
  min-height:620px;
  border:0;
  border-radius:26px;
  background:#000;
  display:block;
}
.ai-workspace[hidden]{display:none!important}
body.ai-view-active .footer-back{display:none}
@media(max-width:760px){
  .ai-workspace{height:calc(100vh - 104px);min-height:540px;border-radius:20px}
}




.personal-brand__ai{font-size:.68em !important}


@media(max-width:760px){
  
  
  
}






.main{padding-top:0 !important}
.content-brand{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  margin:0 0 16px 4px;
  color:#f5f7f8;
  font-family:"Unbounded","Geist",system-ui,sans-serif;
  font-size:22px;
  font-weight:650;
  line-height:1;
  letter-spacing:-.055em;
  text-decoration:none;
  user-select:none;
}
.content-brand__ai{
  color:#8e98a5;
  font-size:.76em;
  font-weight:520;
  letter-spacing:-.03em;
}
.ai-workspace{height:calc(100vh - 94px)}
@media(max-width:760px){
  .content-brand{
    margin:4px 0 14px 4px;
    font-size:19px;
  }
  .ai-workspace{height:calc(100vh - 136px)}
}





.personal-brand__ai{font-size:.72em !important;color:#8e98a5 !important;font-weight:520 !important;letter-spacing:-.03em !important}










.content-brand{display:none !important}
@media(max-width:1080px){
  
  
  
}
@media(max-width:760px){
  
  
  
  
  
  
  
}










@media(max-width:760px){
  
  
}



















.personal-brand__ai{
  color:#9ba4af !important;
  font-size:.78em !important;
  font-weight:520 !important;
  letter-spacing:-.035em !important;
}
@media(max-width:1080px){
  
}


html,body{
  width:100%;
  height:100%;
  min-height:100%;
  overflow:hidden!important;
  overscroll-behavior:none;
  background:#000;
}
body{position:relative}


.main{
  height:calc(100dvh - 36px)!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.12) transparent;
  padding-right:4px!important;
}
.main::-webkit-scrollbar{width:5px}
.main::-webkit-scrollbar-track{background:transparent}
.main::-webkit-scrollbar-thumb{background:rgba(255,255,255,.11);border-radius:999px}
.ai-workspace{
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
}
body.ai-view-active .main{overflow:hidden!important;padding-right:0!important}
.footer-back{z-index:50}
@media(max-width:760px){
  
  .main{height:calc(100dvh - 100px)!important;overflow-y:auto!important;padding-right:0!important}
  
  .ai-workspace{height:100%!important;min-height:100%!important}
}


.profile-hero{
  min-height:0 !important;
  border-radius:24px !important;
  background:#07100c !important;
}
.profile-hero::before{
  background:
    radial-gradient(circle at 42% -12%, rgba(48,104,68,.18), transparent 45%),
    linear-gradient(180deg,#09140e 0%,#07100c 68%,#060908 100%) !important;
}
.profile-hero::after{
  opacity:.52 !important;
  font-size:17px !important;
  line-height:62px !important;
  letter-spacing:20px !important;
}
.hero-inner{
  min-height:182px !important;
  padding:22px 24px 16px !important;
}
.avatar{width:82px !important;height:82px !important;border-width:3px !important;font-size:30px !important;box-shadow:0 8px 24px rgba(0,0,0,.28) !important}
.avatar-add{width:25px !important;height:25px !important;right:-3px !important;bottom:2px !important;border-width:3px !important;font-size:16px !important}
.nick{margin-top:11px !important;font-size:20px !important;letter-spacing:-.035em !important}
.online{margin-top:4px !important;font-size:10px !important}
.online i{width:7px !important;height:7px !important;margin-right:5px !important;box-shadow:0 0 0 3px rgba(82,216,135,.08) !important}
.statusline{margin-top:9px !important;font-size:10px !important;color:#77837d !important}
.rating-row{
  height:44px !important;
  gap:24px !important;
  background:rgba(0,0,0,.18) !important;
}
.rating-item{font-size:10.5px !important;gap:7px !important}
.rating-item strong{font-size:14px !important}
.rating-icon{font-size:13px !important}
.rating-divider{height:18px !important}
.profile-tabs{margin-top:9px !important}
@media(max-width:760px){
  .profile-hero{border-radius:16px !important}
  .hero-inner{min-height:166px !important;padding:18px 14px 13px !important}
  .avatar{width:72px !important;height:72px !important;font-size:26px !important}
  .avatar-add{width:23px !important;height:23px !important;font-size:14px !important}
  .nick{font-size:17px !important;margin-top:9px !important}
  .rating-row{height:42px !important;gap:13px !important}
  .rating-item{font-size:9.5px !important}.rating-item strong{font-size:13px !important}
}


.profile-page{
  width:100%;
  max-width:1040px;
  margin:0;
  padding:0 0 46px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}
.tg-profile-hero{position:relative;min-height:360px;padding:34px 30px 28px;border:1px solid rgba(255,255,255,.065);border-radius:26px;background:radial-gradient(circle at 50% 10%,rgba(64,82,92,.18),transparent 42%),linear-gradient(180deg,#11161a 0%,#0b0f12 68%,#080a0d 100%);overflow:hidden;text-align:center}
.tg-profile-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 25%,rgba(255,255,255,.025),transparent 22%),radial-gradient(circle at 78% 18%,rgba(255,255,255,.02),transparent 19%);pointer-events:none}
.tg-profile-actions{position:absolute;left:22px;right:20px;top:20px;z-index:2;display:flex;align-items:center;justify-content:space-between}
.tg-round-btn,.tg-edit-btn{border:1px solid rgba(255,255,255,.10);background:rgba(13,16,20,.72);color:#f4f6f8;backdrop-filter:blur(18px);box-shadow:inset 0 1px rgba(255,255,255,.03)}
.tg-round-btn{width:52px;height:52px;border-radius:50%;font-size:37px;line-height:1;padding:0 0 5px}
.tg-edit-btn{height:48px;padding:0 18px;border-radius:16px;display:flex;gap:8px;align-items:center;font-size:14px;font-weight:700}
.tg-avatar-wrap{position:relative;z-index:1;width:140px;margin:18px auto 0}
.tg-avatar{width:140px;height:140px;border-radius:50%;border:3px solid rgba(255,255,255,.86);background:#1c2026;display:grid;place-items:center;font-size:48px;font-weight:800;box-shadow:0 18px 42px rgba(0,0,0,.34)}
.tg-avatar-add{position:absolute;right:2px;bottom:10px;width:32px;height:32px;border-radius:50%;border:3px solid #11161b;background:#eef1f4;color:#0d0f12;font-size:17px;font-weight:700}
.tg-id-bubble::after{content:"";position:absolute;left:20px;top:100%;border:7px solid transparent;border-top-color:rgba(91,96,105,.78)}
.tg-nick{position:relative;z-index:1;margin-top:18px;font-size:28px;font-weight:790;letter-spacing:-.035em;color:#f5f7f8}
.tg-online{position:relative;z-index:1;margin-top:8px;font-size:14px;color:#aeb6bf}.tg-online i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#53db86;margin-right:7px;box-shadow:0 0 0 4px rgba(83,219,134,.09)}
.tg-music{width:100%;height:64px;margin-top:12px;padding:0 22px;border:1px solid rgba(255,255,255,.075);border-radius:24px;background:#0c0f12;color:#f4f6f8;display:flex;align-items:center;gap:12px;text-align:left}.tg-music-icon{font-size:24px}.tg-music-text{flex:1;font-size:14px}.tg-music-text span{color:#929aa4}.tg-chevron{font-size:28px;color:#c7cdd3}
.tg-section{margin-top:0}
.tg-section-head{display:flex;justify-content:space-between;align-items:center;padding:0 6px 8px;color:#747c86;font-size:11px;letter-spacing:.01em}
.tg-channel-card{min-height:96px;padding:14px 16px;border:1px solid rgba(255,255,255,.065);border-radius:19px;background:#0a0d10;display:flex;align-items:center;gap:14px}.tg-channel-avatar{width:62px;height:62px;border-radius:50%;background:linear-gradient(145deg,#343a43,#11151a);display:grid;place-items:center;font-size:17px;font-weight:800}.tg-channel-copy{flex:1;min-width:0}.tg-channel-title{font-size:15px;font-weight:760}.tg-channel-desc{margin-top:5px;color:#8f98a3;font-size:12px;line-height:1.35;font-style:italic}.tg-channel-day{color:#6f7780;font-size:11px}
.tg-info-card{margin-top:0;padding:0 18px;border:1px solid rgba(255,255,255,.065);border-radius:19px;background:#0a0d10}.tg-info-row{min-height:88px;display:grid;grid-template-columns:46px 1fr 40px;align-items:center;gap:14px;border-bottom:1px solid rgba(255,255,255,.055)}.tg-info-row:last-child{border-bottom:0}.tg-info-icon{width:40px;height:40px;border:1px solid rgba(255,255,255,.07);border-radius:50%;display:grid;place-items:center;color:#c8ced5;font-size:19px}.tg-info-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.tg-info-copy span{font-size:11px;color:#7f8791}.tg-info-copy strong{font-size:15px;color:#eef2f5;font-weight:650;overflow-wrap:anywhere}.tg-info-row:first-child .tg-info-copy strong{color:#55b8ff}.tg-info-action{border:0;background:transparent;color:#4cb5ff;font-size:22px}
.tg-tabs{margin-top:18px;padding:5px;border:1px solid rgba(255,255,255,.075);border-radius:19px;background:#0c0f12;display:grid;grid-template-columns:1.05fr 1.25fr .8fr;gap:5px}.tg-tab{height:44px;border:0;border-radius:17px;background:transparent;color:#d8dde2;font-size:12px;font-weight:650;white-space:nowrap}.tg-tab.is-active{background:#2a2e34;color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.05)}
.tg-actions{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.tg-actions button{height:54px;border:1px solid rgba(255,255,255,.075);border-radius:20px;background:#0d1013;color:#eff2f5;font-size:13px;font-weight:650}.tg-actions button:first-child{color:#63bcff}
.tg-wall{margin-top:20px}.tg-wall-title{margin:0 4px 9px;font-size:14px;font-weight:760;color:#e7ebef}.tg-wall .posts{margin-top:8px}
@media(max-width:760px){.profile-page{padding-bottom:20px}.tg-profile-hero{min-height:330px;border-radius:24px;padding:24px 16px}.tg-profile-actions{left:14px;right:14px;top:14px}.tg-round-btn{width:46px;height:46px}.tg-edit-btn{height:44px;padding:0 14px}.tg-avatar-wrap{width:118px;margin-top:30px}.tg-avatar{width:118px;height:118px;font-size:40px}.tg-nick{font-size:24px}.tg-tabs{grid-template-columns:1fr 1.2fr .8fr;overflow:hidden}.tg-tab{font-size:11px}.tg-actions{grid-template-columns:1fr}.tg-info-row{grid-template-columns:42px 1fr 34px}}


.profile-page{max-width:860px!important;margin:0 auto!important;padding:8px 4px 56px!important}
.tg-profile-hero{
  min-height:292px!important;
  padding:26px 24px 24px!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
  overflow:visible!important;
}
.tg-profile-hero::before{
  content:""!important;
  position:absolute!important;
  left:50%!important;top:8px!important;transform:translateX(-50%)!important;
  width:min(82%,620px)!important;height:220px!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(56,70,78,.15),transparent 66%)!important;
  pointer-events:none!important;
}
.tg-profile-actions{left:8px!important;right:8px!important;top:8px!important}
.tg-round-btn{width:48px!important;height:48px!important;border-radius:50%!important;font-size:30px!important;background:#17191d!important;border:1px solid rgba(255,255,255,.075)!important}
.tg-edit-btn{height:46px!important;padding:0 16px!important;border-radius:16px!important;background:#17191d!important;border:1px solid rgba(255,255,255,.075)!important;font-size:13px!important}
.tg-avatar-wrap{width:122px!important;margin:14px auto 0!important}
.tg-avatar{width:122px!important;height:122px!important;border:2px solid rgba(255,255,255,.58)!important;background:#171a1f!important;font-size:42px!important;box-shadow:0 16px 34px rgba(0,0,0,.32)!important}
.tg-avatar-add{width:28px!important;height:28px!important;right:-2px!important;bottom:5px!important;border:3px solid #000!important;font-size:17px!important}
.tg-id-bubble::after{border-top-color:#373b42!important}
.tg-nick{margin-top:15px!important;font-size:29px!important;font-weight:760!important;letter-spacing:-.04em!important}
.tg-online{margin-top:5px!important;font-size:13px!important;color:#8c949e!important}
.tg-online i{width:8px!important;height:8px!important;margin-right:6px!important;box-shadow:none!important}
.tg-rating{
  height:60px;
  margin:2px 0 20px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:19px;
  background:#111315;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
}
.tg-rating-item{display:flex;align-items:center;gap:8px;color:#a8b0b9;font-size:12px;white-space:nowrap}
.tg-rating-item strong{color:#f3f5f7;font-size:17px;font-weight:760}
.tg-rating-star{color:#e8bd48;font-size:16px}.tg-rating-star--muted{color:#9099a4}
.tg-rating-sep{width:1px;height:24px;background:rgba(255,255,255,.08)}
.tg-section{margin-top:0!important}
.tg-section-head{padding:0 10px 8px!important;font-size:11px!important;color:#727a84!important}
.tg-channel-card{min-height:88px!important;padding:12px 14px!important;border-radius:24px!important;background:#1a1c1f!important;border:0!important}
.tg-channel-avatar{width:58px!important;height:58px!important;font-size:17px!important;background:#0f1114!important}
.tg-channel-title{font-size:15px!important}.tg-channel-desc{font-size:11.5px!important;color:#9299a2!important}.tg-channel-day{font-size:10px!important}
.tg-info-card{margin-top:18px!important;padding:0 18px!important;border-radius:26px!important;background:#1a1c1f!important;border:0!important}
.tg-info-row{min-height:78px!important;grid-template-columns:42px 1fr 36px!important;gap:12px!important;border-bottom-color:rgba(255,255,255,.07)!important}
.tg-info-icon{width:36px!important;height:36px!important;border-radius:50%!important;font-size:16px!important;background:#141619!important}
.tg-info-copy span{font-size:11px!important;color:#858d96!important}.tg-info-copy strong{font-size:15px!important}.tg-info-action{font-size:19px!important}
.tg-tabs{margin-top:18px!important;padding:4px!important;border:0!important;border-radius:22px!important;background:#141619!important;grid-template-columns:1.1fr 1fr .8fr!important;gap:3px!important}
.tg-tab{height:44px!important;border-radius:16px!important;font-size:12px!important;color:#aeb5be!important}.tg-tab.is-active{background:#31343a!important;color:#fff!important;box-shadow:none!important}
.tg-tab-count{font-size:10px;color:#747c86;font-weight:650;margin-left:3px}
.tg-actions{margin-top:11px!important;gap:9px!important}.tg-actions button{height:50px!important;border-radius:19px!important;background:#111315!important;border:1px solid rgba(255,255,255,.07)!important;font-size:12px!important}
.tg-wall{margin-top:18px!important}.tg-wall-title{margin:0 5px 8px!important;color:#d9dee3!important;font-size:13px!important}
.profile-tab-panel[hidden]{display:none!important}.profile-tab-panel.is-active{display:block}
.tg-empty-card{padding:24px;border:1px solid rgba(255,255,255,.07);border-radius:20px;background:#111315;display:grid;gap:6px}.tg-empty-card strong{font-size:14px}.tg-empty-card span{font-size:11px;color:#808994}
@media(max-width:760px){
  .profile-page{padding:0 0 24px!important}
  .tg-profile-hero{min-height:270px!important;padding:20px 12px 18px!important}
  .tg-profile-actions{left:4px!important;right:4px!important;top:4px!important}
  .tg-round-btn{width:44px!important;height:44px!important}.tg-edit-btn{height:42px!important;padding:0 13px!important}
  .tg-avatar-wrap{width:108px!important;margin-top:18px!important}.tg-avatar{width:108px!important;height:108px!important;font-size:36px!important}  .tg-nick{font-size:25px!important;margin-top:13px!important}.tg-online{font-size:12px!important}
  .tg-rating{height:56px;margin:0 0 16px;padding:0 10px;gap:8px;border-radius:19px}.tg-rating-item{gap:5px;font-size:10px}.tg-rating-item strong{font-size:14px}.tg-rating-sep{height:20px}
  .tg-channel-card{border-radius:20px!important}.tg-info-card{border-radius:22px!important;padding:0 14px!important}.tg-info-row{min-height:74px!important;grid-template-columns:38px 1fr 30px!important;gap:10px!important}
  .tg-tabs{overflow:visible!important}.tg-tab{font-size:10.5px!important;padding:0 5px!important}
  .tg-actions{grid-template-columns:1fr 1fr!important}.tg-actions button{font-size:11px!important}
}


.tg-profile-hero{
  --profile-bg:none;
  isolation:isolate;
}
.tg-profile-hero::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  background:var(--profile-bg);
  background-size:cover;
  background-position:center;
  opacity:1;
  pointer-events:none;
}
.tg-profile-hero::before{z-index:1!important}
.tg-profile-actions,.tg-avatar-wrap,.tg-nick,.tg-online{z-index:2!important}
.tg-profile-hero.has-photo::before{
  width:100%!important;
  height:100%!important;
  left:0!important;
  top:0!important;
  transform:none!important;
  border-radius:0!important;
  background:linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.44) 72%,rgba(0,0,0,.7))!important;
}
.profile-bg-modal[hidden]{display:none!important}
.profile-bg-modal{
  position:fixed;
  inset:0;
  z-index:20000;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(12px);
}
.profile-bg-sheet{
  width:min(560px,100%);
  padding:16px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:28px;
  background:#111316;
  box-shadow:0 28px 70px rgba(0,0,0,.5);
}
.profile-bg-sheet__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.profile-bg-sheet__title{font-size:16px;font-weight:760;color:#f4f6f8}
.profile-bg-close{width:36px;height:36px;border:0;border-radius:50%;background:#1d2025;color:#cbd1d7;font-size:20px}
.profile-bg-preview{height:126px;border-radius:20px;border:1px solid rgba(255,255,255,.07);background:var(--profile-bg,linear-gradient(180deg,#07090c,#000));background-size:cover;background-position:center;overflow:hidden;position:relative;margin-bottom:14px}
.profile-bg-preview::after{content:"Предпросмотр";position:absolute;left:14px;bottom:12px;padding:6px 9px;border-radius:999px;background:rgba(0,0,0,.5);color:#fff;font-size:10px;font-weight:650;backdrop-filter:blur(8px)}
.profile-bg-label{margin:2px 0 9px;color:#858e98;font-size:11px}
.profile-bg-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:14px}
.profile-bg-swatch{height:48px;border:1px solid rgba(255,255,255,.08);border-radius:14px;box-shadow:inset 0 1px rgba(255,255,255,.04)}
.profile-bg-swatch.is-selected{outline:2px solid #fff;outline-offset:2px}
.profile-bg-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-bg-action{height:44px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:#1a1d21;color:#edf1f4;font-size:12px;font-weight:700}
.profile-bg-action--primary{background:#f0f2f4;color:#0c0e10;border-color:#f0f2f4}
.profile-bg-action--danger{grid-column:1/-1;background:transparent;color:#8e97a2}
#profileBgFile{display:none}
@media(max-width:760px){
  .profile-bg-modal{padding:10px}
  .profile-bg-sheet{border-radius:24px;padding:14px}
  .profile-bg-preview{height:108px}
  .profile-bg-swatches{grid-template-columns:repeat(3,1fr)}
}


.tg-profile-hero{
  border-radius:34px !important;
  overflow:hidden !important;
  margin:4px 0 18px !important;
  border:1px solid rgba(255,255,255,.055) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
}
.tg-profile-hero::after{
  border-radius:inherit !important;
}
.tg-profile-hero.has-photo::before{
  border-radius:inherit !important;
}
.tg-rating{
  width:min(74%, 650px) !important;
  height:58px !important;
  margin:-2px auto 22px !important;
  padding:0 22px !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,rgba(21,24,28,.96),rgba(14,16,19,.98)) !important;
  border:1px solid rgba(255,255,255,.065) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 12px 28px rgba(0,0,0,.18) !important;
  gap:24px !important;
}
.tg-rating-item{
  gap:7px !important;
  color:#aab2bc !important;
  font-size:11.5px !important;
}
.tg-rating-item strong{
  font-size:16px !important;
  letter-spacing:-.02em !important;
}
.tg-rating-star{font-size:15px !important}
.tg-rating-sep{
  height:20px !important;
  background:rgba(255,255,255,.065) !important;
}
@media(max-width:760px){
  .tg-profile-hero{
    border-radius:26px !important;
    margin:2px 0 14px !important;
  }
  .tg-rating{
    width:calc(100% - 34px) !important;
    height:52px !important;
    margin:0 auto 16px !important;
    padding:0 14px !important;
    gap:11px !important;
  }
  .tg-rating-item{font-size:9.8px !important;gap:5px !important}
  .tg-rating-item strong{font-size:13.5px !important}
  .tg-rating-star{font-size:13px !important}
  .tg-rating-sep{height:18px !important}
}



.content-brand{
  display:flex!important;
  width:100%!important;
  align-items:baseline!important;
  justify-content:center!important;
  gap:6px!important;
  margin:2px 0 16px!important;
  color:#f6f7f8!important;
  font-family:"Unbounded","Geist",system-ui,sans-serif!important;
  font-size:23px!important;
  font-weight:650!important;
  line-height:1!important;
  letter-spacing:-.055em!important;
  text-decoration:none!important;
  user-select:none!important;
}
.content-brand__ai{
  color:#9ba4af!important;
  font-size:.78em!important;
  font-weight:520!important;
  letter-spacing:-.035em!important;
}
body.ai-view-active .content-brand{display:flex!important}
@media(max-width:760px){
  .content-brand{font-size:19px!important;margin:0 0 12px!important}
}


.tg-rating{
  width:100% !important;
  height:54px !important;
  margin:0 0 18px !important;
  padding:0 18px !important;
  border:0 !important;
  border-radius:0 !important;
  background:#0a0d10 !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:18px !important;
  position:relative !important;
}
.tg-rating-item{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  color:#a8b0ba !important;
  font-size:13px !important;
  white-space:nowrap !important;
}
.tg-rating-item strong{
  color:#f5f7f9 !important;
  font-size:17px !important;
  font-weight:760 !important;
  letter-spacing:-.025em !important;
}
.tg-rating-star{
  color:#e7bd48 !important;
  font-size:17px !important;
  line-height:1 !important;
}
.tg-rating-star--muted{
  color:#8f98a4 !important;
}
.tg-rating-sep{
  width:5px !important;
  height:5px !important;
  border-radius:50% !important;
  background:#3b4149 !important;
  flex:0 0 5px !important;
}
.tg-rating-arrow{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  color:#8d96a1;
  font-size:28px;
  font-weight:300;
  line-height:1;
}
@media(max-width:760px){
  .tg-rating{
    height:48px !important;
    margin:0 0 14px !important;
    padding:0 34px 0 4px !important;
    gap:10px !important;
    justify-content:flex-start !important;
  }
  .tg-rating-item{font-size:10.5px !important;gap:5px !important}
  .tg-rating-item strong{font-size:14px !important}
  .tg-rating-star{font-size:15px !important}
  .tg-rating-sep{width:4px !important;height:4px !important;flex-basis:4px !important}
  .tg-rating-arrow{right:4px;font-size:24px}
}





@media(max-width:760px){
  
  
}






.content-brand{
  display:none !important;
}
body.ai-view-active .content-brand{
  display:none !important;
}
@media(max-width:1080px){
  
  
  
  
}
@media(max-width:760px){
  
}







.content-brand,
body.ai-view-active .content-brand{
  display:none !important;
}
@media(max-width:1080px){
  
  
  
  
  
}
@media(max-width:760px){
  
  
  
  
}







.content-brand,
body.ai-view-active .content-brand{display:none !important}
@media(max-width:1080px){
  
  
  
  
  
}
@media(max-width:760px){
  
}









.content-brand,
body.ai-view-active .content-brand{
  display:none !important;
}
@media(max-width:1080px){
  
  
  
  
  
}
@media(max-width:760px){
  
  
  
  
}


@media (min-width: 761px){
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}


@media (min-width:761px){
  
  
  
  
  
  
  
}























@media(max-width:1080px) and (min-width:761px){
  
  
}
@media(max-width:760px){
  
  
  
  
  
  
  
  
  
  
}







@media(max-width:760px){
  
  
  
  
}


@media (min-width: 761px){
  
  
  
  
  
  
  
  
  
  
  
  
  
}
@media (max-width:1080px) and (min-width:761px){
  
  
  
}


@media (min-width:761px){
  
}


@media (min-width:761px){
  
  
  
  
}


@media (min-width:761px){
  
  
  
  
  
}
@media(max-width:760px){
  
}


@media (min-width:761px){
  
  
  
  
  
}
@media (max-width:760px){
  
  
  
}


@media (min-width:761px){
  
}
@media (max-height:760px) and (min-width:761px){
  
}


/* v267 profile upgrade */
.tg-profile-hero{
  min-height:340px !important;
  padding:28px 28px 30px !important;
  background:#020406 !important;
}
.tg-profile-hero::before{
  background:radial-gradient(circle at 50% 10%,rgba(42,72,58,.26),transparent 52%) !important;
  height:240px !important;
}
.tg-profile-hero::after{
  background:var(--profile-bg) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}
.tg-avatar-wrap{width:136px !important;margin-top:18px !important}
.tg-avatar{width:136px !important;height:136px !important;font-size:48px !important;box-shadow:0 20px 40px rgba(0,0,0,.34) !important}
.tg-avatar-add{width:34px !important;height:34px !important;font-size:19px !important;right:-4px !important;bottom:6px !important}
.tg-nick{font-size:32px !important;margin-top:17px !important}
.tg-online{margin-top:7px !important}
.tg-hero-badges{position:relative;z-index:2;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.tg-hero-badge{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:11px;font-weight:700;color:#edf1f4;backdrop-filter:blur(10px)}
.tg-followers{position:relative;z-index:2;margin-top:12px;color:#98a2ad;font-size:13px}
.tg-followers strong{color:#f4f7f9;font-size:14px;font-weight:760;margin-left:4px}
.tg-rating{
  width:min(76%,620px) !important;
  height:52px !important;
  margin:2px auto 16px !important;
  padding:0 42px 0 18px !important;
  border:1px solid rgba(255,255,255,.06) !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,rgba(19,22,26,.96),rgba(13,15,18,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 10px 24px rgba(0,0,0,.16) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:16px !important;
  position:relative !important;
}
.tg-rating-item{display:flex !important;align-items:center !important;gap:6px !important;color:#a8b0ba !important;font-size:11px !important;white-space:nowrap !important}
.tg-rating-item strong{color:#f5f7f9 !important;font-size:15px !important;font-weight:760 !important;letter-spacing:-.02em !important}
.tg-rating-star{font-size:15px !important}
.tg-rating-sep{width:4px !important;height:4px !important;border-radius:50% !important;background:#3b4149 !important;flex:0 0 4px !important}
.tg-rating-arrow{right:15px !important;font-size:24px !important;color:#858f9a !important}
.tg-section-head{padding:0 4px 10px !important}
.tg-channel-card,.tg-info-card,.tg-tabs,.tg-gift-card,.tg-empty-card,.card.composer,.card.post{box-shadow:0 10px 30px rgba(0,0,0,.14)}
.tg-channel-card{min-height:96px !important;border-radius:22px !important;padding:14px 16px !important;background:#0a0d10 !important;border-color:rgba(255,255,255,.065)!important}
.tg-channel-avatar{width:60px !important;height:60px !important;background:#0d1013 !important}
.tg-channel-title{font-size:16px !important;font-weight:760 !important;color:#f4f6f8 !important}
.tg-channel-desc{font-size:12px !important;line-height:1.45 !important;color:#99a2ac !important;max-width:520px !important}
.tg-info-card{border-radius:22px !important;background:#0a0d10 !important;border-color:rgba(255,255,255,.065)!important}
.tg-info-row{min-height:82px !important}
.tg-info-copy strong{line-height:1.35 !important}
.tg-tabs{grid-template-columns:repeat(3,minmax(0,1fr)) !important;background:#121519 !important;border-radius:24px !important;padding:5px !important}
.tg-tab{height:46px !important;border-radius:16px !important;font-size:12.5px !important}
.tg-tab.is-active{background:#292d33 !important}
.tg-wall{margin-top:16px !important}
.tg-wall-title{font-size:14px !important;font-weight:700 !important;margin:0 4px 10px !important}
.card.composer,.card.post,.tg-empty-card,.tg-gift-card{background:linear-gradient(180deg,#13171a,#101316) !important;border-color:rgba(255,255,255,.06) !important;border-radius:24px !important}
@media (max-width: 760px){
  .tg-profile-hero{min-height:372px !important;padding:22px 14px 24px !important}
  .tg-avatar-wrap{width:116px !important}
  .tg-avatar{width:116px !important;height:116px !important;font-size:38px !important}
  .tg-nick{font-size:26px !important}
  .tg-rating{width:calc(100% - 28px) !important;height:48px !important;margin:0 auto 14px !important;padding:0 34px 0 12px !important;gap:9px !important}
  .tg-rating-item{font-size:9.5px !important;gap:4px !important}
  .tg-rating-item strong{font-size:13px !important}
  .tg-rating-star{font-size:13px !important}
  .tg-rating-sep{width:3px !important;height:3px !important;flex-basis:3px !important}
  .tg-rating-arrow{right:10px !important;font-size:22px !important}
  .tg-info-row{min-height:76px !important}
}

/* v270 — profile background continues through content cards */
.profile-page{
  --profile-bg:none;
}
.tg-channel-card,
.tg-info-card,
.tg-tabs,
.tg-gift-card,
.tg-empty-card,
.card.composer,
.card.post{
  background-color:#12161a !important;
  background-image:
    linear-gradient(180deg,rgba(12,15,18,.84),rgba(10,13,16,.90)),
    var(--profile-bg) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  border:1px solid rgba(255,255,255,.065) !important;
  backdrop-filter:blur(14px) saturate(108%) !important;
  -webkit-backdrop-filter:blur(14px) saturate(108%) !important;
}
.tg-tabs{
  background-image:
    linear-gradient(180deg,rgba(12,15,18,.88),rgba(10,13,16,.92)),
    var(--profile-bg) !important;
}
.profile-page[data-profile-bg-type="image"] .tg-channel-card,
.profile-page[data-profile-bg-type="image"] .tg-info-card,
.profile-page[data-profile-bg-type="image"] .tg-tabs,
.profile-page[data-profile-bg-type="image"] .tg-gift-card,
.profile-page[data-profile-bg-type="image"] .tg-empty-card,
.profile-page[data-profile-bg-type="image"] .card.composer,
.profile-page[data-profile-bg-type="image"] .card.post{
  background-image:
    linear-gradient(180deg,rgba(8,11,14,.82),rgba(7,9,12,.90)),
    var(--profile-bg) !important;
}


/* v273: rating row without capsule */
.tg-rating{
  width:100% !important;
  height:48px !important;
  margin:0 0 16px !important;
  padding:0 34px 0 4px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  position:relative !important;
}
.tg-rating-item{
  font-size:11.5px !important;
  gap:6px !important;
}
.tg-rating-item strong{
  font-size:15.5px !important;
}
.tg-rating-star{font-size:16px !important}
.tg-rating-sep{
  width:4px !important;
  height:4px !important;
  border-radius:50% !important;
  background:#3b4149 !important;
  flex:0 0 4px !important;
}
.tg-rating-arrow{
  right:4px !important;
  font-size:24px !important;
}
@media(max-width:760px){
  .tg-rating{
    height:44px !important;
    margin:0 0 12px !important;
    padding:0 30px 0 2px !important;
    gap:8px !important;
    justify-content:flex-start !important;
  }
  .tg-rating-item{font-size:9.8px !important;gap:4px !important}
  .tg-rating-item strong{font-size:13px !important}
  .tg-rating-star{font-size:13px !important}
  .tg-rating-arrow{right:2px !important;font-size:22px !important}
}


/* v274: move rating into hero instead of separate capsule */
.tg-followers{display:none !important;}
.tg-rating{display:none !important;}
.tg-profile-hero{padding-bottom:26px !important;}
.tg-hero-rating-line{
  position:relative;
  z-index:2;
  margin:14px auto 0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  min-height:28px;
  padding:0 34px;
  color:#aab2bc;
}
.tg-hero-rating-item{
  display:flex;
  align-items:center;
  gap:8px;
  color:#aab2bc;
  font-size:13px;
  white-space:nowrap;
}
.tg-hero-rating-item strong{
  color:#f5f7f9;
  font-size:17px;
  font-weight:760;
  letter-spacing:-.02em;
}
.tg-hero-rating-sep{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#3b4149;
  flex:0 0 5px;
}
.tg-hero-rating-arrow{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  color:#8d96a1;
  font-size:26px;
  line-height:1;
  font-weight:300;
}
@media(max-width:760px){
  .tg-profile-hero{padding-bottom:20px !important;}
  .tg-hero-rating-line{
    margin-top:12px !important;
    justify-content:flex-start;
    gap:8px;
    padding:0 24px 0 0;
  }
  .tg-hero-rating-item{font-size:10.5px;gap:5px;}
  .tg-hero-rating-item strong{font-size:14px;}
  .tg-hero-rating-sep{width:4px;height:4px;flex-basis:4px;}
  .tg-hero-rating-arrow{right:0;font-size:22px;}
}


/* v275: no profile backdrop until user explicitly chooses one */
.profile-page{--profile-bg:none;}
.tg-profile-hero{background:#000 !important;}
.tg-profile-hero::after{background:var(--profile-bg,none) !important;}
.profile-page[data-profile-bg-type="none"] .tg-profile-hero::before{
  background:none !important;
}
.profile-page[data-profile-bg-type="none"] .tg-channel-card,
.profile-page[data-profile-bg-type="none"] .tg-info-card,
.profile-page[data-profile-bg-type="none"] .tg-tabs,
.profile-page[data-profile-bg-type="none"] .tg-gift-card,
.profile-page[data-profile-bg-type="none"] .tg-empty-card,
.profile-page[data-profile-bg-type="none"] .card.composer,
.profile-page[data-profile-bg-type="none"] .card.post{
  background-image:none !important;
}


/* v276 — no profile frame when no custom background */
.profile-page:not(.has-custom-profile-bg) .tg-profile-hero{
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.profile-page:not(.has-custom-profile-bg) .tg-profile-hero::after{
  border-radius:0 !important;
}
.profile-page.has-custom-profile-bg .tg-profile-hero{
  border:1px solid rgba(255,255,255,.055) !important;
  border-radius:34px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
}
@media(max-width:760px){
  .profile-page.has-custom-profile-bg .tg-profile-hero{border-radius:26px !important}
}


/* v277: accumulated rating label + money icon */
.tg-rating-money-icon{
  width:32px;
  height:22px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 0 8px rgba(214,61,255,.18));
}
@media(max-width:760px){
  .tg-rating-money-icon{width:26px;height:18px}
}


/* v278: top month icon */
.tg-rating-top-icon{
  width:28px;
  height:28px;
  object-fit:contain;
  flex:0 0 28px;
  filter:drop-shadow(0 0 8px rgba(41,255,96,.18));
}
@media(max-width:760px){
  .tg-rating-top-icon{width:23px;height:23px;flex-basis:23px}
}

/* v280 — when profile background is not set, cards are border-only */
.profile-page[data-profile-bg-type="none"] .tg-channel-card,
.profile-page[data-profile-bg-type="none"] .tg-info-card,
.profile-page[data-profile-bg-type="none"] .tg-tabs,
.profile-page[data-profile-bg-type="none"] .tg-gift-card,
.profile-page[data-profile-bg-type="none"] .tg-empty-card,
.profile-page[data-profile-bg-type="none"] .card.composer,
.profile-page[data-profile-bg-type="none"] .card.post{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border:1px solid rgba(255,255,255,.075) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.profile-page[data-profile-bg-type="none"] .tg-tab{
  background:transparent !important;
}
.profile-page[data-profile-bg-type="none"] .tg-tab.is-active{
  background:rgba(255,255,255,.055) !important;
  box-shadow:none !important;
}
.profile-page[data-profile-bg-type="none"] .tg-channel-avatar,
.profile-page[data-profile-bg-type="none"] .tg-info-icon{
  background:transparent !important;
}

/* v282: remove status + archive */
.tg-tabs{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}


/* v287 meaningful personal card */
.tg-channel-day--online{
  color:#53db86 !important;
  font-weight:700 !important;
  font-size:10.5px !important;
}

/* v288 — photo icon for “about me” */
.tg-info-icon--photo{overflow:hidden;padding:0!important;background:transparent!important;border-color:rgba(255,255,255,.10)!important;}
.tg-info-icon--photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit;}

/* v293 — text moved closer to the photo, edit capsules removed */
.tg-info-row:has(.tg-info-icon--photo){
  grid-template-columns:54px 1fr 34px;
  gap:6px!important;
  min-height:84px;
}
.tg-info-row:has(.tg-info-icon--photo) .tg-info-copy{
  margin-left:-10px;
}
.tg-info-row:has(.tg-info-icon--photo) .tg-info-copy span,
.tg-info-row:has(.tg-info-icon--photo) .tg-info-copy strong{
  padding-left:0!important;
}
.tg-info-icon--photo{
  position:relative;
  width:50px!important;
  height:50px!important;
  border-radius:15px!important;
  overflow:hidden;
  padding:0!important;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.12)!important;
  background:transparent!important;
  appearance:none;
  -webkit-appearance:none;
}
.tg-info-icon--photo img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;transition:transform .18s ease}
.tg-info-icon--photo:hover img{transform:scale(1.045)}
.tg-about-photo-edit{display:none!important}
.about-photo-modal{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.66);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.about-photo-modal[hidden]{display:none!important}
.about-photo-sheet{width:min(470px,100%);padding:18px;border:1px solid rgba(255,255,255,.10);border-radius:26px;background:#090b0e;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.about-photo-sheet__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px;color:#f3f5f7;font-size:15px}
.about-photo-close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.07);color:#fff;font-size:22px;cursor:pointer}
.about-photo-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.about-photo-option{position:relative;aspect-ratio:1;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;padding:0;background:#111;cursor:pointer}
.about-photo-option img{width:100%;height:100%;object-fit:cover;display:block}
.about-photo-option.is-selected{border-color:rgba(88,184,255,.92);box-shadow:0 0 0 2px rgba(88,184,255,.16)}
@media(max-width:760px){
  .tg-info-row:has(.tg-info-icon--photo){grid-template-columns:50px 1fr 30px;gap:5px!important;min-height:78px}
  .tg-info-row:has(.tg-info-icon--photo) .tg-info-copy{margin-left:-8px}
  .tg-info-icon--photo{width:44px!important;height:44px!important;border-radius:13px!important}
  .about-photo-options{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.about-photo-options--five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:760px){.about-photo-options--five{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* v294 — hard alignment fix + no edit capsules */
.tg-info-card .tg-info-row:has(.tg-info-icon--photo){
  grid-template-columns:52px minmax(0,1fr) 36px !important;
  column-gap:14px !important;
  min-height:82px !important;
}
.tg-info-card .tg-info-row:has(.tg-info-icon--photo) .tg-info-copy{
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  align-self:center !important;
}
.tg-info-card .tg-info-row:has(.tg-info-icon--photo) .tg-info-copy span,
.tg-info-card .tg-info-row:has(.tg-info-icon--photo) .tg-info-copy strong{
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
}
.tg-info-card .tg-info-icon--photo{
  width:48px !important;
  height:48px !important;
  border-radius:13px !important;
  margin:0 !important;
  justify-self:start !important;
}
.tg-about-photo-edit{display:none !important;visibility:hidden !important;width:0 !important;height:0 !important;}
@media(max-width:760px){
  .tg-info-card .tg-info-row:has(.tg-info-icon--photo){
    grid-template-columns:48px minmax(0,1fr) 30px !important;
    column-gap:12px !important;
    min-height:76px !important;
  }
  .tg-info-card .tg-info-icon--photo{width:44px !important;height:44px !important;border-radius:12px !important;}
}


/* v295 — working avatar picker */
.tg-avatar.has-photo{background-repeat:no-repeat!important;background-size:cover!important;background-position:center!important;}
.tg-avatar-add{cursor:pointer!important;z-index:4!important;}


/* v296 — reliable avatar picker */
.tg-avatar{overflow:hidden;position:relative;}
.tg-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit;}
.tg-avatar span{display:grid;place-items:center;width:100%;height:100%;}
.tg-avatar.has-photo{background:none!important;font-size:0!important;}
.tg-avatar.has-photo span{display:none!important;}
.tg-avatar-add{display:grid!important;place-items:center;cursor:pointer!important;z-index:5!important;}
.avatar-modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap;}


/* v297 — wall preview in personal section */
.tg-wall-preview{cursor:pointer;}
.tg-wall-preview:hover{border-color:rgba(255,255,255,.13)!important;}
.tg-wall-preview-meta{margin-top:4px;color:#717a84;font-size:10px;line-height:1.2;}
.tg-wall-preview .tg-channel-desc{margin-top:4px;font-style:normal;color:#aeb5bd;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tg-wall-preview-arrow{font-size:28px!important;color:#606873!important;line-height:1;}


/* v299 — wall image lives in the left avatar slot */
.tg-wall-preview{display:grid!important;grid-template-columns:60px minmax(0,1fr) 20px!important;align-items:center!important;gap:14px!important;}
.tg-wall-preview-copy{min-width:0;}
.tg-wall-thumb{overflow:hidden!important;border-radius:16px!important;background:#0d1013!important;}
.tg-wall-thumb img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit;}
.tg-wall-preview .tg-channel-desc{max-width:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tg-wall-preview-arrow{justify-self:end;}
@media(max-width:760px){
  .tg-wall-preview{grid-template-columns:52px minmax(0,1fr) 16px!important;gap:10px!important;}
  .tg-wall-thumb{border-radius:14px!important;}
  .tg-wall-preview .tg-channel-desc{font-size:11.5px!important;}
}


/* v300 — wall counters */
.tg-wall-title-line{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;}
.tg-wall-post-count{font-size:11px;font-weight:600;color:#77818c;white-space:nowrap;}
.tg-wall-new-count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:20px;padding:0 7px;border-radius:999px;background:rgba(68,199,116,.12);color:#55dc87;font-size:10px;font-weight:800;line-height:1;}
@media(max-width:760px){
  .tg-wall-title-line{gap:6px;}
  .tg-wall-post-count{font-size:10px;}
  .tg-wall-new-count{min-width:23px;height:18px;padding:0 6px;font-size:9px;}
}


/* v313 — selectable post reactions */
.tg-wall-preview{grid-template-columns:60px minmax(0,1fr) auto!important;}
.tg-wall-reactions{position:relative;justify-self:end;display:flex;align-items:center;}
.tg-wall-reaction-current{min-width:46px;height:34px;padding:0 6px;border:0;border-radius:999px;background:transparent;color:#98a0aa;display:inline-flex;align-items:center;justify-content:center;gap:4px;cursor:pointer;transition:transform .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease;}
.tg-wall-reaction-current:hover{transform:translateY(-1px);color:#ffffff;background:rgba(255,255,255,.045);}
.tg-wall-reaction-current.is-empty{width:34px;min-width:34px;padding:0;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.03);}
.tg-wall-reaction-current.is-empty:hover{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.06);}
.tg-wall-reaction-plus{font-size:22px;line-height:1;font-weight:400;transform:translateY(-1px);}
.tg-wall-reaction-current-img{width:24px;height:24px;object-fit:contain;display:block;filter:drop-shadow(0 0 0 rgba(255,255,255,0));transition:transform .18s ease,filter .18s ease;}
.tg-wall-reaction-count{min-width:24px;font-size:13px;font-weight:800;color:#d9dde2;letter-spacing:-.02em;}
.tg-wall-reaction-current.is-active .tg-wall-reaction-count{color:#f4f6f8;}
.tg-wall-reaction-current.is-active .tg-wall-reaction-current-img{filter:drop-shadow(0 0 6px rgba(255,255,255,.08));animation:wallReactionGlow 1.8s ease-in-out infinite alternate;}
.tg-wall-reaction-current.is-pop .tg-wall-reaction-current-img{animation:wallReactionPop .34s cubic-bezier(.2,.9,.25,1.35),wallReactionGlow 1.8s ease-in-out .34s infinite alternate;}
.tg-wall-reaction-picker{position:absolute;right:0;top:calc(100% + 10px);z-index:40;display:grid;grid-template-columns:repeat(5,40px);gap:8px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(10,13,18,.98);box-shadow:0 18px 42px rgba(0,0,0,.42);}
.tg-wall-reaction-option{width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.03);display:grid;place-items:center;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;}
.tg-wall-reaction-option img{width:28px;height:28px;object-fit:contain;display:block;}
.tg-wall-reaction-option:hover{transform:translateY(-1px) scale(1.04);border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.07);}
.tg-wall-reaction-option.is-selected{border-color:rgba(97,205,255,.7);background:rgba(97,205,255,.08);box-shadow:0 0 0 1px rgba(97,205,255,.18) inset;}
@keyframes wallReactionPop{0%{transform:scale(.88)}52%{transform:scale(1.1)}100%{transform:scale(1)}}
@keyframes wallReactionGlow{from{filter:drop-shadow(0 0 2px rgba(255,255,255,.02));}to{filter:drop-shadow(0 0 8px rgba(255,255,255,.12));}}
@media(max-width:760px){.tg-wall-preview{grid-template-columns:52px minmax(0,1fr) auto!important;}.tg-wall-reaction-current{min-width:42px;height:30px;padding:0 5px;gap:3px;}.tg-wall-reaction-current.is-empty{width:30px;min-width:30px;}.tg-wall-reaction-plus{font-size:17px;}.tg-wall-reaction-current-img{width:21px;height:21px;}.tg-wall-reaction-count{min-width:22px;font-size:12px;}.tg-wall-reaction-picker{grid-template-columns:repeat(5,34px);gap:6px;padding:8px;border-radius:14px;right:-2px;}.tg-wall-reaction-option{width:34px;height:34px;border-radius:10px;}.tg-wall-reaction-option img{width:24px;height:24px;}}
@media(prefers-reduced-motion:reduce){.tg-wall-reaction-current,.tg-wall-reaction-current-img,.tg-wall-reaction-option{animation:none!important;transition:none!important;}}












/* v308 — minimal header controls, no capsules/buttons visually */
.tg-profile-actions{
  left:20px!important;
  right:20px!important;
  top:18px!important;
  pointer-events:none;
}
.tg-profile-actions .tg-round-btn,
.tg-profile-actions .tg-edit-btn{
  pointer-events:auto;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  color:rgba(245,247,249,.82)!important;
  cursor:pointer;
  transition:opacity .16s ease, transform .16s ease, color .16s ease!important;
}
.tg-profile-actions .tg-round-btn svg,
.tg-profile-actions .tg-edit-btn svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tg-profile-actions .tg-edit-btn svg{width:21px;height:21px}
.tg-profile-actions .tg-round-btn:hover,
.tg-profile-actions .tg-edit-btn:hover{
  color:#fff!important;
  opacity:1;
  transform:scale(1.06);
}
.tg-profile-actions .tg-round-btn:active,
.tg-profile-actions .tg-edit-btn:active{transform:scale(.94)}
.tg-profile-actions .tg-round-btn:focus-visible,
.tg-profile-actions .tg-edit-btn:focus-visible{
  outline:1px solid rgba(255,255,255,.32);
  outline-offset:4px;
  border-radius:4px!important;
}
@media(max-width:760px){
  .tg-profile-actions{left:12px!important;right:12px!important;top:12px!important}
  .tg-profile-actions .tg-round-btn,
  .tg-profile-actions .tg-edit-btn{width:30px!important;height:30px!important;min-width:30px!important}
  .tg-profile-actions .tg-round-btn svg{width:23px;height:23px}
  .tg-profile-actions .tg-edit-btn svg{width:20px;height:20px}
}

/* rating icons — current */
.tg-hero-rating-item--money{gap:10px!important;}
.tg-rating-money-icon{width:34px!important;height:30px!important;object-fit:contain!important;filter:drop-shadow(0 0 4px rgba(57,224,229,.18))!important;}
.tg-rating-top-icon{width:34px!important;height:30px!important;flex:0 0 34px!important;object-fit:contain!important;filter:drop-shadow(0 0 5px rgba(255,196,66,.18))!important;}
@media(max-width:760px){.tg-rating-money-icon{width:29px!important;height:25px!important}.tg-rating-top-icon{width:29px!important;height:25px!important;flex-basis:29px!important}}

/* v314 — reaction picker hidden state fix */
.tg-wall-reaction-picker[hidden]{display:none!important;}

/* v315 — multiple visible reaction counters */
.tg-wall-reactions{display:flex!important;align-items:center!important;gap:6px!important;position:relative!important;justify-self:end!important;}
.tg-wall-reaction-list{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end;}
.tg-wall-reaction-chip{height:30px;padding:0 8px 0 5px;border:1px solid rgba(255,255,255,.07);border-radius:999px;background:rgba(255,255,255,.035);color:#aeb5be;display:inline-flex;align-items:center;gap:4px;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;}
.tg-wall-reaction-chip img{width:21px;height:21px;object-fit:contain;display:block;}
.tg-wall-reaction-chip span{font-size:12px;font-weight:800;min-width:13px;text-align:center;}
.tg-wall-reaction-chip:hover{transform:translateY(-1px);background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.14);}
.tg-wall-reaction-chip.is-mine{border-color:rgba(97,205,255,.48);background:rgba(97,205,255,.08);color:#dff6ff;box-shadow:0 0 0 1px rgba(97,205,255,.08) inset;}
.tg-wall-reaction-chip.is-pop{animation:wallReactionChipPop .3s cubic-bezier(.2,.9,.25,1.35);}
.tg-wall-reaction-add{width:30px;height:30px;padding:0;border:1px solid rgba(255,255,255,.09);border-radius:50%;background:rgba(255,255,255,.025);color:#9aa2ac;font-size:17px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease,color .15s ease;}
.tg-wall-reaction-add:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.17);background:rgba(255,255,255,.06);color:#fff;}
@keyframes wallReactionChipPop{0%{transform:scale(.88)}55%{transform:scale(1.1)}100%{transform:scale(1)}}
@media(max-width:760px){.tg-wall-reactions{gap:4px!important}.tg-wall-reaction-list{gap:4px}.tg-wall-reaction-chip{height:27px;padding:0 6px 0 4px;gap:3px}.tg-wall-reaction-chip img{width:18px;height:18px}.tg-wall-reaction-chip span{font-size:11px}.tg-wall-reaction-add{width:27px;height:27px;font-size:17px}}


/* v332 — Personal / AI / Chats are views inside one persistent workspace */
.chats-workspace{
  width:100%;
  max-width:860px;
  min-height:100%;
  margin:0 auto;
  background:#000;
}
.chats-workspace[hidden]{display:none!important}
.chats-workspace .dialogs-panel{
  width:100%!important;
  max-width:none!important;
  min-height:calc(100vh - 56px)!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.chats-view-active .content-brand{display:none!important}
body.chats-view-active .main,
body.chats-view-active .ksan-main{overflow-y:auto!important}
@media(max-width:760px){
  .chats-workspace{max-width:none;padding-bottom:74px}
  .chats-workspace .dialogs-panel{min-height:calc(100dvh - 110px)!important}
}

/* v359 — profile wall preview uses one lightning reaction only */
.tg-wall-lightning-simple{justify-self:end;height:32px;padding:0 6px;border:0;background:transparent;color:#8f98a3;display:inline-flex;align-items:center;gap:4px;cursor:pointer;font:800 12px Geist,system-ui,sans-serif;transition:transform .16s ease,color .16s ease}
.tg-wall-lightning-simple img{width:23px;height:23px;object-fit:contain;display:block;transition:filter .16s ease,transform .16s ease}.tg-wall-lightning-simple:hover{transform:translateY(-1px);color:#d8b93a}.tg-wall-lightning-simple.is-on{color:#f0c13e}.tg-wall-lightning-simple.is-on img{filter:drop-shadow(0 0 7px rgba(255,208,51,.35));transform:scale(1.05)}

/* Lightweight workspace fallbacks used by the shared sidebar. */
.simple-workspace-view{min-height:calc(100dvh - 48px);padding:24px;box-sizing:border-box}
.simple-workspace-view[hidden]{display:none!important}
.simple-workspace-card{max-width:760px;margin:0 auto;padding:28px;border-radius:24px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.055);color:#f4f6f8}
.simple-workspace-card>span{display:block;margin-bottom:8px;color:#7f8994;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.simple-workspace-card h1{margin:0 0 10px;font-size:30px}.simple-workspace-card p{margin:0;color:#9aa3ad;line-height:1.55}
@media(max-width:760px){.simple-workspace-view{padding:18px 12px 96px}.simple-workspace-card{padding:22px}}


/* v435 — left navigation temporarily removed */
.ksan-shell{width:100%;max-width:none;margin:0 auto;padding:24px 22px 48px;box-sizing:border-box;display:block!important}
.ksan-main{width:min(1040px,100%);margin:0 auto!important;min-width:0}
@media(max-width:760px){.ksan-shell{padding:0!important}.ksan-main{width:100%;margin:0!important}}

/* v438 — slightly smaller dark bento */
.profile-bento{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  grid-template-rows:132px 132px;
  gap:8px;
  margin-top:12px;
}
.profile-bento__item{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
  border-radius:19px;
  background:#101317;
  color:#f4f6f8;
  padding:0;
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.profile-bento__item:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.13);background:#14181d}
.profile-bento__item:active{transform:scale(.992)}
.profile-bento__item--journal{grid-column:1;grid-row:1}
.profile-bento__item--ai{grid-column:1;grid-row:2}
.profile-bento__item--wide{grid-column:2;grid-row:1 / span 2;background:#15191e}
.profile-bento__visual{position:absolute;display:grid;place-items:center}
.profile-bento__visual--journal{
  inset:10px 12px 32px;
  border-radius:16px;
  background:
    radial-gradient(circle at 22% 18%,rgba(255,102,179,.9),transparent 42%),
    radial-gradient(circle at 82% 20%,rgba(94,132,255,.92),transparent 48%),
    linear-gradient(145deg,#ef5797 0%,#8a6de8 58%,#617be9 100%);
  box-shadow:0 12px 28px rgba(82,74,188,.2);
  transform:rotate(1.5deg);
}
.profile-bento__journal-mark{font:700 36px/1 Geist,system-ui,sans-serif;color:#fff;letter-spacing:-4px;text-shadow:0 0 18px rgba(255,255,255,.24)}
.profile-bento__visual--ai{inset:10px 12px 32px;border-radius:16px;background:#181c21}
.profile-bento__visual--ai::before{content:"";position:absolute;width:68px;height:68px;border-radius:50%;background:radial-gradient(circle,rgba(126,142,255,.22),rgba(126,142,255,0) 70%)}
.profile-bento__visual--ai svg{width:52px;height:52px;fill:none;stroke:#d9dde3;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 6px 14px rgba(0,0,0,.28))}
.profile-bento__wide-copy{position:absolute;z-index:2;left:17px;top:17px;display:flex;flex-direction:column;gap:3px}
.profile-bento__wide-copy strong{font-size:17px;line-height:1;font-weight:760;letter-spacing:-.35px}
.profile-bento__wide-copy small{font-size:12px;line-height:1.3;color:#8f98a3}
.profile-bento__visual--shop{left:14px;right:14px;bottom:24px;height:148px}
.profile-bento__shop-box{position:absolute;bottom:14px;width:118px;height:82px;border-radius:14px 14px 20px 20px;background:linear-gradient(180deg,#3a414a,#20252b);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 20px 32px rgba(0,0,0,.3)}
.profile-bento__shop-box::before{content:"";position:absolute;left:-6px;right:-6px;top:-12px;height:22px;border-radius:10px;background:linear-gradient(180deg,#5d6670,#373e46);box-shadow:0 5px 12px rgba(0,0,0,.3)}
.profile-bento__shop-bag{position:absolute;bottom:2px;right:20px;width:54px;height:61px;border-radius:14px 14px 18px 18px;background:linear-gradient(150deg,#f06089,#765fe7);display:grid;place-items:center;font-size:22px;font-weight:800;color:white;transform:rotate(-7deg);box-shadow:0 16px 22px rgba(0,0,0,.26)}
.profile-bento__shop-bag::before{content:"";position:absolute;top:-12px;width:26px;height:21px;border:4px solid rgba(255,255,255,.85);border-bottom:0;border-radius:14px 14px 0 0}
.profile-bento__label{position:absolute;left:0;right:0;bottom:9px;text-align:center;font-size:13px;line-height:1;font-weight:650;color:#c8ced6}
.profile-bento__item--wide .profile-bento__label{display:none}

@media(max-width:760px){
  .profile-bento{grid-template-columns:1fr 1fr;grid-template-rows:110px 156px;gap:7px;margin:10px 10px 0}
  .profile-bento__item{border-radius:16px}
  .profile-bento__item--journal{grid-column:1;grid-row:1}
  .profile-bento__item--ai{grid-column:2;grid-row:1}
  .profile-bento__item--wide{grid-column:1 / -1;grid-row:2}
  .profile-bento__visual--journal,.profile-bento__visual--ai{inset:8px 9px 27px;border-radius:14px}
  .profile-bento__journal-mark{font-size:30px}
  .profile-bento__visual--ai svg{width:44px;height:44px}
  .profile-bento__wide-copy{left:14px;top:14px}
  .profile-bento__wide-copy strong{font-size:17px}
  .profile-bento__wide-copy small{font-size:12px}
  .profile-bento__visual--shop{height:104px;bottom:2px}
  .profile-bento__shop-box{width:104px;height:65px}
  .profile-bento__shop-bag{width:46px;height:53px;right:30px}
  .profile-bento__label{bottom:7px;font-size:12px}
}

/* v439 — labels outside cards, matching reference composition */
.profile-bento{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  grid-template-rows:142px 142px;
  gap:10px 12px;
  margin-top:12px;
}
.profile-bento__entry{
  min-width:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:7px;
}
.profile-bento__entry--journal{grid-column:1;grid-row:1}
.profile-bento__entry--ai{grid-column:1;grid-row:2}
.profile-bento__entry--wide{grid-column:2;grid-row:1 / span 2}
.profile-bento__entry .profile-bento__item{
  width:100%;
  height:100%;
  min-height:0;
  border-radius:18px;
}
.profile-bento__entry--wide .profile-bento__item{background:#15191e}
.profile-bento__entry .profile-bento__visual--journal,
.profile-bento__entry .profile-bento__visual--ai{
  inset:10px 12px;
}
.profile-bento__entry .profile-bento__visual--shop{
  left:14px;
  right:14px;
  top:12px;
  bottom:12px;
  height:auto;
}
.profile-bento__label{
  position:static;
  display:block!important;
  padding:0 2px;
  text-align:left;
  font-size:13px;
  line-height:1.25;
  font-weight:600;
  color:#aeb6c0;
  white-space:nowrap;
}
.profile-bento__wide-copy{display:none!important}

@media(max-width:760px){
  .profile-bento{
    grid-template-columns:1fr 1fr;
    grid-template-rows:122px 170px;
    gap:9px 8px;
    margin:10px 10px 0;
  }
  .profile-bento__entry--journal{grid-column:1;grid-row:1}
  .profile-bento__entry--ai{grid-column:2;grid-row:1}
  .profile-bento__entry--wide{grid-column:1 / -1;grid-row:2}
  .profile-bento__entry{gap:6px}
  .profile-bento__entry .profile-bento__item{border-radius:15px}
  .profile-bento__entry .profile-bento__visual--journal,
  .profile-bento__entry .profile-bento__visual--ai{inset:8px 9px}
  .profile-bento__entry .profile-bento__visual--shop{top:8px;bottom:8px}
  .profile-bento__label{font-size:12px;padding-left:1px}
}

/* v440 — rebuild from the provided asymmetric reference */
.profile-bento{
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  grid-template-rows:128px 128px;
  column-gap:16px;
  row-gap:14px;
  margin-top:14px;
  align-items:stretch;
}
.profile-bento__entry{
  min-width:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:8px;
}
.profile-bento__entry--journal{grid-column:1;grid-row:1}
.profile-bento__entry--ai{grid-column:1;grid-row:2}
.profile-bento__entry--wide{grid-column:2;grid-row:1 / span 2}

.profile-bento__entry .profile-bento__item{
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
  padding:0;
  border:0;
  border-radius:24px;
  background:#171a1f;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
}
.profile-bento__entry .profile-bento__item:hover{
  transform:translateY(-1px);
  background:#1b1f24;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);
}
.profile-bento__entry .profile-bento__item:active{transform:scale(.992)}

/* left top: a horizontal capsule with the object crossing its middle */
.profile-bento__entry--journal .profile-bento__item{
  border-radius:999px;
  background:#181b20;
}
.profile-bento__entry .profile-bento__visual--journal{
  inset:0;
  margin:auto;
  width:52%;
  height:112%;
  border-radius:22px;
  transform:rotate(2deg);
  background:
    radial-gradient(circle at 18% 18%,rgba(255,103,179,.96),transparent 44%),
    radial-gradient(circle at 88% 12%,rgba(95,133,255,.95),transparent 48%),
    linear-gradient(145deg,#ef5797 0%,#8a6de8 56%,#617be9 100%);
  box-shadow:0 18px 35px rgba(79,68,181,.26);
}
.profile-bento__journal-mark{
  font-size:31px;
  letter-spacing:-3px;
}

/* left bottom: large object sitting on a clean dark surface */
.profile-bento__entry .profile-bento__visual--ai{
  inset:0;
  border-radius:24px;
  background:
    radial-gradient(circle at 50% 68%,rgba(111,122,255,.14),transparent 39%),
    linear-gradient(180deg,#1a1e23,#171a1f);
}
.profile-bento__entry .profile-bento__visual--ai::before{
  width:96px;
  height:96px;
  background:radial-gradient(circle,rgba(126,142,255,.20),rgba(126,142,255,0) 70%);
}
.profile-bento__entry .profile-bento__visual--ai svg{
  width:66px;
  height:66px;
  stroke-width:4.4;
}

/* right: true feature card — copy inside top-left, object anchored low */
.profile-bento__entry--wide .profile-bento__item{
  border-radius:26px;
  background:linear-gradient(180deg,#1b1e23 0%,#171a1f 100%);
}
.profile-bento__wide-copy{
  display:flex!important;
  position:absolute;
  z-index:3;
  left:22px;
  top:20px;
  flex-direction:column;
  gap:5px;
  pointer-events:none;
}
.profile-bento__wide-copy strong{
  color:#f7f8fa;
  font-size:22px;
  line-height:1.02;
  font-weight:760;
  letter-spacing:-.55px;
}
.profile-bento__wide-copy small{
  max-width:130px;
  color:#929aa5;
  font-size:14px;
  line-height:1.25;
}
.profile-bento__entry .profile-bento__visual--shop{
  left:16px;
  right:12px;
  top:90px;
  bottom:8px;
  height:auto;
  place-items:end center;
}
.profile-bento__shop-box{
  bottom:13px;
  width:146px;
  height:103px;
  border-radius:16px 16px 24px 24px;
  background:linear-gradient(180deg,#454d56,#242a30);
}
.profile-bento__shop-box::before{
  left:-7px;
  right:-7px;
  top:-14px;
  height:25px;
}
.profile-bento__shop-bag{
  bottom:0;
  right:14px;
  width:62px;
  height:70px;
  border-radius:15px 15px 20px 20px;
  font-size:24px;
}

/* captions are outside exactly like the reference */
.profile-bento__label{
  position:static;
  display:block!important;
  padding:0 2px;
  text-align:center;
  font-size:13px;
  line-height:1.2;
  font-weight:590;
  color:#9da5af;
  white-space:nowrap;
}

@media(max-width:760px){
  .profile-bento{
    grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
    grid-template-rows:104px 104px;
    column-gap:10px;
    row-gap:12px;
    margin:10px 10px 0;
  }
  .profile-bento__entry{gap:6px}
  .profile-bento__entry .profile-bento__item{border-radius:19px}
  .profile-bento__entry--journal .profile-bento__item{border-radius:999px}
  .profile-bento__entry .profile-bento__visual--journal{width:55%;height:114%;border-radius:18px}
  .profile-bento__journal-mark{font-size:25px}
  .profile-bento__entry .profile-bento__visual--ai{border-radius:19px}
  .profile-bento__entry .profile-bento__visual--ai svg{width:52px;height:52px}
  .profile-bento__entry--wide .profile-bento__item{border-radius:21px}
  .profile-bento__wide-copy{left:15px;top:14px;gap:3px}
  .profile-bento__wide-copy strong{font-size:17px}
  .profile-bento__wide-copy small{font-size:11px;max-width:96px}
  .profile-bento__entry .profile-bento__visual--shop{left:8px;right:7px;top:66px;bottom:4px}
  .profile-bento__shop-box{width:102px;height:70px;bottom:8px}
  .profile-bento__shop-box::before{top:-10px;height:18px}
  .profile-bento__shop-bag{width:45px;height:51px;right:9px;font-size:18px}
  .profile-bento__label{font-size:11px}
}


/* v441 — wallet capsule from the supplied reference */
.profile-bento__entry--wallet{grid-column:1;grid-row:1}
.profile-bento__entry--journal{display:none!important}
.profile-bento__entry--wallet .profile-bento__wallet-card{
  border-radius:999px;
  background:#181b20;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 22px;
  color:#f5f7f9;
}
.profile-bento__entry--wallet .profile-bento__wallet-card:hover{
  background:#1c2025;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);
}
.profile-bento__wallet-balance{
  display:flex;
  align-items:baseline;
  gap:7px;
  white-space:nowrap;
  letter-spacing:-.02em;
}
.profile-bento__wallet-balance strong{
  font:600 27px/1 Geist,system-ui,sans-serif;
  color:#f6f7f9;
}
.profile-bento__wallet-balance em{
  font:650 15px/1 Geist,system-ui,sans-serif;
  color:#b5bdc7;
  font-style:normal;
  letter-spacing:.01em;
}
.profile-bento__wallet-plus{
  display:block;
  font:300 44px/1 Geist,system-ui,sans-serif;
  color:#f5f6f8;
  transform:translateY(-1px);
}

@media(max-width:760px){
  .profile-bento__entry--wallet{grid-column:1;grid-row:1}
  .profile-bento__entry--wallet .profile-bento__wallet-card{padding:0 15px}
  .profile-bento__wallet-balance{gap:5px}
  .profile-bento__wallet-balance strong{font-size:22px}
  .profile-bento__wallet-balance em{font-size:12px}
  .profile-bento__wallet-plus{font-size:36px}
}

/* v442 — KsanAI universal finder card */
.profile-bento__entry--ksanai .profile-bento__item{
  background:
    radial-gradient(circle at 74% 64%, rgba(76,124,255,.11), transparent 44%),
    linear-gradient(180deg,#1b1e23 0%,#15181d 100%);
}
.profile-bento__entry--ksanai .profile-bento__wide-copy{
  z-index:4;
  left:22px;
  right:18px;
  top:19px;
}
.profile-bento__entry--ksanai .profile-bento__wide-copy strong{
  font-size:23px;
  letter-spacing:-.65px;
}
.profile-bento__entry--ksanai .profile-bento__wide-copy small{
  max-width:170px;
  color:#9ca5b1;
  font-size:13px;
  line-height:1.27;
}
.profile-bento__visual--ksanai{
  position:absolute;
  z-index:2;
  left:5px;
  right:3px;
  top:82px;
  bottom:-5px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  pointer-events:none;
}
.profile-bento__visual--ksanai::before{
  content:"";
  position:absolute;
  left:12%;
  right:12%;
  bottom:2%;
  height:42%;
  background:radial-gradient(ellipse at center,rgba(80,126,255,.16),rgba(80,126,255,0) 72%);
  filter:blur(8px);
}
.profile-bento__visual--ksanai img{
  position:relative;
  z-index:1;
  display:block;
  width:116%;
  max-width:none;
  height:auto;
  object-fit:contain;
  object-position:center bottom;
  transform:translateY(2px);
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.34));
}
@media(max-width:760px){
  .profile-bento__entry--ksanai .profile-bento__wide-copy{left:15px;right:10px;top:13px}
  .profile-bento__entry--ksanai .profile-bento__wide-copy strong{font-size:17px}
  .profile-bento__entry--ksanai .profile-bento__wide-copy small{font-size:10.5px;max-width:112px;line-height:1.22}
  .profile-bento__visual--ksanai{left:2px;right:0;top:58px;bottom:-3px}
  .profile-bento__visual--ksanai img{width:118%}
}


/* v443 — keep KsanAI illustration as a compact object, like the supplied reference */
.profile-bento__visual--ksanai{
  left:0;
  right:0;
  top:88px;
  bottom:10px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
}
.profile-bento__visual--ksanai::before{
  left:20%;
  right:20%;
  bottom:0;
  height:34%;
  opacity:.72;
}
.profile-bento__visual--ksanai img{
  width:78%;
  max-width:205px;
  max-height:86%;
  height:auto;
  object-fit:contain;
  object-position:center bottom;
  transform:none;
}
@media(max-width:760px){
  .profile-bento__visual--ksanai{
    left:0;
    right:0;
    top:62px;
    bottom:5px;
  }
  .profile-bento__visual--ksanai img{
    width:74%;
    max-width:145px;
    max-height:84%;
  }
}


/* v444 — rebalanced bento: closer to the supplied automotive reference */
.profile-bento{
  width:min(100%,760px);
  margin:14px auto 0;
  grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);
  grid-template-rows:96px 96px;
  column-gap:14px;
  row-gap:13px;
}
.profile-bento__entry{gap:7px}

.profile-bento__entry .profile-bento__item{
  border-radius:22px;
}

/* wallet: lighter, lower profile capsule */
.profile-bento__entry--wallet .profile-bento__wallet-card{
  padding:0 20px;
  border-radius:999px;
}
.profile-bento__wallet-balance strong{font-size:24px}
.profile-bento__wallet-balance em{font-size:13px}
.profile-bento__wallet-plus{font-size:39px}

/* My AI: no giant empty billboard */
.profile-bento__entry .profile-bento__visual--ai{
  border-radius:22px;
  background:
    radial-gradient(circle at 50% 66%,rgba(111,122,255,.12),transparent 42%),
    linear-gradient(180deg,#191d22,#171a1f);
}
.profile-bento__entry .profile-bento__visual--ai::before{
  width:76px;
  height:76px;
}
.profile-bento__entry .profile-bento__visual--ai svg{
  width:50px;
  height:50px;
  stroke-width:4.2;
}

/* KsanAI: compact copy + large physical object anchored to the floor */
.profile-bento__entry--wide .profile-bento__item{
  border-radius:24px;
}
.profile-bento__entry--ksanai .profile-bento__wide-copy{
  left:18px;
  top:17px;
  right:16px;
  gap:4px;
}
.profile-bento__entry--ksanai .profile-bento__wide-copy strong{
  font-size:20px;
  line-height:1;
  letter-spacing:-.45px;
}
.profile-bento__entry--ksanai .profile-bento__wide-copy small{
  max-width:155px;
  font-size:11.5px;
  line-height:1.28;
}
.profile-bento__visual--ksanai{
  left:12px;
  right:-8px;
  top:61px;
  bottom:-4px;
  align-items:flex-end;
  justify-content:flex-end;
  overflow:hidden;
}
.profile-bento__visual--ksanai::before{
  left:18%;
  right:4%;
  bottom:-4%;
  height:48%;
  opacity:.65;
}
.profile-bento__visual--ksanai img{
  width:78%;
  max-width:315px;
  max-height:96%;
  object-fit:contain;
  object-position:right bottom;
  transform:translate(0,1px);
}

.profile-bento__label{
  font-size:12px;
  font-weight:560;
  line-height:1.15;
  color:#929aa5;
}

@media(max-width:760px){
  .profile-bento{
    width:auto;
    margin:10px 10px 0;
    grid-template-columns:minmax(0,.44fr) minmax(0,.56fr);
    grid-template-rows:82px 82px;
    column-gap:9px;
    row-gap:10px;
  }
  .profile-bento__entry{gap:5px}
  .profile-bento__entry .profile-bento__item{border-radius:17px}
  .profile-bento__entry--wallet .profile-bento__wallet-card{
    padding:0 13px;
    border-radius:999px;
  }
  .profile-bento__wallet-balance strong{font-size:19px}
  .profile-bento__wallet-balance em{font-size:10px}
  .profile-bento__wallet-plus{font-size:31px}
  .profile-bento__entry .profile-bento__visual--ai{border-radius:17px}
  .profile-bento__entry .profile-bento__visual--ai svg{width:42px;height:42px}
  .profile-bento__entry--wide .profile-bento__item{border-radius:18px}
  .profile-bento__entry--ksanai .profile-bento__wide-copy{left:12px;top:11px;right:8px}
  .profile-bento__entry--ksanai .profile-bento__wide-copy strong{font-size:15px}
  .profile-bento__entry--ksanai .profile-bento__wide-copy small{font-size:9.5px;max-width:105px}
  .profile-bento__visual--ksanai{
    left:5px;
    right:-4px;
    top:47px;
    bottom:-2px;
  }
  .profile-bento__visual--ksanai img{
    width:82%;
    max-width:190px;
    max-height:98%;
  }
  .profile-bento__label{font-size:10.5px}
}

/* v445 — remove all decorative tile glow */
.profile-bento__entry .profile-bento__visual--ai{
  background:#181b20 !important;
}
.profile-bento__entry .profile-bento__visual--ai::before{
  display:none !important;
}
.profile-bento__visual--ksanai::before{
  display:none !important;
}


/* v446 — remove remaining tile lighting/gradients */
.profile-bento__entry--ksanai .profile-bento__item,
.profile-bento__entry .profile-bento__visual--ai,
.profile-bento__entry--wallet .profile-bento__wallet-card{
  background:#191c20 !important;
  background-image:none !important;
  box-shadow:none !important;
}

.profile-bento__entry--ksanai .profile-bento__item::before,
.profile-bento__entry--ksanai .profile-bento__item::after,
.profile-bento__entry .profile-bento__visual--ai::after,
.profile-bento__entry--wallet .profile-bento__wallet-card::before,
.profile-bento__entry--wallet .profile-bento__wallet-card::after{
  display:none !important;
  content:none !important;
}

/* keep only the lighting that is baked into the KsanAI PNG/WebP itself */
.profile-bento__visual--ksanai{
  background:none !important;
}
.profile-bento__visual--ksanai::before,
.profile-bento__visual--ksanai::after{
  display:none !important;
  content:none !important;
}


/* v447 — larger KsanAI object with new compressed source image */
.profile-bento__entry--ksanai .profile-bento__item{
  overflow:hidden;
}
.profile-bento__visual--ksanai{
  left:6px !important;
  right:-4px !important;
  top:52px !important;
  bottom:-2px !important;
  align-items:flex-end !important;
  justify-content:flex-end !important;
}
.profile-bento__visual--ksanai img{
  width:92% !important;
  max-width:none !important;
  max-height:98% !important;
  object-fit:contain !important;
  object-position:right bottom !important;
  transform:translate(0,0) !important;
}
@media(max-width:760px){
  .profile-bento__visual--ksanai{
    left:2px !important;
    right:-2px !important;
    top:44px !important;
    bottom:-1px !important;
  }
  .profile-bento__visual--ksanai img{
    width:98% !important;
    max-height:100% !important;
  }
}

/* v448 — KsanAI illustration positioned like the supplied garage reference */
.profile-bento__visual--ksanai{
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  display:block !important;
}
.profile-bento__visual--ksanai img{
  position:absolute !important;
  width:auto !important;
  height:88% !important;
  max-width:none !important;
  max-height:none !important;
  right:5% !important;
  bottom:-9% !important;
  object-fit:contain !important;
  transform:none !important;
}
@media(max-width:760px){
  .profile-bento__visual--ksanai img{
    height:86% !important;
    right:1% !important;
    bottom:-8% !important;
  }
}


/* v449 — supplied image in the existing "Мой AI" tile */
.profile-bento__entry--ai .profile-bento__item{
  overflow:hidden;
}
.profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  overflow:hidden !important;
  background:#191c20 !important;
}
.profile-bento__visual--wall2010 img{
  position:absolute !important;
  width:92% !important;
  height:auto !important;
  max-width:none !important;
  max-height:none !important;
  left:50% !important;
  bottom:-4% !important;
  transform:translateX(-50%) !important;
  object-fit:contain !important;
}
@media(max-width:760px){
  .profile-bento__visual--wall2010 img{
    width:96% !important;
    bottom:-3% !important;
  }
}


/* v450 — Wall 2010 tile: centered and bottom-aligned like the supplied reference */
.profile-bento__entry--ai .profile-bento__item{
  overflow:hidden !important;
}
.profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#191c20 !important;
}
.profile-bento__visual--wall2010 img{
  position:static !important;
  display:block !important;
  width:auto !important;
  height:94% !important;
  max-width:94% !important;
  max-height:94% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  margin:0 auto !important;
}
@media(max-width:760px){
  .profile-bento__visual--wall2010 img{
    height:92% !important;
    max-width:96% !important;
    max-height:92% !important;
  }
}


/* v455 — fix the actual geometry instead of overscaling the image */
.profile-bento{
  grid-template-columns:minmax(0,.43fr) minmax(0,.57fr) !important;
  grid-template-rows:86px 190px !important;
  column-gap:14px !important;
  row-gap:13px !important;
}

/* wallet stays a compact pill */
.profile-bento__entry--wallet{
  grid-column:1 !important;
  grid-row:1 !important;
}

/* Wall 2010 gets the tall lower-left card it needs */
.profile-bento__entry--ai{
  grid-column:1 !important;
  grid-row:2 !important;
}

/* KsanAI continues to span the whole right side */
.profile-bento__entry--wide{
  grid-column:2 !important;
  grid-row:1 / span 2 !important;
}

.profile-bento__entry--ai .profile-bento__item{
  overflow:hidden !important;
  border-radius:22px !important;
}
.profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#191c20 !important;
}
.profile-bento__visual--wall2010 img{
  position:static !important;
  display:block !important;
  width:87% !important;
  height:auto !important;
  max-width:87% !important;
  max-height:96% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  margin:0 auto 0 !important;
}

/* mobile keeps the compact two-up pattern */
@media(max-width:760px){
  .profile-bento{
    grid-template-columns:1fr 1fr !important;
    grid-template-rows:112px 170px !important;
    gap:9px 8px !important;
  }
  .profile-bento__entry--wallet{
    grid-column:1 !important;
    grid-row:1 !important;
  }
  .profile-bento__entry--ai{
    grid-column:2 !important;
    grid-row:1 !important;
  }
  .profile-bento__entry--wide{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
  }
  .profile-bento__visual--wall2010 img{
    width:94% !important;
    max-width:94% !important;
    max-height:96% !important;
  }
}


/* v456 — restore the compact tile geometry; do not enlarge the cards */
.profile-bento{
  width:min(100%,760px) !important;
  grid-template-columns:minmax(0,.43fr) minmax(0,.57fr) !important;
  grid-template-rows:96px 96px !important;
  column-gap:14px !important;
  row-gap:13px !important;
}
.profile-bento__entry--wallet{
  grid-column:1 !important;
  grid-row:1 !important;
}
.profile-bento__entry--ai{
  grid-column:1 !important;
  grid-row:2 !important;
}
.profile-bento__entry--wide{
  grid-column:2 !important;
  grid-row:1 / span 2 !important;
}

/* Keep Wall 2010 visual large INSIDE the old compact tile */
.profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  overflow:hidden !important;
}
.profile-bento__visual--wall2010 img{
  position:absolute !important;
  width:104% !important;
  height:auto !important;
  max-width:none !important;
  max-height:none !important;
  left:50% !important;
  bottom:-7% !important;
  transform:translateX(-50%) !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  margin:0 !important;
}

@media(max-width:760px){
  .profile-bento{
    width:auto !important;
    margin:10px 10px 0 !important;
    grid-template-columns:minmax(0,.44fr) minmax(0,.56fr) !important;
    grid-template-rows:82px 82px !important;
    column-gap:9px !important;
    row-gap:10px !important;
  }
  .profile-bento__entry--wallet{
    grid-column:1 !important;
    grid-row:1 !important;
  }
  .profile-bento__entry--ai{
    grid-column:1 !important;
    grid-row:2 !important;
  }
  .profile-bento__entry--wide{
    grid-column:2 !important;
    grid-row:1 / span 2 !important;
  }
  .profile-bento__visual--wall2010 img{
    width:108% !important;
    bottom:-6% !important;
  }
}


/* v457 — actual fix: image aspect ratio now matches the compact tile */
.profile-bento{
  grid-template-rows:96px 96px !important;
}
.profile-bento__entry--ai .profile-bento__item{
  overflow:hidden !important;
}
.profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#191c20 !important;
}
.profile-bento__visual--wall2010 img{
  position:static !important;
  display:block !important;
  width:96% !important;
  height:auto !important;
  max-width:96% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  margin:0 auto !important;
}

@media(max-width:760px){
  .profile-bento{
    grid-template-rows:82px 82px !important;
  }
  .profile-bento__visual--wall2010 img{
    width:98% !important;
    max-width:98% !important;
  }
}


/* v458 — use the new smaller Wall 2010 icon in the compact tile */
.profile-bento__entry--ai .profile-bento__item{
  overflow:hidden !important;
}
.profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#191c20 !important;
}
.profile-bento__visual--wall2010 img{
  position:static !important;
  display:block !important;
  width:88% !important;
  height:auto !important;
  max-width:88% !important;
  max-height:92% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  margin:0 auto 0 !important;
}
@media(max-width:760px){
  .profile-bento__visual--wall2010 img{
    width:90% !important;
    max-width:90% !important;
    max-height:94% !important;
  }
}


/* v459 — swap KsanAI widget illustration to the new compressed image */
.profile-bento__entry--ksanai .profile-bento__item{
  overflow:hidden !important;
}
.profile-bento__visual--ksanai{
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  display:block !important;
}
.profile-bento__visual--ksanai img{
  position:absolute !important;
  width:auto !important;
  height:92% !important;
  max-width:none !important;
  max-height:none !important;
  right:3% !important;
  bottom:-4% !important;
  object-fit:contain !important;
  object-position:right bottom !important;
  transform:none !important;
}
@media(max-width:760px){
  .profile-bento__visual--ksanai img{
    height:90% !important;
    right:0.5% !important;
    bottom:-3% !important;
  }
}


/* v460 — new Wall 2010 icon, same compact tile geometry */
.profile-bento__entry--ai .profile-bento__item{
  overflow:hidden !important;
}
.profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#191c20 !important;
}
.profile-bento__visual--wall2010 img{
  position:static !important;
  display:block !important;
  width:86% !important;
  height:auto !important;
  max-width:86% !important;
  max-height:92% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:none !important;
  margin:0 auto 0 !important;
}
@media(max-width:760px){
  .profile-bento__visual--wall2010 img{
    width:88% !important;
    max-width:88% !important;
    max-height:94% !important;
  }
}


/* v462 — compact metric directly on the Wall 2010 widget */
.profile-bento__entry--ai .profile-bento__item{
  position:relative !important;
}
.profile-bento__wall-metric{
  position:absolute;
  z-index:4;
  left:10px;
  top:9px;
  height:24px;
  padding:0 8px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(7,9,12,.72);
  border:1px solid rgba(255,255,255,.07);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  white-space:nowrap;
  pointer-events:none;
}
.profile-bento__wall-metric b{
  color:#f1f3f5;
  font-size:11px;
  line-height:1;
  font-weight:760;
  letter-spacing:-.1px;
}
.profile-bento__wall-metric small{
  color:#7f8893;
  font-size:9px;
  line-height:1;
  font-weight:600;
}
.profile-bento__wall-metric em{
  margin-left:2px;
  color:#55dc87;
  font-size:10px;
  line-height:1;
  font-weight:760;
  font-style:normal;
}
@media(max-width:760px){
  .profile-bento__wall-metric{
    left:7px;
    top:6px;
    height:20px;
    padding:0 6px;
    border-radius:8px;
    gap:3px;
  }
  .profile-bento__wall-metric b{font-size:9.5px}
  .profile-bento__wall-metric small{font-size:8px}
  .profile-bento__wall-metric em{font-size:9px}
}


/* v463 — remove the oversized profile frame */
.tg-profile-hero{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.tg-profile-hero::before,
.tg-profile-hero::after{
  display:none !important;
  content:none !important;
}

/* v463 — compact quick links below the current widgets, reference-inspired */
.profile-quicklinks{
  width:min(100%,760px);
  margin:20px auto 4px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  align-items:start;
}
.profile-quicklink{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  cursor:pointer;
  min-width:0;
}
.profile-quicklink__icon{
  width:72px;
  height:62px;
  position:relative;
  display:block;
}
.profile-quicklink__label{
  color:#d6d9de;
  font-size:12px;
  line-height:1.15;
  font-weight:560;
  text-align:center;
  white-space:nowrap;
}

/* four compact circles, like the first reference item */
.profile-quicklink__icon--stickers{
  display:grid;
  grid-template-columns:repeat(2,26px);
  grid-template-rows:repeat(2,26px);
  gap:5px;
  justify-content:center;
  align-content:center;
}
.profile-quicklink__icon--stickers i{
  display:block;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#2a2e34;
  border:1px solid rgba(255,255,255,.06);
  position:relative;
}
.profile-quicklink__icon--stickers i:nth-child(1){background:#7f7cff}
.profile-quicklink__icon--stickers i:nth-child(2){background:linear-gradient(180deg,#f1c817 0 50%,#d9d9d3 50% 100%)}
.profile-quicklink__icon--stickers i:nth-child(3)::before,
.profile-quicklink__icon--stickers i:nth-child(4)::before{
  content:'+';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#737b86;
  font-size:17px;
  font-weight:400;
}
.profile-quicklink__icon--stickers i:nth-child(1)::before{
  content:'';
  position:absolute;
  left:7px;right:7px;top:8px;height:9px;
  border-radius:2px;
  background:repeating-linear-gradient(90deg,#fff 0 3px,transparent 3px 5px);
  opacity:.9;
}

/* overlapping bonus cards */
.profile-quicklink__icon--bonus i{
  position:absolute;
  width:39px;
  height:48px;
  border-radius:9px;
  background:#30343a;
  border:1px solid rgba(255,255,255,.05);
  left:17px;
  top:7px;
}
.profile-quicklink__icon--bonus i:first-child{transform:rotate(-10deg) translate(-6px,0);opacity:.8}
.profile-quicklink__icon--bonus i:last-child{transform:rotate(8deg) translate(5px,3px)}
.profile-quicklink__icon--bonus i:last-child::before{
  content:'+';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#858c96;
  font-size:27px;
  font-weight:300;
}

/* giveaway icon from user reference, without white background */
.profile-quicklink__icon--giveaways{
  width:72px;
  height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.profile-quicklink__icon--giveaways img{
  display:block;
  max-width:72px;
  max-height:62px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.22));
}

.profile-quicklink:hover .profile-quicklink__label{color:#fff}
.profile-quicklink:active{transform:translateY(1px)}

@media(max-width:760px){
  .profile-quicklinks{
    width:auto;
    margin:16px 12px 2px;
    gap:12px;
  }
  .profile-quicklink__icon{transform:scale(.9);transform-origin:center bottom}
  .profile-quicklink__label{font-size:11px}
}

/* v464 — wallet widget uses the supplied silver bars icon, centered and without white background */
.profile-bento__entry--wallet .profile-bento__wallet-card{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  overflow:hidden !important;
}
.profile-bento__visual--wallet{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:transparent !important;
  pointer-events:none !important;
}
.profile-bento__visual--wallet img{
  display:block !important;
  width:auto !important;
  height:78% !important;
  max-width:56% !important;
  max-height:78% !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:translateY(1px) !important;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
@media(max-width:760px){
  .profile-bento__visual--wallet img{
    height:72% !important;
    max-width:54% !important;
    max-height:72% !important;
  }
}

/* v467 — Wall metric without a capsule: clean text directly on the tile */
.profile-bento__wall-metric{
  position:absolute !important;
  z-index:4 !important;
  left:12px !important;
  top:10px !important;
  height:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  display:inline-flex !important;
  align-items:baseline !important;
  gap:5px !important;
  white-space:nowrap !important;
  pointer-events:none !important;
  text-shadow:0 1px 6px rgba(0,0,0,.52) !important;
}
.profile-bento__wall-metric b{
  color:#f5f7f9 !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:760 !important;
  letter-spacing:-.15px !important;
}
.profile-bento__wall-metric small{
  color:#8d95a0 !important;
  font-size:9.5px !important;
  line-height:1 !important;
  font-weight:600 !important;
}
.profile-bento__wall-metric em{
  margin-left:2px !important;
  color:#54d884 !important;
  font-size:11px !important;
  line-height:1 !important;
  font-weight:760 !important;
  font-style:normal !important;
}
@media(max-width:760px){
  .profile-bento__wall-metric{
    left:8px !important;
    top:7px !important;
    gap:4px !important;
  }
  .profile-bento__wall-metric b{font-size:10px !important}
  .profile-bento__wall-metric small{font-size:8px !important}
  .profile-bento__wall-metric em{font-size:9.5px !important}
}


/* v468 — move the Wall 2010 metric below the widget instead of the title */
.profile-bento__wall-metric--below{
  position:static !important;
  z-index:auto !important;
  left:auto !important;
  top:auto !important;
  margin:0 !important;
  align-self:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:6px !important;
  text-shadow:none !important;
}
.profile-bento__entry--ai .profile-bento__wall-metric--below b{font-size:13px !important}
.profile-bento__entry--ai .profile-bento__wall-metric--below small{font-size:10px !important}
.profile-bento__entry--ai .profile-bento__wall-metric--below em{font-size:12px !important}
@media(max-width:760px){
  .profile-bento__wall-metric--below{gap:5px !important}
  .profile-bento__entry--ai .profile-bento__wall-metric--below b{font-size:12px !important}
  .profile-bento__entry--ai .profile-bento__wall-metric--below small{font-size:9px !important}
  .profile-bento__entry--ai .profile-bento__wall-metric--below em{font-size:11px !important}
}

/* v473 — move content a little closer to the native left sidebar */
@media (min-width:761px){
  .profile-page{
    margin:0 auto 0 0 !important;
  }
}


/* v477 — clean reference-style profile composition. Sidebar untouched. */
.profile-page{
  width:100% !important;
  max-width:860px !important;
  margin:0 !important;
  padding:8px 4px 44px !important;
  display:block !important;
  background:transparent !important;
}

/* top colored profile area */
.tg-profile-hero{
  position:relative !important;
  z-index:1 !important;
  min-height:338px !important;
  margin:0 !important;
  padding:26px 24px 54px !important;
  border:0 !important;
  border-radius:30px !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 18% 14%, rgba(90,153,196,.16), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.045), transparent 18%),
    linear-gradient(180deg,#183446 0%,#112a3a 58%,#0d2330 100%) !important;
  box-shadow:none !important;
}
.tg-profile-hero::before,
.tg-profile-hero::after{
  display:none !important;
  content:none !important;
}
.tg-profile-actions{left:20px !important;right:20px !important;top:18px !important}
.tg-round-btn,.tg-edit-btn{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.055) !important;
  box-shadow:none !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.tg-avatar-wrap{margin-top:16px !important}
.tg-avatar{border:2px solid rgba(255,255,255,.22) !important;box-shadow:0 14px 30px rgba(0,0,0,.24) !important}
.tg-avatar-add{border-color:#153043 !important}
.tg-nick{font-size:31px !important;margin-top:16px !important}
.tg-online{color:#a9bdcb !important}
.tg-hero-badges{margin-top:15px !important}
.tg-hero-badge{
  background:rgba(9,13,17,.62) !important;
  border-color:rgba(255,255,255,.07) !important;
}
.tg-hero-rating-line{
  margin-top:22px !important;
  min-height:32px !important;
}

/* black lower sheet, like the reference */
.profile-lower-sheet{
  position:relative !important;
  z-index:2 !important;
  margin:-34px 0 0 !important;
  padding:30px 22px 28px !important;
  border-radius:30px 30px 0 0 !important;
  background:#000 !important;
}
.profile-bento{
  width:min(100%,760px) !important;
  margin:0 auto !important;
}
.profile-quicklinks{
  width:min(100%,760px) !important;
  margin:20px auto 0 !important;
}

@media(max-width:760px){
  .profile-page{max-width:none !important;padding:0 0 24px !important}
  .tg-profile-hero{
    min-height:310px !important;
    padding:20px 14px 46px !important;
    border-radius:26px !important;
  }
  .tg-profile-actions{left:14px !important;right:14px !important;top:14px !important}
  .tg-nick{font-size:25px !important}
  .tg-hero-rating-line{margin-top:16px !important}
  .profile-lower-sheet{
    margin:-28px 0 0 !important;
    padding:24px 12px 22px !important;
    border-radius:26px 26px 0 0 !important;
  }
  .profile-bento{width:100% !important;margin:0 !important}
  .profile-quicklinks{width:100% !important;margin:18px 0 0 !important}
}


/* v478 — no giant lower sheet; cover exists only when user actually set one */
.profile-lower-sheet{display:contents !important}
.profile-page{
  background:#000 !important;
}
.tg-profile-hero{
  margin:0 0 18px !important;
  padding:26px 24px 28px !important;
  min-height:320px !important;
  border-radius:30px !important;
  background:#000 !important;
  transition:background .18s ease,border-radius .18s ease !important;
}
.profile-page.has-custom-profile-bg .tg-profile-hero{
  background:var(--profile-bg) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  border-radius:30px !important;
}
.profile-page:not(.has-custom-profile-bg) .tg-profile-hero{
  background:#000 !important;
  border-radius:0 !important;
}
/* remove the artificial permanent blue cover layers from v477 */
.profile-page:not(.has-custom-profile-bg) .tg-profile-hero::before,
.profile-page:not(.has-custom-profile-bg) .tg-profile-hero::after{
  display:none !important;
  content:none !important;
}
.profile-page.has-custom-profile-bg .tg-profile-hero::before{
  display:block !important;
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.12) 62%,rgba(0,0,0,.28)) !important;
  pointer-events:none !important;
  z-index:0 !important;
}
.profile-page.has-custom-profile-bg .tg-profile-hero::after{display:none !important}
.profile-bento{
  width:min(100%,760px) !important;
  margin:0 auto !important;
  padding:0 !important;
  background:transparent !important;
}
.profile-quicklinks{
  width:min(100%,760px) !important;
  margin:20px auto 0 !important;
  padding:0 !important;
  background:transparent !important;
}
@media(max-width:760px){
  .tg-profile-hero{
    min-height:290px !important;
    margin:0 0 14px !important;
    padding:20px 14px 24px !important;
  }
  .profile-page.has-custom-profile-bg .tg-profile-hero{border-radius:26px !important}
  .profile-page:not(.has-custom-profile-bg) .tg-profile-hero{border-radius:0 !important}
  .profile-bento{width:calc(100% - 24px) !important;margin:0 auto !important}
  .profile-quicklinks{width:calc(100% - 24px) !important;margin:18px auto 0 !important}
}


/* v479 — remove the lower black sheet completely */
.profile-lower-sheet{display:none !important}
.profile-page{
  background:#000 !important;
}
.profile-bento{
  width:min(100%,760px) !important;
  margin:18px auto 0 !important;
  padding:0 !important;
  background:transparent !important;
}
.profile-quicklinks{
  width:min(100%,760px) !important;
  margin:20px auto 0 !important;
  padding:0 !important;
  background:transparent !important;
}
@media(max-width:760px){
  .profile-bento{width:calc(100% - 24px) !important;margin:14px auto 0 !important}
  .profile-quicklinks{width:calc(100% - 24px) !important;margin:18px auto 0 !important}
}

/* v481 — make the Giveaways icon actually visible: trimmed source, larger fit */
.profile-quicklink__icon--giveaways{
  width:84px !important;
  height:72px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}
.profile-quicklink__icon--giveaways img{
  display:block !important;
  width:82px !important;
  height:68px !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
  filter:drop-shadow(0 7px 14px rgba(0,0,0,.24)) !important;
}
@media(max-width:760px){
  .profile-quicklink__icon--giveaways{
    width:76px !important;
    height:66px !important;
  }
  .profile-quicklink__icon--giveaways img{
    width:74px !important;
    height:62px !important;
  }
}


/* v482 — restore wallet widget controls: left plus, centered icon, right PT balance */
.profile-bento__entry--wallet .profile-bento__wallet-card{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 18px !important;
  overflow:hidden !important;
}
.profile-bento__visual--wallet{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none !important;
}
.profile-bento__visual--wallet img{
  display:block !important;
  width:auto !important;
  height:76% !important;
  max-width:34% !important;
  max-height:76% !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:translateY(1px) !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  position:absolute !important;
  left:18px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  z-index:2 !important;
  display:grid !important;
  place-items:center !important;
  width:34px !important;
  height:34px !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.05) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08) !important;
  font:400 28px/1 Geist,system-ui,sans-serif !important;
  color:#f5f7f9 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance{
  position:absolute !important;
  right:18px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  z-index:2 !important;
  display:flex !important;
  align-items:baseline !important;
  gap:6px !important;
  white-space:nowrap !important;
  letter-spacing:-.02em !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  font:700 22px/1 Geist,system-ui,sans-serif !important;
  color:#f6f7f9 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  font:650 12px/1 Geist,system-ui,sans-serif !important;
  color:#aeb6c0 !important;
  font-style:normal !important;
}
@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card{padding:0 14px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-plus{left:14px !important;width:30px !important;height:30px !important;font-size:24px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance{right:14px !important;gap:4px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:18px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:10px !important}
  .profile-bento__visual--wallet img{height:72% !important;max-width:38% !important;max-height:72% !important}
}


/* v483 — wallet widget like reference: amount on left, plus on right, no center icon */
.profile-bento__entry--wallet .profile-bento__wallet-card{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:0 24px !important;
  overflow:hidden !important;
}
.profile-bento__entry--wallet .profile-bento__visual--wallet{display:none !important}
.profile-bento__entry--wallet .profile-bento__wallet-balance{
  position:static !important;
  transform:none !important;
  display:flex !important;
  align-items:baseline !important;
  gap:8px !important;
  white-space:nowrap !important;
  z-index:2 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  font:700 34px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.04em !important;
  color:#f5f7f9 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  font:700 18px/1 Geist,system-ui,sans-serif !important;
  color:#b6bfca !important;
  font-style:normal !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  position:static !important;
  transform:none !important;
  width:auto !important;
  height:auto !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  color:#f5f7f9 !important;
  font:300 72px/.8 Geist,system-ui,sans-serif !important;
  line-height:.8 !important;
  z-index:2 !important;
}
@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card{padding:0 18px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance{gap:6px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:28px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:15px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-plus{font-size:58px !important}
}


/* v484 — microphone icon for the Wall widget; transparent asset, centered */
.profile-bento__visual--wall2010{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#191c20 !important;
  overflow:hidden !important;
}
.profile-bento__visual--wall2010 img{
  position:static !important;
  width:auto !important;
  height:88% !important;
  max-width:62% !important;
  max-height:88% !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:none !important;
  margin:0 !important;
  filter:drop-shadow(0 7px 14px rgba(0,0,0,.20)) !important;
}
@media(max-width:760px){
  .profile-bento__visual--wall2010 img{
    height:84% !important;
    max-width:68% !important;
    max-height:84% !important;
  }
}


/* v485 — wallet widget proportions matched to the compact reference */
.profile-bento__entry--wallet .profile-bento__wallet-card{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:0 26px !important;
  overflow:hidden !important;
}
.profile-bento__entry--wallet .profile-bento__visual--wallet{display:none !important}
.profile-bento__entry--wallet .profile-bento__wallet-balance{
  position:static !important;
  transform:none !important;
  display:flex !important;
  align-items:baseline !important;
  gap:7px !important;
  white-space:nowrap !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  font:650 27px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.035em !important;
  color:#f5f7f9 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  font:650 14px/1 Geist,system-ui,sans-serif !important;
  color:#aeb6c0 !important;
  font-style:normal !important;
  letter-spacing:.01em !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  position:static !important;
  transform:none !important;
  width:auto !important;
  height:auto !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  color:#f5f7f9 !important;
  font:300 46px/.82 Geist,system-ui,sans-serif !important;
}
@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card{padding:0 18px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance{gap:5px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:23px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:12px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-plus{font-size:40px !important}
}


/* v486 — wallet widget refined: slightly smaller amount/plus and restored centered icon */
.profile-bento__entry--wallet .profile-bento__wallet-card{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:0 22px !important;
  overflow:hidden !important;
}
.profile-bento__entry--wallet .profile-bento__visual--wallet{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34% !important;
  height:78% !important;
  pointer-events:none !important;
  z-index:1 !important;
}
.profile-bento__entry--wallet .profile-bento__visual--wallet img{
  display:block !important;
  width:auto !important;
  height:72% !important;
  max-width:100% !important;
  max-height:72% !important;
  object-fit:contain !important;
  object-position:center center !important;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.18)) !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance{
  position:static !important;
  transform:none !important;
  display:flex !important;
  align-items:baseline !important;
  gap:6px !important;
  white-space:nowrap !important;
  z-index:2 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  font:650 24px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.035em !important;
  color:#f5f7f9 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  font:650 13px/1 Geist,system-ui,sans-serif !important;
  color:#aeb6c0 !important;
  font-style:normal !important;
  letter-spacing:.01em !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  position:static !important;
  transform:none !important;
  width:auto !important;
  height:auto !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  color:#f5f7f9 !important;
  font:300 40px/.82 Geist,system-ui,sans-serif !important;
  line-height:.82 !important;
  z-index:2 !important;
}
@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card{padding:0 17px !important}
  .profile-bento__entry--wallet .profile-bento__visual--wallet{width:38% !important;height:74% !important}
  .profile-bento__entry--wallet .profile-bento__visual--wallet img{height:66% !important;max-height:66% !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance{gap:4px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:20px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:11px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-plus{font-size:34px !important}
}


/* v487 — giveaways icon swapped to vertical flame with transparent background */
.profile-quicklink__icon--giveaways{
  width:72px !important;
  height:82px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}
.profile-quicklink__icon--giveaways img{
  display:block !important;
  width:auto !important;
  height:78px !important;
  max-width:72px !important;
  max-height:78px !important;
  object-fit:contain !important;
  object-position:center !important;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.24)) !important;
}
@media(max-width:760px){
  .profile-quicklink__icon--giveaways{width:66px !important;height:74px !important;}
  .profile-quicklink__icon--giveaways img{max-width:66px !important;height:70px !important;max-height:70px !important;}
}


/* v488 — wallet widget icon swapped to card+coins, transparent background */
.profile-bento__entry--wallet .profile-bento__visual--wallet{
  width:36% !important;
  height:80% !important;
}
.profile-bento__entry--wallet .profile-bento__visual--wallet img{
  height:74% !important;
  max-width:100% !important;
  max-height:74% !important;
  object-fit:contain !important;
}
@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__visual--wallet{width:40% !important;height:76% !important;}
  .profile-bento__entry--wallet .profile-bento__visual--wallet img{height:68% !important;max-height:68% !important;}
}


/* v489 — wall metric moved inside the widget; total left, new posts right */
.profile-bento__entry--ai .profile-bento__item{
  position:relative !important;
  overflow:hidden !important;
}
.profile-bento__entry--ai .profile-bento__visual--wall2010{
  inset:4px 0 18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#191c20 !important;
}
.profile-bento__entry--ai .profile-bento__visual--wall2010 img{
  height:82% !important;
  max-height:82% !important;
  max-width:58% !important;
  transform:translateY(-2px) !important;
}
.profile-bento__wall-metric--inside{
  position:absolute !important;
  left:14px !important;
  right:14px !important;
  bottom:9px !important;
  top:auto !important;
  z-index:5 !important;
  display:flex !important;
  align-items:baseline !important;
  justify-content:space-between !important;
  gap:10px !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  text-shadow:none !important;
  pointer-events:none !important;
}
.profile-bento__wall-metric-total{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:5px !important;
  min-width:0 !important;
}
.profile-bento__wall-metric--inside b{
  color:#f5f7f9 !important;
  font:720 12px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.15px !important;
}
.profile-bento__wall-metric--inside small{
  color:#858e99 !important;
  font:600 9px/1 Geist,system-ui,sans-serif !important;
}
.profile-bento__wall-metric--inside em{
  color:#55dc87 !important;
  font:760 11px/1 Geist,system-ui,sans-serif !important;
  font-style:normal !important;
  margin:0 !important;
}
@media(max-width:760px){
  .profile-bento__entry--ai .profile-bento__visual--wall2010{
    inset:3px 0 16px !important;
  }
  .profile-bento__entry--ai .profile-bento__visual--wall2010 img{
    height:78% !important;
    max-height:78% !important;
    max-width:62% !important;
  }
  .profile-bento__wall-metric--inside{
    left:10px !important;
    right:10px !important;
    bottom:7px !important;
  }
  .profile-bento__wall-metric--inside b{font-size:10.5px !important}
  .profile-bento__wall-metric--inside small{font-size:8px !important}
  .profile-bento__wall-metric--inside em{font-size:10px !important}
}

/* v490 — keep wall icon perfectly straight; metric overlays bottom without affecting icon geometry */
.profile-bento__entry--ai .profile-bento__visual--wall2010{
  position:absolute !important;
  inset:0 !important;
  display:grid !important;
  place-items:center !important;
  padding:4px 0 20px !important;
  background:#191c20 !important;
  overflow:hidden !important;
}
.profile-bento__entry--ai .profile-bento__visual--wall2010 img{
  position:static !important;
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:56% !important;
  max-height:72% !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:none !important;
  rotate:none !important;
  scale:none !important;
  margin:0 !important;
}
.profile-bento__wall-metric--inside{
  left:14px !important;
  right:14px !important;
  bottom:9px !important;
  transform:none !important;
}
@media(max-width:760px){
  .profile-bento__entry--ai .profile-bento__visual--wall2010{
    inset:0 !important;
    padding:3px 0 17px !important;
  }
  .profile-bento__entry--ai .profile-bento__visual--wall2010 img{
    max-width:60% !important;
    max-height:70% !important;
    transform:none !important;
  }
}

/* v491 — games quicklink instead of bonus */
.profile-quicklink__icon--games{
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.profile-quicklink__icon--games img{
  display:block;
  width:68px;
  height:68px;
  border-radius:18px;
  object-fit:cover;
  box-shadow:0 8px 18px rgba(0,0,0,.24);
}

/* v492 — bigger avatar + noob overlay instead of plus */
.tg-avatar-wrap{
  width:150px !important;
  margin:10px auto 0 !important;
}
.tg-avatar{
  width:150px !important;
  height:150px !important;
  font-size:50px !important;
}
.tg-avatar-add{
  width:52px !important;
  height:52px !important;
  right:-10px !important;
  bottom:8px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:16px !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.tg-avatar-add img{
  width:52px !important;
  height:52px !important;
  display:block !important;
  object-fit:contain !important;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.35));
  pointer-events:none;
}
@media(max-width:760px){
  .tg-avatar-wrap{width:132px !important;}
  .tg-avatar{width:132px !important;height:132px !important;}
  .tg-avatar-add{width:44px !important;height:44px !important;right:-6px !important;bottom:6px !important;}
  .tg-avatar-add img{width:44px !important;height:44px !important;}
}

/* v493 — replace noob with bold red exclamation mark */
.tg-avatar-add{
  width:44px !important;
  height:44px !important;
  right:-8px !important;
  bottom:10px !important;
  border:none !important;
  border-radius:50% !important;
  background:linear-gradient(180deg,#ff5b5b 0%, #e32020 100%) !important;
  box-shadow:0 8px 18px rgba(227,32,32,.34), 0 0 0 4px #05070a !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}
.tg-avatar-add img{display:none !important;}
.tg-avatar-add .avatar-alert-mark{
  display:block !important;
  color:#fff !important;
  font-weight:900 !important;
  font-size:28px !important;
  line-height:1 !important;
  transform:translateY(-1px);
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  text-shadow:0 2px 8px rgba(0,0,0,.22);
}
@media (max-width:760px){
  .tg-avatar-add{
    width:38px !important;
    height:38px !important;
    right:-4px !important;
    bottom:6px !important;
    box-shadow:0 7px 16px rgba(227,32,32,.32), 0 0 0 3px #05070a !important;
  }
  .tg-avatar-add .avatar-alert-mark{
    font-size:24px !important;
  }
}

/* v494 — tasks quicklink instead of stickers */
.profile-quicklink__icon--tasks{
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.profile-quicklink__icon--tasks img{
  display:block;
  width:68px;
  height:68px;
  border-radius:18px;
  object-fit:contain;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}


/* v496 — larger tasks icon, visually aligned with Games / Giveaways */
.profile-quicklink__icon--tasks{
  width:82px !important;
  height:78px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}
.profile-quicklink__icon--tasks img{
  display:block !important;
  width:78px !important;
  height:74px !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:0 !important;
  box-shadow:none !important;
  filter:drop-shadow(0 7px 14px rgba(0,0,0,.22)) !important;
}
@media(max-width:760px){
  .profile-quicklink__icon--tasks{width:74px !important;height:70px !important;}
  .profile-quicklink__icon--tasks img{width:70px !important;height:66px !important;}
}


/* v497 — wall widget: left title, right metric, no center icon */
.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  padding:0 24px !important;
  overflow:hidden !important;
}
.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side::before,
.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side::after,
.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side .profile-bento__visual--wall2010{
  display:none !important;
}
.profile-bento__wall-title{
  position:relative !important;
  z-index:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  color:#f5f7f9 !important;
  font:760 28px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-0.04em !important;
  text-align:left !important;
}
.profile-bento__wall-metric--side{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  z-index:2 !important;
  display:inline-flex !important;
  align-items:baseline !important;
  justify-content:flex-end !important;
  gap:12px !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-shadow:none !important;
  pointer-events:none !important;
}
.profile-bento__wall-metric--side .profile-bento__wall-metric-total{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:6px !important;
  justify-content:flex-end !important;
}
.profile-bento__wall-metric--side b{
  color:#f5f7f9 !important;
  font:760 18px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-0.03em !important;
}
.profile-bento__wall-metric--side small{
  color:#88919b !important;
  font:650 12px/1 Geist,system-ui,sans-serif !important;
}
.profile-bento__wall-metric--side em{
  color:#55dc87 !important;
  font:760 18px/1 Geist,system-ui,sans-serif !important;
  font-style:normal !important;
  margin:0 !important;
}
@media(max-width:760px){
  .profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
    gap:12px !important;
    padding:0 16px !important;
  }
  .profile-bento__wall-title{
    font-size:22px !important;
  }
  .profile-bento__wall-metric--side{
    gap:9px !important;
  }
  .profile-bento__wall-metric--side .profile-bento__wall-metric-total{
    gap:5px !important;
  }
  .profile-bento__wall-metric--side b{
    font-size:14px !important;
  }
  .profile-bento__wall-metric--side small{
    font-size:10px !important;
  }
  .profile-bento__wall-metric--side em{
    font-size:14px !important;
  }
}


/* v498 — Wall widget: title left, icon centered, compact 74+2 metric right */
.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr) !important;
  align-items:center !important;
  gap:10px !important;
  padding:0 22px !important;
}
.profile-bento__wall-title{
  justify-self:start !important;
  font:760 26px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.04em !important;
}
.profile-bento__wall-center-icon{
  justify-self:center !important;
  width:70px !important;
  height:70px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none !important;
}
.profile-bento__wall-center-icon img{
  display:block !important;
  width:auto !important;
  height:64px !important;
  max-width:70px !important;
  max-height:64px !important;
  object-fit:contain !important;
  transform:none !important;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.18)) !important;
}
.profile-bento__wall-metric--side{
  justify-self:end !important;
  display:inline-flex !important;
  align-items:baseline !important;
  gap:6px !important;
  position:static !important;
}
.profile-bento__wall-metric--side b{
  color:#f5f7f9 !important;
  font:760 20px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.03em !important;
}
.profile-bento__wall-metric--side em{
  color:#55dc87 !important;
  font:760 17px/1 Geist,system-ui,sans-serif !important;
  font-style:normal !important;
}
@media(max-width:760px){
  .profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
    grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr) !important;
    gap:6px !important;
    padding:0 14px !important;
  }
  .profile-bento__wall-title{font-size:20px !important}
  .profile-bento__wall-center-icon{width:54px !important;height:54px !important}
  .profile-bento__wall-center-icon img{height:48px !important;max-width:54px !important;max-height:48px !important}
  .profile-bento__wall-metric--side{gap:4px !important}
  .profile-bento__wall-metric--side b{font-size:16px !important}
  .profile-bento__wall-metric--side em{font-size:14px !important}
}


/* v499 — Wallet widget mirrors Wall: title left, icon center, balance + top-up right */
.profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr) !important;
  align-items:center !important;
  gap:10px !important;
  padding:0 22px !important;
  overflow:hidden !important;
}
.profile-bento__wallet-title{
  justify-self:start !important;
  color:#f5f7f9 !important;
  font:760 26px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.04em !important;
  white-space:nowrap !important;
}
.profile-bento__wallet-center-icon{
  justify-self:center !important;
  width:70px !important;
  height:70px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none !important;
}
.profile-bento__wallet-center-icon img{
  display:block !important;
  width:auto !important;
  height:62px !important;
  max-width:70px !important;
  max-height:62px !important;
  object-fit:contain !important;
  object-position:center !important;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.18)) !important;
}
.profile-bento__wallet-meta{
  justify-self:end !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  white-space:nowrap !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance{
  position:static !important;
  transform:none !important;
  display:inline-flex !important;
  align-items:baseline !important;
  gap:5px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  color:#f5f7f9 !important;
  font:760 19px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.03em !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  color:#9099a4 !important;
  font:650 11px/1 Geist,system-ui,sans-serif !important;
  font-style:normal !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  position:static !important;
  transform:none !important;
  width:auto !important;
  height:auto !important;
  display:inline-block !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#f5f7f9 !important;
  font:300 32px/.8 Geist,system-ui,sans-serif !important;
  line-height:.8 !important;
}
@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side{
    grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr) !important;
    gap:6px !important;
    padding:0 14px !important;
  }
  .profile-bento__wallet-title{font-size:20px !important}
  .profile-bento__wallet-center-icon{width:54px !important;height:54px !important}
  .profile-bento__wallet-center-icon img{height:48px !important;max-width:54px !important;max-height:48px !important}
  .profile-bento__wallet-meta{gap:7px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:15px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:9px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-plus{font-size:26px !important}
}

/* v500 — calmer wallet typography */
.profile-bento__wallet-title{
  font-size:22px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  font-size:16px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  font-size:10px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  font-size:27px !important;
}
@media(max-width:760px){
  .profile-bento__wallet-title{font-size:17px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:13px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:8px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-plus{font-size:22px !important}
}


/* v501 fixed — smaller avatar alert mark */
.tg-avatar-add{
  width:42px !important;
  height:42px !important;
}
.tg-avatar-add .avatar-alert-mark{
  font-size:24px !important;
  line-height:1 !important;
  font-weight:800 !important;
}
@media(max-width:760px){
  .tg-avatar-add{width:36px !important;height:36px !important;}
  .tg-avatar-add .avatar-alert-mark{font-size:21px !important;}
}

/* v502 — fine tuning per request: smaller wallet/wall internals and smaller avatar alert mark */
.profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side{
  grid-template-columns:minmax(0,1fr) 64px auto !important;
  gap:8px !important;
  padding:0 20px !important;
}
.profile-bento__wallet-title{
  font-size:20px !important;
  letter-spacing:-0.03em !important;
}
.profile-bento__wallet-center-icon{
  width:62px !important;
  height:62px !important;
}
.profile-bento__wallet-center-icon img{
  height:54px !important;
  max-width:62px !important;
  max-height:54px !important;
}
.profile-bento__wallet-meta{
  gap:8px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  font-size:14px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  font-size:9px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  font-size:21px !important;
  font-weight:600 !important;
  line-height:1 !important;
}

.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
  grid-template-columns:minmax(0,1fr) 60px auto !important;
  gap:10px !important;
  padding:0 20px !important;
}
.profile-bento__wall-title{
  font-size:20px !important;
  letter-spacing:-0.03em !important;
}
.profile-bento__wall-center-icon{
  width:58px !important;
  height:58px !important;
}
.profile-bento__wall-center-icon img{
  height:52px !important;
  max-width:58px !important;
  max-height:52px !important;
}
.profile-bento__wall-metric--side{
  gap:5px !important;
}
.profile-bento__wall-metric--side b{
  font-size:14px !important;
}
.profile-bento__wall-metric--side em{
  font-size:13px !important;
}

.tg-avatar-add{
  width:38px !important;
  height:38px !important;
}
.tg-avatar-add .avatar-alert-mark{
  font-size:18px !important;
  line-height:1 !important;
  font-weight:800 !important;
}

@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side{
    grid-template-columns:minmax(0,1fr) 52px auto !important;
    gap:6px !important;
    padding:0 14px !important;
  }
  .profile-bento__wallet-title{font-size:16px !important}
  .profile-bento__wallet-center-icon{width:50px !important;height:50px !important}
  .profile-bento__wallet-center-icon img{height:42px !important;max-width:50px !important;max-height:42px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:12px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:8px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-plus{font-size:18px !important}

  .profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
    grid-template-columns:minmax(0,1fr) 48px auto !important;
    gap:8px !important;
    padding:0 14px !important;
  }
  .profile-bento__wall-title{font-size:16px !important}
  .profile-bento__wall-center-icon{width:46px !important;height:46px !important}
  .profile-bento__wall-center-icon img{height:40px !important;max-width:46px !important;max-height:40px !important}
  .profile-bento__wall-metric--side b{font-size:12px !important}
  .profile-bento__wall-metric--side em{font-size:11px !important}

  .tg-avatar-add{width:34px !important;height:34px !important}
  .tg-avatar-add .avatar-alert-mark{font-size:15px !important}
}

/* v503 — visible, final-size correction */
/* Wallet: no plus at all, calmer title and balance */
.profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side{
  grid-template-columns:minmax(0,1fr) 56px auto !important;
  gap:9px !important;
  padding:0 18px !important;
}
.profile-bento__wallet-title{
  font-size:17px !important;
  font-weight:700 !important;
  letter-spacing:-.025em !important;
}
.profile-bento__wallet-center-icon{
  width:54px !important;
  height:54px !important;
}
.profile-bento__wallet-center-icon img{
  height:46px !important;
  max-width:54px !important;
  max-height:46px !important;
}
.profile-bento__wallet-meta{
  gap:0 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong{
  font-size:12px !important;
  font-weight:700 !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  font-size:7.5px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  display:none !important;
}

/* Wall: same compact visual weight as wallet */
.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
  grid-template-columns:minmax(0,1fr) 54px auto !important;
  gap:9px !important;
  padding:0 18px !important;
}
.profile-bento__wall-title{
  font-size:17px !important;
  font-weight:700 !important;
  letter-spacing:-.025em !important;
}
.profile-bento__wall-center-icon{
  width:52px !important;
  height:52px !important;
}
.profile-bento__wall-center-icon img{
  height:45px !important;
  max-width:52px !important;
  max-height:45px !important;
}
.profile-bento__wall-metric--side{
  gap:4px !important;
}
.profile-bento__wall-metric--side b{
  font-size:12px !important;
  font-weight:700 !important;
}
.profile-bento__wall-metric--side em{
  font-size:11px !important;
  font-weight:700 !important;
}

/* Avatar alert: genuinely small, not a giant badge */
.tg-avatar-add{
  width:30px !important;
  height:30px !important;
  right:-3px !important;
  bottom:9px !important;
  box-shadow:0 5px 12px rgba(227,32,32,.26), 0 0 0 3px #05070a !important;
}
.tg-avatar-add .avatar-alert-mark{
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1 !important;
  transform:none !important;
}

@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side{
    grid-template-columns:minmax(0,1fr) 44px auto !important;
    gap:6px !important;
    padding:0 12px !important;
  }
  .profile-bento__wallet-title{font-size:14px !important}
  .profile-bento__wallet-center-icon{width:42px !important;height:42px !important}
  .profile-bento__wallet-center-icon img{height:36px !important;max-width:42px !important;max-height:36px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong{font-size:10px !important}
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{font-size:7px !important}

  .profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
    grid-template-columns:minmax(0,1fr) 42px auto !important;
    gap:6px !important;
    padding:0 12px !important;
  }
  .profile-bento__wall-title{font-size:14px !important}
  .profile-bento__wall-center-icon{width:40px !important;height:40px !important}
  .profile-bento__wall-center-icon img{height:34px !important;max-width:40px !important;max-height:34px !important}
  .profile-bento__wall-metric--side b{font-size:10px !important}
  .profile-bento__wall-metric--side em{font-size:9px !important}

  .tg-avatar-add{width:26px !important;height:26px !important;right:-2px !important;bottom:7px !important}
  .tg-avatar-add .avatar-alert-mark{font-size:12px !important}
}

/* v504 — wallet and wall widgets unified: same layout, centered icons, slightly larger icons */
.profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side,
.profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:14px !important;
  padding:0 22px !important;
  overflow:hidden !important;
}

.profile-bento__wallet-title,
.profile-bento__wall-title{
  justify-self:start !important;
  align-self:center !important;
  display:flex !important;
  align-items:center !important;
  min-width:0 !important;
  color:#f5f7f9 !important;
  font:700 19px/1.05 Geist,system-ui,sans-serif !important;
  letter-spacing:-0.03em !important;
  white-space:nowrap !important;
}

.profile-bento__wallet-center-icon,
.profile-bento__wall-center-icon{
  justify-self:center !important;
  align-self:center !important;
  width:72px !important;
  height:72px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none !important;
}

.profile-bento__wallet-center-icon img,
.profile-bento__wall-center-icon img{
  display:block !important;
  width:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:none !important;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.18)) !important;
}
.profile-bento__wallet-center-icon img{
  height:58px !important;
  max-width:72px !important;
  max-height:58px !important;
}
.profile-bento__wall-center-icon img{
  height:56px !important;
  max-width:72px !important;
  max-height:56px !important;
}

.profile-bento__wallet-meta,
.profile-bento__wall-metric--side{
  justify-self:end !important;
  align-self:center !important;
  display:inline-flex !important;
  align-items:baseline !important;
  justify-content:flex-end !important;
  gap:6px !important;
  min-width:0 !important;
  white-space:nowrap !important;
}

.profile-bento__entry--wallet .profile-bento__wallet-balance{
  position:static !important;
  transform:none !important;
  display:inline-flex !important;
  align-items:baseline !important;
  gap:6px !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance strong,
.profile-bento__wall-metric--side b{
  color:#f5f7f9 !important;
  font:700 17px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-0.02em !important;
}
.profile-bento__entry--wallet .profile-bento__wallet-balance em{
  color:#98a1ab !important;
  font:650 10px/1 Geist,system-ui,sans-serif !important;
  font-style:normal !important;
  letter-spacing:.01em !important;
}
.profile-bento__wall-metric--side em{
  color:#55dc87 !important;
  font:700 17px/1 Geist,system-ui,sans-serif !important;
  font-style:normal !important;
}

/* keep hidden any legacy extra plus in wallet widget */
.profile-bento__entry--wallet .profile-bento__wallet-plus{
  display:none !important;
}

@media(max-width:760px){
  .profile-bento__entry--wallet .profile-bento__wallet-card.profile-bento__wallet-card--side,
  .profile-bento__entry--ai .profile-bento__item.profile-bento__item--wall-side{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
    gap:8px !important;
    padding:0 14px !important;
  }
  .profile-bento__wallet-title,
  .profile-bento__wall-title{
    font-size:16px !important;
  }
  .profile-bento__wallet-center-icon,
  .profile-bento__wall-center-icon{
    width:54px !important;
    height:54px !important;
  }
  .profile-bento__wallet-center-icon img{
    height:43px !important;
    max-width:54px !important;
    max-height:43px !important;
  }
  .profile-bento__wall-center-icon img{
    height:42px !important;
    max-width:54px !important;
    max-height:42px !important;
  }
  .profile-bento__entry--wallet .profile-bento__wallet-balance strong,
  .profile-bento__wall-metric--side b{
    font-size:13px !important;
  }
  .profile-bento__entry--wallet .profile-bento__wallet-balance em{
    font-size:8px !important;
  }
  .profile-bento__wall-metric--side em{
    font-size:13px !important;
  }
}


/* v506 — full Settings workspace */
.settings-view{
  min-height:100vh;
  padding:34px 34px 80px;
  color:#f4f6f8;
}
.settings-shell{
  width:min(860px,100%);
  margin:0 auto;
}
.settings-head{
  margin:4px 0 24px;
}
.settings-head span{
  display:block;
  margin-bottom:6px;
  color:#7f8995;
  font:650 12px/1.2 Geist,system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.settings-head h1{
  margin:0;
  color:#f7f8fa;
  font:760 34px/1.05 Geist,system-ui,sans-serif;
  letter-spacing:-.045em;
}
.settings-head p{
  margin:8px 0 0;
  color:#8d96a1;
  font:500 14px/1.45 Geist,system-ui,sans-serif;
}
.settings-card{
  margin-top:14px;
  padding:20px;
  border:1px solid #272c33;
  border-radius:22px;
  background:#15191e;
  box-shadow:0 12px 34px rgba(0,0,0,.12);
}
.settings-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.settings-card__head strong{
  display:block;
  color:#f3f5f7;
  font:700 17px/1.2 Geist,system-ui,sans-serif;
}
.settings-card__head small{
  display:block;
  margin-top:4px;
  color:#7f8994;
  font:500 12px/1.4 Geist,system-ui,sans-serif;
}
.settings-avatar-row{
  display:flex;
  align-items:center;
  gap:18px;
}
.settings-avatar-preview{
  flex:0 0 auto;
  width:92px;
  height:92px;
  border:0;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  padding:0;
  cursor:pointer;
  color:#f7f8fa;
  background:linear-gradient(145deg,#282e37,#15191e);
  box-shadow:inset 0 0 0 1px #343a43,0 10px 24px rgba(0,0,0,.2);
  font:760 28px/1 Geist,system-ui,sans-serif;
}
.settings-avatar-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.settings-avatar-actions,.settings-actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.settings-btn{
  min-height:38px;
  border:1px solid #30363e;
  border-radius:12px;
  padding:0 14px;
  color:#dfe4ea;
  background:#1d2228;
  font:650 12px/1 Geist,system-ui,sans-serif;
  cursor:pointer;
  transition:.16s ease;
}
.settings-btn:hover{background:#252b32;border-color:#3b424c}
.settings-btn--primary{
  color:#08120c;
  border-color:#6be99a;
  background:#67df94;
}
.settings-btn--primary:hover{background:#75eaa1}
.settings-btn--danger{
  color:#f29a9a;
  border-color:#4b2b2e;
  background:#25191b;
}
.settings-field-row{
  display:flex;
  align-items:flex-end;
  gap:10px;
}
.settings-field{display:block}
.settings-field--grow{flex:1}
.settings-field>span{
  display:block;
  margin:0 0 7px;
  color:#8d96a1;
  font:600 11px/1 Geist,system-ui,sans-serif;
}
.settings-field input,.settings-input-wrap{
  width:100%;
  min-height:44px;
  border:1px solid #30363e;
  border-radius:13px;
  background:#0f1317;
  color:#eef1f4;
  outline:none;
  box-sizing:border-box;
}
.settings-field input{
  padding:0 13px;
  font:600 13px/1 Geist,system-ui,sans-serif;
}
.settings-field input:focus,.settings-input-wrap:focus-within{border-color:#59636f}
.settings-input-wrap{
  display:flex;
  align-items:center;
  padding:0 13px;
}
.settings-input-wrap b{
  color:#69727d;
  font:650 13px/1 Geist,system-ui,sans-serif;
}
.settings-input-wrap input{
  min-height:42px;
  border:0;
  padding:0 4px;
  background:transparent;
}
.settings-save-btn{flex:0 0 auto}
.settings-hint{
  min-height:16px;
  margin-top:8px;
  color:#7f8994;
  font:550 11px/1.35 Geist,system-ui,sans-serif;
}
.settings-hint.is-success{color:#59d889}
.settings-hint.is-error{color:#ef7e7e}
.settings-bg-preview{
  width:100%;
  aspect-ratio:3.3/1;
  border:1px solid #2d333b;
  border-radius:18px;
  background:linear-gradient(180deg,#080a0d,#000);
  background-image:var(--settings-bg,linear-gradient(180deg,#080a0d,#000));
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.settings-bg-swatches{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.settings-bg-swatches button{
  height:48px;
  border:2px solid transparent;
  border-radius:13px;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.settings-bg-swatches button.is-selected{border-color:#6be99a}
.settings-actions-row{margin-top:12px}
.settings-switch-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
}
.settings-switch-row>span b{
  display:block;
  color:#eef1f4;
  font:650 13px/1.3 Geist,system-ui,sans-serif;
}
.settings-switch-row>span small{
  display:block;
  margin-top:4px;
  color:#7f8994;
  font:500 11px/1.35 Geist,system-ui,sans-serif;
}
.settings-switch-row input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.settings-switch-row i{
  position:relative;
  flex:0 0 auto;
  width:46px;
  height:26px;
  border-radius:999px;
  background:#313740;
  transition:.18s ease;
}
.settings-switch-row i::after{
  content:"";
  position:absolute;
  left:3px;
  top:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#cbd1d7;
  transition:.18s ease;
}
.settings-switch-row input:checked+i{background:#54d683}
.settings-switch-row input:checked+i::after{transform:translateX(20px);background:#fff}
.settings-password-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.settings-password-grid .settings-field:first-child{grid-column:1/-1}
.settings-password-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
}
.settings-password-footer .settings-hint{margin:0}
@media(max-width:760px){
  .settings-view{padding:22px 14px 70px}
  .settings-head h1{font-size:28px}
  .settings-card{padding:16px;border-radius:18px}
  .settings-avatar-row{align-items:flex-start}
  .settings-avatar-preview{width:76px;height:76px}
  .settings-avatar-actions{flex:1}
  .settings-field-row{align-items:stretch;flex-direction:column}
  .settings-save-btn{align-self:flex-start}
  .settings-bg-swatches{grid-template-columns:repeat(3,1fr)}
  .settings-password-grid{grid-template-columns:1fr}
  .settings-password-grid .settings-field:first-child{grid-column:auto}
  .settings-password-footer{align-items:flex-start;flex-direction:column}
}


/* v507 — plain settings, closer to normal account settings; no "AI dashboard" styling */
.settings-view{
  min-height:100dvh !important;
  padding:26px 32px 80px !important;
  box-sizing:border-box !important;
  background:#000 !important;
}
.settings-shell{
  width:min(760px,100%) !important;
  margin:0 auto !important;
}
.settings-head{
  margin:0 0 14px !important;
  padding:0 2px 12px !important;
  border-bottom:1px solid #20242a !important;
}
.settings-head span,
.settings-head p{
  display:none !important;
}
.settings-head h1{
  margin:0 !important;
  color:#f2f4f6 !important;
  font:700 26px/1.2 Geist,system-ui,sans-serif !important;
  letter-spacing:-.025em !important;
}

/* sections are flat rows, not floating cards */
.settings-card{
  margin:0 !important;
  padding:18px 2px !important;
  border:0 !important;
  border-bottom:1px solid #20242a !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.settings-card__head{
  margin-bottom:13px !important;
}
.settings-card__head strong{
  color:#eceff2 !important;
  font:650 15px/1.25 Geist,system-ui,sans-serif !important;
}
.settings-card__head small{
  margin-top:3px !important;
  color:#707984 !important;
  font:500 11px/1.4 Geist,system-ui,sans-serif !important;
}

/* quieter controls */
.settings-btn{
  min-height:36px !important;
  padding:0 12px !important;
  border:1px solid #2b3036 !important;
  border-radius:9px !important;
  color:#d7dce1 !important;
  background:#15191e !important;
  box-shadow:none !important;
  font:600 12px/1 Geist,system-ui,sans-serif !important;
}
.settings-btn:hover{
  background:#1b2026 !important;
  border-color:#343b43 !important;
}
.settings-btn--primary{
  color:#e9edf0 !important;
  border-color:#35423b !important;
  background:#1a2920 !important;
}
.settings-btn--primary:hover{background:#203429 !important}
.settings-btn--danger{
  color:#d98787 !important;
  border-color:#3a292b !important;
  background:#1b1415 !important;
}

.settings-avatar-preview{
  width:78px !important;
  height:78px !important;
  border:1px solid #2c3239 !important;
  border-radius:50% !important;
  background:#171b20 !important;
  box-shadow:none !important;
  font-size:23px !important;
}
.settings-avatar-row{gap:16px !important}

.settings-field>span{
  color:#737c87 !important;
  font-size:11px !important;
}
.settings-field input,
.settings-input-wrap{
  min-height:41px !important;
  border:1px solid #292f36 !important;
  border-radius:9px !important;
  background:#0e1114 !important;
}
.settings-input-wrap input{min-height:39px !important}
.settings-field input:focus,
.settings-input-wrap:focus-within{
  border-color:#444d57 !important;
}
.settings-hint{color:#737c87 !important}

.settings-bg-preview{
  aspect-ratio:4.1/1 !important;
  border:1px solid #272d34 !important;
  border-radius:10px !important;
  box-shadow:none !important;
}
.settings-bg-swatches{
  grid-template-columns:repeat(6,42px) !important;
  justify-content:start !important;
  gap:8px !important;
}
.settings-bg-swatches button{
  width:42px !important;
  height:34px !important;
  border-radius:8px !important;
  border:1px solid #30363d !important;
  box-shadow:none !important;
}
.settings-bg-swatches button.is-selected{
  border-color:#85908a !important;
  outline:1px solid #85908a !important;
}

.settings-switch-row{
  min-height:42px !important;
}
.settings-switch-row>span b{
  color:#e1e5e8 !important;
  font-size:13px !important;
}
.settings-switch-row>span small{
  color:#717a84 !important;
}
.settings-switch-row i{
  width:42px !important;
  height:24px !important;
  background:#292f35 !important;
}
.settings-switch-row i::after{
  width:18px !important;
  height:18px !important;
}
.settings-switch-row input:checked+i{
  background:#3d7d58 !important;
}
.settings-switch-row input:checked+i::after{
  transform:translateX(18px) !important;
}

.settings-password-grid{
  gap:8px !important;
}
.settings-password-footer{
  margin-top:10px !important;
}

/* all workspace views start from the same top position visually */
#personalView,
#chatsView,
#communitiesView,
#settingsView,
#wall2010View,
#aiWorkspace,
.finance-view{
  scroll-margin-top:0 !important;
}
body,
html{
  scroll-behavior:auto !important;
}

@media(max-width:760px){
  .settings-view{padding:18px 14px 76px !important}
  .settings-head h1{font-size:23px !important}
  .settings-card{padding:16px 0 !important}
  .settings-avatar-row{align-items:center !important}
  .settings-avatar-preview{width:68px !important;height:68px !important}
  .settings-bg-swatches{grid-template-columns:repeat(6,34px) !important}
  .settings-bg-swatches button{width:34px !important;height:30px !important}
}

/* v508 — strict single-view router: never allow profile + another workspace at once */
html[data-initial-view="settings"] #personalView,
html[data-initial-view="chats"] #personalView,
html[data-initial-view="ai"] #personalView,
html[data-initial-view="communities"] #personalView,
html[data-initial-view="wall"] #personalView,
html[data-initial-view="wallet"] #personalView,
html[data-initial-view="wallet-history"] #personalView,
html[data-initial-view="platinum-buy"] #personalView,
html[data-initial-view="payment-history"] #personalView,
html[data-initial-view="voucher-create"] #personalView,
html[data-initial-view="voucher-history"] #personalView{
  display:none !important;
}

body[data-view]:not([data-view="personal"]) #personalView{
  display:none !important;
}
body[data-view="personal"] #settingsView,
body[data-view="personal"] #chatsView,
body[data-view="personal"] #communitiesView,
body[data-view="personal"] #wall2010View,
body[data-view="personal"] #aiWorkspace,
body[data-view="personal"] .finance-view,
body[data-view="personal"] .finance-modal-shell{
  display:none !important;
}

body[data-view="settings"] #settingsView{display:block !important}
body[data-view="settings"] #chatsView,
body[data-view="settings"] #communitiesView,
body[data-view="settings"] #wall2010View,
body[data-view="settings"] #aiWorkspace,
body[data-view="settings"] .finance-view,
body[data-view="settings"] .finance-modal-shell{display:none !important}

body[data-view="chats"] #chatsView{display:block !important}
body[data-view="chats"] #settingsView,
body[data-view="chats"] #communitiesView,
body[data-view="chats"] #wall2010View,
body[data-view="chats"] #aiWorkspace,
body[data-view="chats"] .finance-view,
body[data-view="chats"] .finance-modal-shell{display:none !important}

body[data-view="communities"] #communitiesView{display:block !important}
body[data-view="communities"] #settingsView,
body[data-view="communities"] #chatsView,
body[data-view="communities"] #wall2010View,
body[data-view="communities"] #aiWorkspace,
body[data-view="communities"] .finance-view,
body[data-view="communities"] .finance-modal-shell{display:none !important}

body[data-view="ai"] #aiWorkspace{display:block !important}
body[data-view="ai"] #settingsView,
body[data-view="ai"] #chatsView,
body[data-view="ai"] #communitiesView,
body[data-view="ai"] #wall2010View,
body[data-view="ai"] .finance-view,
body[data-view="ai"] .finance-modal-shell{display:none !important}

body[data-view="wall"] #wall2010View{display:block !important}
body[data-view="wall"] #settingsView,
body[data-view="wall"] #chatsView,
body[data-view="wall"] #communitiesView,
body[data-view="wall"] #aiWorkspace,
body[data-view="wall"] .finance-view,
body[data-view="wall"] .finance-modal-shell{display:none !important}

/* Active workspace always begins where profile content normally begins. */
body[data-view]:not([data-view="personal"]) .ksan-main{
  align-items:flex-start !important;
}
body[data-view="settings"] #settingsView,
body[data-view="chats"] #chatsView,
body[data-view="communities"] #communitiesView,
body[data-view="wall"] #wall2010View,
body[data-view="ai"] #aiWorkspace{
  margin-top:0 !important;
}


/* v510 — quicklink counters */
.profile-quicklink{gap:10px !important;}
.profile-quicklink__meta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;flex-wrap:wrap;}
.profile-quicklink__label{white-space:nowrap;}
.profile-quicklink__count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:20px;padding:0 8px;border-radius:999px;background:linear-gradient(180deg,#1d2430 0%,#11161f 100%);border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);color:#f1f4f8;font-size:11px;font-weight:700;line-height:1;}
.profile-quicklink:hover .profile-quicklink__count{border-color:rgba(255,255,255,.14);}
@media(max-width:760px){.profile-quicklink__meta{gap:6px;}.profile-quicklink__count{min-width:24px;height:18px;padding:0 7px;font-size:10px;}}


/* v511 — user products tile instead of wallet */
.profile-bento__wallet-card--products{cursor:pointer !important;}
.profile-bento__wallet-card--products .profile-bento__wallet-title{white-space:nowrap !important;}
.profile-bento__wallet-card--products .profile-bento__wallet-center-icon{width:76px !important;height:76px !important;}
.profile-bento__wallet-card--products .profile-bento__wallet-center-icon img{height:62px !important;max-width:76px !important;max-height:62px !important;object-fit:contain !important;}
.profile-bento__wallet-card--products .profile-bento__wallet-balance{gap:0 !important;}
.profile-bento__wallet-card--products .profile-bento__wallet-balance strong{font-size:18px !important;letter-spacing:-.01em !important;}
.profile-bento__wallet-card--products .profile-bento__wallet-balance em{display:none !important;}
@media(max-width:760px){
  .profile-bento__wallet-card--products .profile-bento__wallet-center-icon{width:58px !important;height:58px !important;}
  .profile-bento__wallet-card--products .profile-bento__wallet-center-icon img{height:48px !important;max-width:58px !important;max-height:48px !important;}
  .profile-bento__wallet-card--products .profile-bento__wallet-balance strong{font-size:14px !important;}
}


/* v512 — Well / instant PT exchange tile */
.profile-bento__entry--well .profile-bento__item--well{
  position:relative !important;
  overflow:hidden !important;
}
.profile-bento__wide-copy--well{
  position:relative !important;
  z-index:3 !important;
}
.profile-bento__wide-copy--well strong{
  font-size:22px !important;
  letter-spacing:-.035em !important;
}
.profile-bento__wide-copy--well small{
  max-width:150px !important;
  color:#919aa5 !important;
}
.profile-bento__visual--well{
  position:absolute !important;
  right:12px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:54% !important;
  height:94% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:none !important;
}
.profile-bento__visual--well img{
  display:block !important;
  width:auto !important;
  height:88% !important;
  max-width:100% !important;
  max-height:88% !important;
  object-fit:contain !important;
  object-position:center !important;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.2)) !important;
}
@media(max-width:760px){
  .profile-bento__wide-copy--well strong{font-size:18px !important;}
  .profile-bento__wide-copy--well small{max-width:120px !important;font-size:10px !important;}
  .profile-bento__visual--well{right:4px !important;width:50% !important;height:90% !important;}
  .profile-bento__visual--well img{height:82% !important;max-height:82% !important;}
}


/* v513 — Well icon aligned cleanly inside the visual half */
.profile-bento__entry--well .profile-bento__item--well{
  position:relative !important;
}
.profile-bento__visual--well{
  position:absolute !important;
  left:42% !important;
  right:4px !important;
  top:0 !important;
  bottom:0 !important;
  width:auto !important;
  height:auto !important;
  transform:none !important;
  display:grid !important;
  place-items:center !important;
  padding:8px 6px 8px 0 !important;
  box-sizing:border-box !important;
}
.profile-bento__visual--well img{
  position:static !important;
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:92% !important;
  max-height:88% !important;
  margin:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:none !important;
}
@media(max-width:760px){
  .profile-bento__visual--well{
    left:45% !important;
    right:2px !important;
    top:0 !important;
    bottom:0 !important;
    width:auto !important;
    height:auto !important;
    padding:5px 3px 5px 0 !important;
  }
  .profile-bento__visual--well img{
    max-width:94% !important;
    max-height:84% !important;
  }
}


/* v516 — Personal: wider, larger and closer to the sidebar, matching Chats density */
@media(min-width:761px){
  body[data-view="personal"] .ksan-shell{
    grid-template-columns:82px minmax(0,1120px) !important;
    column-gap:10px !important;
  }
  body[data-view="personal"] .ksan-main{
    width:1120px !important;
    max-width:1120px !important;
    margin:0 !important;
  }
  body[data-view="personal"] .profile-page{
    width:min(960px,100%) !important;
    max-width:960px !important;
    margin:0 !important;
    padding:2px 0 58px !important;
  }

  /* profile header: a little more presence, without becoming oversized */
  body[data-view="personal"] .tg-profile-hero{
    width:100% !important;
    min-height:382px !important;
    padding:30px 30px 26px !important;
    box-sizing:border-box !important;
  }
  body[data-view="personal"] .tg-avatar-wrap{
    width:158px !important;
    margin-top:8px !important;
  }
  body[data-view="personal"] .tg-avatar{
    width:158px !important;
    height:158px !important;
    font-size:52px !important;
  }
  body[data-view="personal"] .tg-nick{
    font-size:27px !important;
    margin-top:10px !important;
  }
  body[data-view="personal"] .tg-online{
    margin-top:5px !important;
  }
  body[data-view="personal"] .tg-hero-badges{
    margin-top:10px !important;
  }
  body[data-view="personal"] .tg-hero-rating-line{
    margin-top:14px !important;
  }

  /* primary tiles occupy the same visual width as the page */
  body[data-view="personal"] .profile-bento{
    width:100% !important;
    margin:16px 0 0 !important;
    grid-template-columns:minmax(0,.43fr) minmax(0,.57fr) !important;
    grid-template-rows:108px 108px !important;
    column-gap:16px !important;
    row-gap:14px !important;
  }
  body[data-view="personal"] .profile-bento__item{
    border-radius:23px !important;
  }

  /* My Shop */
  body[data-view="personal"] .profile-bento__wallet-title,
  body[data-view="personal"] .profile-bento__wall-title{
    font-size:20px !important;
  }
  body[data-view="personal"] .profile-bento__wallet-card--products .profile-bento__wallet-center-icon{
    width:86px !important;
    height:86px !important;
  }
  body[data-view="personal"] .profile-bento__wallet-card--products .profile-bento__wallet-center-icon img{
    height:70px !important;
    max-width:86px !important;
    max-height:70px !important;
  }
  body[data-view="personal"] .profile-bento__wallet-card--products .profile-bento__wallet-balance strong{
    font-size:19px !important;
  }

  /* Wall */
  body[data-view="personal"] .profile-bento__wall-center-icon{
    width:80px !important;
    height:80px !important;
  }
  body[data-view="personal"] .profile-bento__wall-center-icon img{
    height:64px !important;
    max-width:80px !important;
    max-height:64px !important;
  }
  body[data-view="personal"] .profile-bento__wall-metric--side b,
  body[data-view="personal"] .profile-bento__wall-metric--side em{
    font-size:18px !important;
  }

  /* Well */
  body[data-view="personal"] .profile-bento__wide-copy--well{
    left:4px !important;
  }
  body[data-view="personal"] .profile-bento__wide-copy--well strong{
    font-size:25px !important;
  }
  body[data-view="personal"] .profile-bento__wide-copy--well small{
    max-width:180px !important;
    font-size:12px !important;
    line-height:1.35 !important;
  }
  body[data-view="personal"] .profile-bento__visual--well{
    left:40% !important;
    right:0 !important;
    padding:7px 4px 7px 0 !important;
  }
  body[data-view="personal"] .profile-bento__visual--well img{
    max-width:95% !important;
    max-height:91% !important;
  }

  /* quick sections below */
  body[data-view="personal"] .profile-quicklinks{
    width:100% !important;
    margin:24px 0 6px !important;
    gap:44px !important;
  }
  body[data-view="personal"] .profile-quicklink{
    gap:11px !important;
  }
  body[data-view="personal"] .profile-quicklink__icon--tasks,
  body[data-view="personal"] .profile-quicklink__icon--games,
  body[data-view="personal"] .profile-quicklink__icon--giveaways{
    transform:scale(1.08) !important;
    transform-origin:center bottom !important;
  }
  body[data-view="personal"] .profile-quicklink__label{
    font-size:13px !important;
    font-weight:600 !important;
  }
  body[data-view="personal"] .profile-quicklink__count{
    min-width:30px !important;
    height:21px !important;
    padding:0 8px !important;
    font-size:11px !important;
  }
}


/* v517 — refine Well tile composition in Personal */
.profile-bento__entry--well .profile-bento__item--well{
  position:relative !important;
  min-height:100% !important;
  overflow:hidden !important;
}
.profile-bento__entry--well .profile-bento__label{display:none !important;}
.profile-bento__wide-copy--well{
  position:absolute !important;
  left:30px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  right:auto !important;
  z-index:3 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  max-width:280px !important;
}
.profile-bento__wide-copy--well strong{
  font-size:24px !important;
  line-height:1.02 !important;
  letter-spacing:-.04em !important;
}
.profile-bento__wide-copy--well small{
  max-width:230px !important;
  font-size:13px !important;
  line-height:1.28 !important;
  color:#9aa3ad !important;
}
.profile-bento__visual--well{
  left:auto !important;
  right:12px !important;
  top:0 !important;
  bottom:0 !important;
  width:45% !important;
  height:100% !important;
  padding:10px 10px 10px 0 !important;
  display:grid !important;
  place-items:center !important;
}
.profile-bento__visual--well img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:86% !important;
  object-fit:contain !important;
  object-position:center center !important;
}
@media(min-width:761px){
  body[data-view="personal"] .profile-bento__wide-copy--well{
    left:34px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    max-width:300px !important;
    gap:9px !important;
  }
  body[data-view="personal"] .profile-bento__wide-copy--well strong{font-size:26px !important;}
  body[data-view="personal"] .profile-bento__wide-copy--well small{font-size:13px !important;max-width:240px !important;}
  body[data-view="personal"] .profile-bento__visual--well{right:18px !important;width:42% !important;padding:8px 8px 8px 0 !important;}
  body[data-view="personal"] .profile-bento__visual--well img{max-height:88% !important;}
}
@media(max-width:760px){
  .profile-bento__wide-copy--well{
    left:18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    gap:6px !important;
    max-width:150px !important;
  }
  .profile-bento__wide-copy--well strong{font-size:18px !important;}
  .profile-bento__wide-copy--well small{font-size:10.5px !important;max-width:130px !important;line-height:1.2 !important;}
  .profile-bento__visual--well{right:2px !important;width:47% !important;padding:6px 2px 6px 0 !important;}
  .profile-bento__visual--well img{max-height:80% !important;}
}


/* v518 — Settings polished to match Personal/Chats density */
@media(min-width:761px){
  body[data-view="settings"] .ksan-shell{
    grid-template-columns:82px minmax(0,1120px) !important;
    column-gap:10px !important;
  }
  body[data-view="settings"] .ksan-main{
    width:1120px !important;
    max-width:1120px !important;
    margin:0 !important;
  }
  body[data-view="settings"] .settings-view{
    padding:4px 0 72px !important;
  }
  body[data-view="settings"] .settings-shell{
    width:min(960px,100%) !important;
    max-width:960px !important;
    margin:0 !important;
  }
  body[data-view="settings"] .settings-head{
    margin:0 0 18px !important;
    padding:6px 4px 16px !important;
  }
  body[data-view="settings"] .settings-head h1{
    font-size:34px !important;
    font-weight:760 !important;
    letter-spacing:-.045em !important;
  }
  body[data-view="settings"] .settings-card{
    margin:0 0 12px !important;
    padding:22px 22px !important;
    border:1px solid rgba(255,255,255,.06) !important;
    border-radius:24px !important;
    background:linear-gradient(180deg,#12171d 0%, #0f1318 100%) !important;
  }
  body[data-view="settings"] .settings-card__head{
    margin-bottom:16px !important;
  }
  body[data-view="settings"] .settings-card__head strong{
    font-size:17px !important;
    font-weight:700 !important;
  }
  body[data-view="settings"] .settings-card__head small{
    font-size:12.5px !important;
    color:#7d8792 !important;
    line-height:1.45 !important;
  }
  body[data-view="settings"] .settings-avatar-row{
    gap:18px !important;
    align-items:center !important;
  }
  body[data-view="settings"] .settings-avatar-preview{
    width:92px !important;
    height:92px !important;
    font-size:26px !important;
    border-color:#323943 !important;
    background:#161b21 !important;
  }
  body[data-view="settings"] .settings-avatar-actions,
  body[data-view="settings"] .settings-actions-row{
    gap:10px !important;
    flex-wrap:wrap !important;
  }
  body[data-view="settings"] .settings-btn{
    min-height:40px !important;
    padding:0 14px !important;
    border-radius:12px !important;
    font-size:13px !important;
  }
  body[data-view="settings"] .settings-field-row{
    align-items:end !important;
    gap:12px !important;
  }
  body[data-view="settings"] .settings-field>span{
    font-size:12px !important;
    margin-bottom:7px !important;
  }
  body[data-view="settings"] .settings-field input,
  body[data-view="settings"] .settings-input-wrap{
    min-height:46px !important;
    border-radius:14px !important;
    background:#0e1217 !important;
  }
  body[data-view="settings"] .settings-input-wrap input{
    min-height:44px !important;
    font-size:14px !important;
  }
  body[data-view="settings"] .settings-field input{
    font-size:14px !important;
    padding:0 14px !important;
  }
  body[data-view="settings"] .settings-save-btn,
  body[data-view="settings"] #settingsPasswordSave{
    min-width:136px !important;
  }
  body[data-view="settings"] .settings-hint{
    margin-top:8px !important;
    font-size:12px !important;
  }
  body[data-view="settings"] .settings-bg-preview{
    aspect-ratio:4.3/1 !important;
    border-radius:16px !important;
    margin-bottom:14px !important;
  }
  body[data-view="settings"] .settings-bg-swatches{
    grid-template-columns:repeat(6,52px) !important;
    gap:10px !important;
    margin-bottom:14px !important;
  }
  body[data-view="settings"] .settings-bg-swatches button{
    width:52px !important;
    height:40px !important;
    border-radius:12px !important;
  }
  body[data-view="settings"] .settings-switch-row{
    min-height:56px !important;
    padding:0 !important;
    align-items:center !important;
  }
  body[data-view="settings"] .settings-switch-row>span b{
    font-size:15px !important;
    font-weight:650 !important;
  }
  body[data-view="settings"] .settings-switch-row>span small{
    margin-top:4px !important;
    font-size:12px !important;
  }
  body[data-view="settings"] .settings-switch-row i{
    width:48px !important;
    height:28px !important;
  }
  body[data-view="settings"] .settings-switch-row i::after{
    width:20px !important;
    height:20px !important;
  }
  body[data-view="settings"] .settings-switch-row input:checked + i::after{
    transform:translateX(20px) !important;
  }
  body[data-view="settings"] .settings-password-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  body[data-view="settings"] .settings-password-footer{
    margin-top:14px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
  }
}

@media(max-width:760px){
  body[data-view="settings"] .settings-view{
    padding:8px 0 84px !important;
  }
  body[data-view="settings"] .settings-shell{
    width:100% !important;
    margin:0 !important;
  }
  body[data-view="settings"] .settings-head{
    margin:0 0 16px !important;
    padding:0 2px 14px !important;
  }
  body[data-view="settings"] .settings-head h1{
    font-size:30px !important;
    letter-spacing:-.045em !important;
  }
  body[data-view="settings"] .settings-card{
    margin:0 0 10px !important;
    padding:18px 16px !important;
    border:1px solid rgba(255,255,255,.06) !important;
    border-radius:22px !important;
    background:linear-gradient(180deg,#12171d 0%, #0f1318 100%) !important;
  }
  body[data-view="settings"] .settings-card__head strong{
    font-size:16px !important;
  }
  body[data-view="settings"] .settings-card__head small{
    font-size:12px !important;
  }
  body[data-view="settings"] .settings-avatar-preview{
    width:80px !important;
    height:80px !important;
    font-size:24px !important;
  }
  body[data-view="settings"] .settings-avatar-actions,
  body[data-view="settings"] .settings-actions-row{
    gap:8px !important;
    flex-wrap:wrap !important;
  }
  body[data-view="settings"] .settings-btn{
    min-height:38px !important;
    border-radius:12px !important;
    font-size:12.5px !important;
  }
  body[data-view="settings"] .settings-field-row{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
  }
  body[data-view="settings"] .settings-field>span{
    font-size:12px !important;
    margin-bottom:6px !important;
  }
  body[data-view="settings"] .settings-field input,
  body[data-view="settings"] .settings-input-wrap{
    min-height:44px !important;
    border-radius:14px !important;
  }
  body[data-view="settings"] .settings-input-wrap input,
  body[data-view="settings"] .settings-field input{
    font-size:14px !important;
  }
  body[data-view="settings"] .settings-bg-preview{
    aspect-ratio:3.4/1 !important;
    border-radius:14px !important;
  }
  body[data-view="settings"] .settings-bg-swatches{
    grid-template-columns:repeat(6,40px) !important;
    gap:8px !important;
  }
  body[data-view="settings"] .settings-bg-swatches button{
    width:40px !important;
    height:32px !important;
    border-radius:10px !important;
  }
  body[data-view="settings"] .settings-switch-row{
    min-height:52px !important;
  }
  body[data-view="settings"] .settings-switch-row>span b{
    font-size:14px !important;
  }
  body[data-view="settings"] .settings-password-grid{
    gap:10px !important;
  }
  body[data-view="settings"] .settings-password-footer{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
}


/* v519 — Settings grouped by sections */
.settings-nav{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 20px;
}
.settings-nav__item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  background:linear-gradient(180deg,#12171d 0%,#0e1318 100%);
  color:#eef2f6;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}
.settings-nav__item span{
  display:grid;place-items:center;
  width:28px;height:28px;border-radius:50%;
  border:1px solid rgba(255,255,255,.08);
  color:#8ea0b2;font:700 11px/1 Geist,system-ui,sans-serif;
  background:#181d24;flex:0 0 auto;
}
.settings-nav__item b{
  font:700 14px/1.2 Geist,system-ui,sans-serif;
}
.settings-group{
  margin:0 0 22px;
}
.settings-group__head{
  display:flex;align-items:flex-start;gap:12px;
  margin:0 0 12px;padding:2px 2px 0;
}
.settings-group__head>span{
  display:grid;place-items:center;
  width:30px;height:30px;border-radius:50%;
  color:#7ee3a2;background:rgba(103,223,148,.08);
  border:1px solid rgba(103,223,148,.18);
  font:700 11px/1 Geist,system-ui,sans-serif;flex:0 0 auto;
}
.settings-group__head strong{
  display:block;margin:0;color:#f4f6f8;
  font:760 20px/1.15 Geist,system-ui,sans-serif;letter-spacing:-.03em;
}
.settings-group__head small{
  display:block;margin-top:5px;color:#7f8995;
  font:500 12.5px/1.45 Geist,system-ui,sans-serif;
}
.settings-group .settings-card{margin-top:0;margin-bottom:12px;}
.settings-card--theme{padding-bottom:16px;}
.settings-theme-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.settings-theme-option{
  display:flex;flex-direction:column;align-items:stretch;gap:10px;
  padding:14px;border-radius:18px;
  border:1px solid #2b323a;background:#10151a;color:#eef2f6;
  cursor:pointer; text-align:left;
  transition:.16s ease;
}
.settings-theme-option:hover{background:#131a20;border-color:#39414c;}
.settings-theme-option.is-selected{border-color:#67df94;box-shadow:inset 0 0 0 1px rgba(103,223,148,.12);}
.settings-theme-preview{
  position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;
  height:110px;border-radius:18px;padding:12px;overflow:hidden;
}
.settings-theme-preview::before,.settings-theme-preview::after{content:"";position:absolute;border-radius:12px;}
.settings-theme-preview i{display:block;border-radius:10px;opacity:.98;}
.settings-theme-preview i:first-child{grid-column:1/2;grid-row:1/3;}
.settings-theme-preview i:nth-child(2){grid-column:2/3;grid-row:1/2;}
.settings-theme-preview i:nth-child(3){grid-column:2/3;grid-row:2/3;}
.settings-theme-preview--light{background:#eceef3;border:1px solid #dde1e8;}
.settings-theme-preview--light i{background:#ffffff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);}
.settings-theme-preview--system{background:linear-gradient(90deg,#eceef3 0 50%,#0f1420 50% 100%);border:1px solid #2c5f3f;box-shadow:inset 0 0 0 2px rgba(103,223,148,.75);}
.settings-theme-preview--system i:first-child{background:#ffffff;}
.settings-theme-preview--system i:nth-child(2),.settings-theme-preview--system i:nth-child(3){background:#273045;}
.settings-theme-preview--dark{background:#0a101a;border:1px solid #1d2430;}
.settings-theme-preview--dark i{background:#262d3b;}
.settings-theme-meta{display:block;}
.settings-theme-meta b{display:block;font:700 16px/1.2 Geist,system-ui,sans-serif;color:#f4f6f8;}
.settings-theme-meta small{display:block;margin-top:4px;color:#7f8995;font:500 12px/1.35 Geist,system-ui,sans-serif;}

@media(max-width:760px){
  .settings-nav{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px;}
  .settings-nav__item{min-height:48px;padding:0 12px;border-radius:14px;}
  .settings-group{margin-bottom:18px;}
  .settings-group__head{margin-bottom:10px;}
  .settings-group__head strong{font-size:19px;}
  .settings-theme-grid{grid-template-columns:1fr;gap:10px;}
  .settings-theme-option{padding:12px;border-radius:16px;}
  .settings-theme-preview{height:92px;}
}

@media(min-width:761px){
  body[data-view="settings"] .settings-shell{width:min(980px,100%) !important;max-width:980px !important;}
  body[data-view="settings"] .settings-card{padding:22px 22px !important;}
}


/* v520 — settings start screen as 4 big cards + bottom drawer */
.settings-visually-hidden{
  position:absolute!important;
  width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.settings-view--cards{
  padding:6px 0 24px;
}
.settings-shell--cards{
  width:min(1280px,100%);
  max-width:1280px;
}
.settings-finance-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.settings-finance-card{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:270px;
  width:100%;
  padding:34px 38px;
  border-radius:36px;
  border:1px solid rgba(255,255,255,.05);
  background:linear-gradient(90deg,#161b22 0%,#141a20 100%);
  box-shadow:0 22px 44px rgba(0,0,0,.18);
  text-align:left;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.settings-finance-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.09);
  box-shadow:0 28px 52px rgba(0,0,0,.24);
}
.settings-finance-card:active{transform:translateY(0);}
.settings-finance-card--voucher{background:linear-gradient(90deg,#1b1714 0%,#1a1511 100%);}
.settings-finance-card--history{background:linear-gradient(90deg,#161a21 0%,#141821 100%);}
.settings-finance-card--payments{background:linear-gradient(90deg,#151a17 0%,#111714 100%);}
.settings-finance-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  max-width:60%;
}
.settings-finance-copy strong{
  color:#f3f5f7;
  font:800 36px/1.05 Geist,system-ui,sans-serif;
  letter-spacing:-.04em;
}
.settings-finance-copy small{
  color:#838c98;
  font:500 22px/1.25 Geist,system-ui,sans-serif;
}
.settings-finance-card img{
  width:190px;
  max-width:42%;
  height:auto;
  object-fit:contain;
  object-position:right center;
  flex:0 0 auto;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.settings-finance-card--payments img{width:210px;}
.settings-finance-card--history img{width:170px;}
.settings-drawer{
  position:fixed;
  inset:0;
  z-index:1200;
}
.settings-drawer__backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,6,10,.56);
  opacity:0;
  transition:opacity .22s ease;
}
.settings-drawer__sheet{
  position:absolute;
  left:50%;bottom:0;
  transform:translate(-50%,100%);
  width:min(720px,calc(100% - 24px));
  max-height:min(78vh,760px);
  overflow:auto;
  border-radius:28px 28px 0 0;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,#181d24 0%,#11161c 100%);
  box-shadow:0 -16px 40px rgba(0,0,0,.34);
  padding:18px 18px 22px;
  transition:transform .22s ease;
}
.settings-drawer.is-open .settings-drawer__backdrop{opacity:1;}
.settings-drawer.is-open .settings-drawer__sheet{transform:translate(-50%,0);}
.settings-drawer__grab{
  display:block;
  width:78px;height:6px;border:0;border-radius:999px;
  margin:0 auto 18px;
  background:rgba(255,255,255,.22);
}
.settings-drawer__head{padding:0 4px 8px;}
.settings-drawer__eyebrow{
  color:#7ee3a2;
  font:700 12px/1 Geist,system-ui,sans-serif;
  text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:10px;
}
.settings-drawer__head h2{
  margin:0;
  color:#f4f6f8;
  font:800 34px/1.04 Geist,system-ui,sans-serif;
  letter-spacing:-.045em;
}
.settings-drawer__head p{
  margin:10px 0 0;
  color:#8d96a2;
  font:500 17px/1.38 Geist,system-ui,sans-serif;
}
.settings-drawer__body{padding:10px 2px 0;}
.settings-sheet-list{display:grid;gap:12px;}
.settings-sheet-stat,
.settings-sheet-status-row,
.settings-sheet-note{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:#0f141a;
}
.settings-sheet-stat{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:16px 18px;
}
.settings-sheet-stat span{color:#7d8895;font:500 14px/1.2 Geist,system-ui,sans-serif;}
.settings-sheet-stat strong{color:#f2f5f8;font:700 16px/1.2 Geist,system-ui,sans-serif;text-align:right;}
.settings-sheet-chip-row{display:flex;flex-wrap:wrap;gap:10px;}
.settings-sheet-chip{
  border:1px solid rgba(255,255,255,.08);
  background:#0f141a;color:#eaf0f5;
  border-radius:999px;padding:12px 16px;
  font:700 14px/1 Geist,system-ui,sans-serif;
}
.settings-sheet-note{
  padding:16px 18px;color:#909aa6;font:500 14px/1.5 Geist,system-ui,sans-serif;
}
.settings-sheet-status-row{
  display:grid;gap:8px;padding:16px 18px;
}
.settings-sheet-status-row small{color:#909aa6;font:500 14px/1.45 Geist,system-ui,sans-serif;}
.settings-status{
  display:inline-flex;align-items:center;justify-content:center;
  width:max-content;min-height:30px;padding:0 12px;border-radius:999px;
  font:700 12px/1 Geist,system-ui,sans-serif;
}
.settings-status--ok{background:rgba(103,223,148,.12);color:#67df94;border:1px solid rgba(103,223,148,.18);}
.settings-status--wait{background:rgba(255,194,97,.12);color:#ffc261;border:1px solid rgba(255,194,97,.18);}
.settings-drawer__actions{display:flex;flex-wrap:wrap;gap:12px;padding:16px 2px 0;}
.settings-sheet-action{
  min-width:0;min-height:50px;padding:0 18px;border-radius:16px;
  border:1px solid #2a313a;background:#151a20;color:#eef2f5;
  font:700 15px/1 Geist,system-ui,sans-serif;
}
.settings-sheet-action--primary{background:#1f4b31;border-color:#2b6a44;color:#f5fffa;}
body.settings-drawer-open{overflow:hidden;}

@media(max-width:980px){
  .settings-finance-grid{grid-template-columns:1fr;gap:18px;}
  .settings-finance-card{min-height:210px;border-radius:28px;padding:26px 24px;}
  .settings-finance-copy{gap:10px;max-width:58%;}
  .settings-finance-copy strong{font-size:30px;}
  .settings-finance-copy small{font-size:20px;}
  .settings-finance-card img{width:150px;max-width:40%;}
}
@media(max-width:760px){
  .settings-view--cards{padding-top:2px;}
  .settings-shell--cards{width:min(100%,100%);}
  .settings-finance-grid{gap:14px;}
  .settings-finance-card{min-height:168px;border-radius:24px;padding:20px 18px;gap:14px;}
  .settings-finance-copy{max-width:56%;gap:8px;}
  .settings-finance-copy strong{font-size:20px;}
  .settings-finance-copy small{font-size:14px;}
  .settings-finance-card img{width:104px;max-width:39%;}
  .settings-finance-card--payments img{width:112px;}
  .settings-finance-card--history img{width:96px;}
  .settings-drawer__sheet{width:calc(100% - 10px);padding:14px 14px 18px;border-radius:24px 24px 0 0;}
  .settings-drawer__head h2{font-size:28px;}
  .settings-drawer__head p{font-size:15px;}
  .settings-drawer__actions{flex-direction:column;}
  .settings-sheet-action{width:100%;}
}

/* v521 — thematic settings cards + thematic bottom sheets */
.settings-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.settings-topic-card{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:250px;padding:34px 38px;border:1px solid rgba(255,255,255,.05);border-radius:36px;background:#171c22;color:#f4f6f8;text-align:left;cursor:pointer;overflow:hidden;transition:.18s ease;}
.settings-topic-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.1);}
.settings-topic-card--profile{background:#18171d}.settings-topic-card--privacy{background:#141a18}.settings-topic-card--security{background:#191614}
.settings-topic-copy{display:flex;flex-direction:column;gap:12px;z-index:2;max-width:58%;}.settings-topic-copy strong{font:800 34px/1.05 Geist,system-ui,sans-serif;letter-spacing:-.04em}.settings-topic-copy small{color:#858e99;font:500 20px/1.25 Geist,system-ui,sans-serif}
.settings-topic-visual{position:relative;display:grid;place-items:center;width:180px;height:160px;flex:0 0 auto;}
.settings-topic-visual--appearance{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;padding:18px;border-radius:28px;background:linear-gradient(135deg,#f0f2f5 0 48%,#131923 48% 100%);box-shadow:0 16px 30px rgba(0,0,0,.2)}.settings-topic-visual--appearance i{display:block;border-radius:12px;background:#fff}.settings-topic-visual--appearance i:first-child{grid-row:1/3}.settings-topic-visual--appearance i:nth-child(2),.settings-topic-visual--appearance i:nth-child(3){background:#2b3444}
.settings-topic-visual--profile{border-radius:50%;background:radial-gradient(circle at 35% 25%,#6986ff,#3e49ba 55%,#201e4a);box-shadow:0 16px 32px rgba(0,0,0,.22)}.settings-topic-visual--profile .profile-head{position:absolute;top:30px;width:54px;height:54px;border-radius:50%;background:#f3f5f7}.settings-topic-visual--profile .profile-body{position:absolute;bottom:25px;width:105px;height:62px;border-radius:55px 55px 22px 22px;background:#f3f5f7}
.settings-topic-visual svg{width:112px;height:112px;fill:none;stroke:#e8edf2;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.settings-topic-visual--privacy{border-radius:34px;background:linear-gradient(145deg,#1f633f,#123725)}.settings-topic-visual--security{border-radius:34px;background:linear-gradient(145deg,#744a2d,#352115)}
.settings-drawer__actions{display:none!important}.settings-drawer__sheet{width:min(760px,calc(100% - 24px))!important}.settings-drawer__body{padding-bottom:8px}
.settings-sheet-section{padding:16px 2px;border-top:1px solid rgba(255,255,255,.06)}.settings-sheet-section:first-child{border-top:0;padding-top:6px}.settings-sheet-section h3{margin:0 0 14px;color:#f1f4f7;font:700 16px/1.2 Geist,system-ui,sans-serif}
.settings-sheet-theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.settings-sheet-theme-grid button{border:1px solid #2b323a;border-radius:16px;background:#10151b;color:#eef2f5;padding:10px;cursor:pointer}.settings-sheet-theme-grid button.is-selected{border-color:#67df94;box-shadow:inset 0 0 0 1px rgba(103,223,148,.15)}.settings-sheet-theme-grid b{display:block;margin-top:8px;font-size:13px}.sheet-theme-preview{display:block;height:76px;border-radius:12px}.sheet-theme-preview--light{background:#e9edf3}.sheet-theme-preview--dark{background:#171d27}.sheet-theme-preview--system{background:linear-gradient(90deg,#e9edf3 0 50%,#171d27 50% 100%)}
.settings-sheet-bg-preview{height:110px;border-radius:16px;border:1px solid #2b323a;background:var(--drawer-bg,linear-gradient(180deg,#080a0d,#000));background-size:cover;background-position:center;margin-bottom:12px}.settings-sheet-swatches{display:flex;gap:9px;flex-wrap:wrap}.settings-sheet-swatches button{width:48px;height:38px;border-radius:10px;border:2px solid transparent}.settings-sheet-swatches button.is-selected{border-color:#67df94}
.settings-sheet-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px}.settings-sheet-action{min-height:40px;padding:0 14px;border:1px solid #2b323a;border-radius:12px;background:#161b21;color:#eaf0f5;font:650 12px/1 Geist,system-ui,sans-serif}.settings-sheet-action--primary{background:#1f4b31;border-color:#2b6a44}.settings-sheet-action--danger{background:#241719;border-color:#4b2b2e;color:#ef9696}
.settings-sheet-profile-row{display:flex;align-items:center;gap:18px}.settings-sheet-avatar{width:86px;height:86px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#1b2027;border:1px solid #343b44;color:#fff;font:800 24px/1 Geist}.settings-sheet-avatar img{width:100%;height:100%;object-fit:cover}
.settings-sheet-nick{height:46px;display:flex;align-items:center;border:1px solid #2d343d;border-radius:13px;background:#0f141a;padding:0 13px}.settings-sheet-nick span{color:#6f7985}.settings-sheet-nick input{flex:1;border:0;outline:0;background:transparent;color:#f0f3f6;font:600 14px/1 Geist;padding:0 4px}
.settings-sheet-hint{color:#828d98;font:600 11px/1.3 Geist}.settings-sheet-hint.is-error{color:#ef8383}.settings-sheet-hint.is-success{color:#67df94}
.settings-sheet-switch{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:66px}.settings-sheet-switch span b{display:block;font:700 15px/1.25 Geist;color:#edf1f4}.settings-sheet-switch span small{display:block;margin-top:5px;color:#818c97;font:500 12px/1.35 Geist}.settings-sheet-switch input{position:absolute;opacity:0}.settings-sheet-switch i{position:relative;width:48px;height:28px;border-radius:999px;background:#303741;flex:0 0 auto}.settings-sheet-switch i:after{content:"";position:absolute;left:4px;top:4px;width:20px;height:20px;border-radius:50%;background:#d9dee4;transition:.18s}.settings-sheet-switch input:checked+i{background:#3f8a5e}.settings-sheet-switch input:checked+i:after{transform:translateX(20px);background:#fff}
.settings-sheet-fields{display:grid;gap:10px}.settings-sheet-fields label span{display:block;margin:0 0 6px;color:#7f8a95;font:600 11px/1 Geist}.settings-sheet-fields input{width:100%;height:44px;box-sizing:border-box;border:1px solid #2d343d;border-radius:13px;background:#0f141a;color:#f0f3f6;padding:0 13px;font:600 13px/1 Geist;outline:none}
@media(max-width:980px){.settings-topic-grid{grid-template-columns:1fr;gap:16px}.settings-topic-card{min-height:205px;padding:26px 24px}.settings-topic-copy strong{font-size:29px}.settings-topic-copy small{font-size:17px}.settings-topic-visual{width:145px;height:130px}.settings-topic-visual svg{width:86px;height:86px}}
@media(max-width:760px){.settings-topic-grid{gap:12px}.settings-topic-card{min-height:155px;border-radius:24px;padding:18px 16px}.settings-topic-copy{gap:7px;max-width:58%}.settings-topic-copy strong{font-size:20px}.settings-topic-copy small{font-size:13px}.settings-topic-visual{width:104px;height:94px}.settings-topic-visual--appearance{padding:11px;gap:6px;border-radius:20px}.settings-topic-visual--profile .profile-head{top:18px;width:36px;height:36px}.settings-topic-visual--profile .profile-body{bottom:15px;width:70px;height:43px}.settings-topic-visual svg{width:64px;height:64px}.settings-drawer__sheet{width:calc(100% - 8px)!important;border-radius:24px 24px 0 0}.settings-sheet-theme-grid{grid-template-columns:1fr}.sheet-theme-preview{height:62px}.settings-sheet-profile-row{align-items:flex-start;flex-direction:column}.settings-sheet-avatar{width:76px;height:76px}}

/* v522 — settings cards tuned: smaller button typography + near full-screen drawer */
.settings-shell--cards{
  width:min(100%,1120px);
  margin:0 auto;
}
.settings-topic-grid{
  gap:18px;
}
.settings-topic-card{
  min-height:220px;
  padding:28px 30px;
  border-radius:32px;
  align-items:flex-end;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);
}
.settings-topic-card:hover{
  transform:translateY(-1px);
}
.settings-topic-copy{
  gap:8px;
  max-width:50%;
  padding-bottom:2px;
}
.settings-topic-copy strong{
  font:800 28px/1.08 Geist,system-ui,sans-serif;
  letter-spacing:-.035em;
}
.settings-topic-copy small{
  font:500 15px/1.32 Geist,system-ui,sans-serif;
  color:#8e98a5;
}
.settings-topic-visual{
  width:158px;
  height:142px;
  align-self:center;
}
.settings-topic-visual--appearance{
  border-radius:24px;
  padding:15px;
  gap:8px;
}
.settings-topic-visual--appearance i{border-radius:10px}
.settings-topic-visual--profile .profile-head{top:26px;width:46px;height:46px}
.settings-topic-visual--profile .profile-body{bottom:22px;width:92px;height:56px}
.settings-topic-visual svg{width:94px;height:94px}

.settings-drawer__sheet{
  width:min(860px,calc(100% - 28px)) !important;
  max-height:calc(100dvh - 18px);
  min-height:min(760px,88dvh);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:30px 30px 0 0;
  padding:16px 18px 0;
  transform:translate(-50%,calc(100% + 24px));
  transition:transform .28s cubic-bezier(.22,.8,.22,1);
  box-shadow:0 -20px 54px rgba(0,0,0,.42);
}
.settings-drawer__grab{
  width:76px;
  height:6px;
  margin:2px auto 16px;
  background:rgba(255,255,255,.24);
}
.settings-drawer__head{
  padding:0 8px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.settings-drawer__eyebrow{
  margin-bottom:8px;
}
.settings-drawer__head h2{
  font-size:30px;
}
.settings-drawer__head p{
  margin-top:8px;
  font-size:15px;
}
.settings-drawer__body{
  flex:1 1 auto;
  overflow:auto;
  padding:12px 8px 24px;
  scrollbar-width:thin;
}
.settings-sheet-section{
  padding:18px 2px;
}
.settings-sheet-section h3{
  margin-bottom:12px;
  font-size:15px;
}
.settings-sheet-action{
  min-height:42px;
  padding:0 14px;
  border-radius:12px;
}

@media (max-width: 980px){
  .settings-topic-grid{grid-template-columns:1fr;gap:14px}
  .settings-topic-card{min-height:190px;padding:24px 24px;border-radius:28px}
  .settings-topic-copy strong{font-size:24px}
  .settings-topic-copy small{font-size:14px}
  .settings-topic-visual{width:138px;height:122px}
  .settings-topic-visual svg{width:82px;height:82px}
  .settings-drawer__sheet{width:min(100%,calc(100% - 12px)) !important;min-height:86dvh;max-height:calc(100dvh - 10px);}
}

@media (max-width: 760px){
  .settings-topic-grid{gap:12px}
  .settings-topic-card{min-height:146px;padding:18px 16px;border-radius:24px;align-items:center}
  .settings-topic-copy{gap:6px;max-width:56%}
  .settings-topic-copy strong{font-size:19px;line-height:1.06}
  .settings-topic-copy small{font-size:12px;line-height:1.28}
  .settings-topic-visual{width:96px;height:86px}
  .settings-topic-visual--appearance{padding:10px;gap:6px;border-radius:18px}
  .settings-topic-visual--profile .profile-head{top:17px;width:34px;height:34px}
  .settings-topic-visual--profile .profile-body{bottom:14px;width:66px;height:40px}
  .settings-topic-visual svg{width:60px;height:60px}
  .settings-drawer__sheet{
    width:calc(100% - 6px) !important;
    min-height:92dvh;
    max-height:calc(100dvh - 4px);
    border-radius:26px 26px 0 0;
    padding:12px 12px 0;
  }
  .settings-drawer__grab{margin-bottom:12px}
  .settings-drawer__head{padding:0 6px 12px}
  .settings-drawer__head h2{font-size:26px}
  .settings-drawer__head p{font-size:14px}
  .settings-drawer__body{padding:10px 6px 20px}
  .settings-sheet-theme-grid{grid-template-columns:1fr}
  .sheet-theme-preview{height:62px}
  .settings-sheet-profile-row{align-items:flex-start;flex-direction:column}
  .settings-sheet-avatar{width:76px;height:76px}
}



/* v523 — refine settings topic cards and enlarge drawer */
.settings-shell--cards{
  width:min(100%,1080px);
  max-width:1080px;
}
.settings-topic-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.settings-topic-card{
  min-height:198px;
  padding:24px 28px;
  border-radius:30px;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}
.settings-topic-copy{
  max-width:50%;
  gap:6px;
}
.settings-topic-copy strong{
  font:800 24px/1.06 Geist,system-ui,sans-serif;
  letter-spacing:-.03em;
}
.settings-topic-copy small{
  font:500 13px/1.34 Geist,system-ui,sans-serif;
  color:#8e97a3;
  letter-spacing:-.01em;
}
.settings-topic-visual{
  width:130px;
  height:116px;
}
.settings-topic-visual svg{
  width:78px;
  height:78px;
}
.settings-topic-visual--appearance{
  padding:13px;
  gap:7px;
  border-radius:22px;
}
.settings-topic-visual--profile .profile-head{
  top:22px;
  width:42px;
  height:42px;
}
.settings-topic-visual--profile .profile-body{
  bottom:19px;
  width:82px;
  height:49px;
}

.settings-drawer__backdrop{
  background:rgba(3,6,10,.68);
  backdrop-filter:blur(8px);
}
.settings-drawer__sheet{
  width:min(1120px,calc(100% - 16px)) !important;
  min-height:90dvh;
  max-height:96dvh;
  border-radius:30px 30px 0 0;
  padding:12px 16px 0;
  background:linear-gradient(180deg,#1a2028 0%,#121821 100%);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 -24px 64px rgba(0,0,0,.48);
  transform:translate(-50%,calc(100% + 26px));
  transition:transform .32s cubic-bezier(.22,.8,.22,1);
}
.settings-drawer__grab{
  width:84px;
  height:6px;
  margin:4px auto 14px;
  background:rgba(255,255,255,.26);
}
.settings-drawer__head{
  padding:0 10px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.settings-drawer__eyebrow{
  margin-bottom:8px;
  font-size:11px;
}
.settings-drawer__head h2{
  font:800 28px/1.05 Geist,system-ui,sans-serif;
  letter-spacing:-.03em;
}
.settings-drawer__head p{
  margin-top:7px;
  font:500 14px/1.42 Geist,system-ui,sans-serif;
  color:#9099a5;
}
.settings-drawer__body{
  flex:1 1 auto;
  overflow:auto;
  padding:10px 10px 26px;
}
.settings-sheet-section{
  padding:18px 0;
}
.settings-sheet-section h3{
  margin-bottom:10px;
  font:700 14px/1.2 Geist,system-ui,sans-serif;
  color:#d8dde3;
}
.settings-sheet-action{
  min-height:44px;
  padding:0 14px;
  border-radius:13px;
}

@media (max-width: 980px){
  .settings-shell--cards{max-width:100%;}
  .settings-topic-grid{grid-template-columns:1fr;gap:14px;}
  .settings-topic-card{min-height:176px;padding:22px 22px;border-radius:26px;}
  .settings-topic-copy strong{font-size:22px;}
  .settings-topic-copy small{font-size:13px;}
  .settings-topic-visual{width:118px;height:104px;}
  .settings-topic-visual svg{width:72px;height:72px;}
  .settings-drawer__sheet{width:min(100%,calc(100% - 10px)) !important;min-height:92dvh;max-height:97dvh;}
}

@media (max-width: 760px){
  .settings-topic-grid{gap:12px;}
  .settings-topic-card{min-height:138px;padding:16px 16px;border-radius:24px;gap:14px;}
  .settings-topic-copy{max-width:58%;gap:5px;}
  .settings-topic-copy strong{font-size:18px;line-height:1.05;}
  .settings-topic-copy small{font-size:11px;line-height:1.28;}
  .settings-topic-visual{width:90px;height:80px;}
  .settings-topic-visual--appearance{padding:9px;gap:5px;border-radius:18px;}
  .settings-topic-visual--profile .profile-head{top:16px;width:32px;height:32px;}
  .settings-topic-visual--profile .profile-body{bottom:13px;width:62px;height:38px;}
  .settings-topic-visual svg{width:56px;height:56px;}
  .settings-drawer__sheet{
    width:calc(100% - 4px) !important;
    min-height:94dvh;
    max-height:calc(100dvh - 2px);
    border-radius:24px 24px 0 0;
    padding:10px 10px 0;
  }
  .settings-drawer__grab{margin-bottom:10px;}
  .settings-drawer__head{padding:0 6px 12px;}
  .settings-drawer__head h2{font-size:24px;}
  .settings-drawer__head p{font-size:13px;}
  .settings-drawer__body{padding:8px 6px 20px;}
}


/* v524 — settings panel opens inside right content area without covering sidebar */
.settings-shell--cards{
  width:min(100%,1280px);
  max-width:1280px;
}
.settings-workspace{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:start;
}
.settings-workspace.has-panel{
  grid-template-columns:minmax(350px,430px) minmax(560px,1fr);
}
.settings-workspace.has-panel .settings-topic-grid{
  grid-template-columns:1fr;
  gap:16px;
}
.settings-workspace.has-panel .settings-topic-card{
  min-height:148px;
  padding:18px 18px;
  border-radius:26px;
}
.settings-workspace.has-panel .settings-topic-copy strong{font-size:21px;}
.settings-workspace.has-panel .settings-topic-copy small{font-size:12px;}
.settings-workspace.has-panel .settings-topic-visual{width:88px;height:78px;}
.settings-workspace.has-panel .settings-topic-visual svg{width:52px;height:52px;}
.settings-topic-card.is-selected{
  box-shadow:0 0 0 1px rgba(69,234,154,.55), inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 38px rgba(0,0,0,.34);
}
.settings-drawer--inline{
  position:relative;
  inset:auto;
  display:block;
  z-index:1;
}
.settings-drawer--inline .settings-drawer__backdrop{
  display:none;
}
.settings-drawer--inline .settings-drawer__sheet{
  position:sticky;
  top:22px;
  left:auto;
  width:100% !important;
  min-height:760px;
  max-height:calc(100dvh - 52px);
  transform:translateY(14px);
  opacity:0;
  padding:12px 18px 20px;
  border-radius:34px;
  overflow:hidden;
  background:linear-gradient(180deg,#171d26 0%,#131923 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 28px 70px rgba(0,0,0,.42);
}
.settings-drawer--inline.is-open .settings-drawer__sheet{
  transform:translateY(0);
  opacity:1;
}
.settings-drawer__head-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.settings-drawer__close{
  width:40px;
  height:40px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#f2f4f8;
  font:700 18px/1 Geist,system-ui,sans-serif;
  cursor:pointer;
}
.settings-drawer__close:hover{background:rgba(255,255,255,.09);}
.settings-drawer__grab{
  pointer-events:none;
  opacity:.9;
}
.settings-drawer--inline .settings-drawer__head{
  padding:0 8px 16px;
}
.settings-drawer--inline .settings-drawer__eyebrow{
  margin-bottom:10px;
}
.settings-drawer--inline .settings-drawer__head h2{
  font-size:50px;
  line-height:1.02;
}
.settings-drawer--inline .settings-drawer__head p{
  margin-top:8px;
  font-size:17px;
  line-height:1.35;
}
.settings-drawer--inline .settings-drawer__body{
  padding:4px 8px 18px;
  overflow:auto;
  max-height:calc(100dvh - 200px);
}
.settings-drawer--inline .settings-sheet-section{
  padding:20px 0;
}
.settings-drawer--inline .settings-sheet-section h3{
  margin-bottom:14px;
}
.settings-drawer--inline .settings-sheet-theme-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.settings-drawer--inline .sheet-theme-preview{height:120px;}
.settings-drawer--inline .settings-sheet-swatches{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.settings-drawer--inline .settings-sheet-bg-preview{height:132px;}
.settings-drawer--inline .settings-sheet-fields{max-width:720px;}
.settings-drawer--inline .settings-sheet-profile-row{align-items:center;}

@media (max-width: 1180px){
  .settings-workspace.has-panel{grid-template-columns:minmax(320px,380px) minmax(480px,1fr);}
  .settings-drawer--inline .settings-drawer__head h2{font-size:42px;}
}
@media (max-width: 980px){
  .settings-workspace,.settings-workspace.has-panel{grid-template-columns:1fr;}
  .settings-workspace.has-panel .settings-topic-grid{grid-template-columns:1fr 1fr;gap:14px;}
  .settings-workspace.has-panel .settings-topic-card{min-height:166px;}
  .settings-drawer--inline .settings-drawer__sheet{
    position:relative;
    top:0;
    min-height:auto;
    max-height:none;
    border-radius:28px;
    padding:12px 14px 18px;
  }
  .settings-drawer--inline .settings-drawer__head h2{font-size:34px;}
  .settings-drawer--inline .settings-drawer__body{max-height:none;}
}
@media (max-width: 760px){
  .settings-workspace,.settings-workspace.has-panel{gap:14px;}
  .settings-workspace.has-panel .settings-topic-grid,
  .settings-topic-grid{grid-template-columns:1fr;gap:12px;}
  .settings-drawer--inline .settings-drawer__sheet{
    border-radius:26px;
    padding:10px 10px 16px;
  }
  .settings-drawer--inline .settings-drawer__head{padding:0 4px 12px;}
  .settings-drawer__close{width:36px;height:36px;border-radius:12px;}
  .settings-drawer--inline .settings-drawer__head h2{font-size:28px;}
  .settings-drawer--inline .settings-drawer__head p{font-size:14px;}
  .settings-drawer--inline .settings-drawer__body{padding:4px 4px 14px;}
  .settings-drawer--inline .sheet-theme-preview{height:88px;}
  .settings-drawer--inline .settings-sheet-theme-grid,
  .settings-drawer--inline .settings-sheet-swatches{grid-template-columns:1fr;}
}


/* v525 — selected setting replaces the settings cards inside content area */
.settings-shell--cards{
  width:min(100%,1120px) !important;
  max-width:1120px !important;
  margin:0 !important;
}
.settings-workspace{
  display:block !important;
  width:100% !important;
}
.settings-workspace.has-panel .settings-topic-grid{
  display:none !important;
}
.settings-workspace:not(.has-panel) .settings-drawer--inline{
  display:none !important;
}
.settings-workspace.has-panel .settings-drawer--inline{
  display:block !important;
  width:100% !important;
}
.settings-drawer--inline{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  z-index:2 !important;
}
.settings-drawer--inline .settings-drawer__backdrop{
  display:none !important;
}
.settings-drawer--inline .settings-drawer__sheet{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  top:auto !important;
  width:100% !important;
  min-height:calc(100dvh - 42px) !important;
  max-height:none !important;
  overflow:visible !important;
  border-radius:30px !important;
  padding:14px 22px 28px !important;
  box-sizing:border-box !important;
  background:linear-gradient(180deg,#181e27 0%,#121820 100%) !important;
  border:1px solid rgba(255,255,255,.065) !important;
  box-shadow:0 28px 72px rgba(0,0,0,.38) !important;
  transform:translateY(72px) scale(.99) !important;
  opacity:0 !important;
  transition:transform .34s cubic-bezier(.22,.8,.22,1),opacity .22s ease !important;
}
.settings-drawer--inline.is-open .settings-drawer__sheet{
  transform:translateY(0) scale(1) !important;
  opacity:1 !important;
}
.settings-drawer--inline .settings-drawer__grab{
  width:86px !important;
  height:6px !important;
  margin:2px auto 18px !important;
  background:rgba(255,255,255,.25) !important;
}
.settings-drawer--inline .settings-drawer__head{
  padding:0 8px 18px !important;
  border-bottom:1px solid rgba(255,255,255,.065) !important;
}
.settings-drawer__head-main{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:20px !important;
}
.settings-drawer--inline .settings-drawer__eyebrow{
  margin-bottom:10px !important;
  color:#67df94 !important;
}
.settings-drawer--inline .settings-drawer__head h2{
  margin:0 !important;
  font:800 44px/1.02 Geist,system-ui,sans-serif !important;
  letter-spacing:-.045em !important;
}
.settings-drawer--inline .settings-drawer__head p{
  margin:8px 0 0 !important;
  font:500 16px/1.35 Geist,system-ui,sans-serif !important;
  color:#8e98a4 !important;
}
.settings-drawer__close{
  width:44px !important;
  height:44px !important;
  flex:0 0 auto !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(255,255,255,.06) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.055) !important;
  color:#eef2f6 !important;
  font:600 24px/1 Geist,system-ui,sans-serif !important;
  cursor:pointer !important;
}
.settings-drawer__close:hover{
  background:rgba(255,255,255,.09) !important;
}
.settings-drawer--inline .settings-drawer__body{
  padding:12px 8px 20px !important;
  overflow:visible !important;
  max-height:none !important;
}
.settings-drawer--inline .settings-sheet-section{
  padding:22px 0 !important;
}
.settings-drawer--inline .settings-sheet-section h3{
  margin:0 0 16px !important;
  font-size:15px !important;
}
.settings-drawer--inline .settings-sheet-theme-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
}
.settings-drawer--inline .sheet-theme-preview{
  height:132px !important;
}
.settings-drawer--inline .settings-sheet-bg-preview{
  height:150px !important;
  border-radius:18px !important;
}
.settings-drawer--inline .settings-sheet-swatches{
  gap:12px !important;
}
.settings-drawer--inline .settings-sheet-swatches button{
  width:58px !important;
  height:44px !important;
  border-radius:12px !important;
}
.settings-drawer--inline .settings-sheet-profile-row{
  align-items:center !important;
  gap:22px !important;
}
.settings-drawer--inline .settings-sheet-avatar{
  width:100px !important;
  height:100px !important;
}
.settings-drawer--inline .settings-sheet-nick{
  height:50px !important;
  border-radius:14px !important;
}
.settings-drawer--inline .settings-sheet-fields{
  max-width:760px !important;
  gap:12px !important;
}
.settings-drawer--inline .settings-sheet-fields input{
  height:48px !important;
}
.settings-drawer--inline .settings-sheet-switch{
  min-height:76px !important;
}
body.settings-drawer-open{
  overflow:auto !important;
}

@media(max-width:980px){
  .settings-drawer--inline .settings-drawer__sheet{
    min-height:auto !important;
    border-radius:28px !important;
    padding:12px 16px 24px !important;
  }
  .settings-drawer--inline .settings-drawer__head h2{
    font-size:36px !important;
  }
}

@media(max-width:760px){
  .settings-drawer--inline .settings-drawer__sheet{
    min-height:calc(100dvh - 92px) !important;
    border-radius:26px !important;
    padding:10px 12px 20px !important;
  }
  .settings-drawer--inline .settings-drawer__grab{
    margin-bottom:14px !important;
  }
  .settings-drawer--inline .settings-drawer__head{
    padding:0 4px 14px !important;
  }
  .settings-drawer--inline .settings-drawer__head h2{
    font-size:30px !important;
  }
  .settings-drawer--inline .settings-drawer__head p{
    font-size:14px !important;
  }
  .settings-drawer__close{
    width:38px !important;
    height:38px !important;
    font-size:20px !important;
  }
  .settings-drawer--inline .settings-drawer__body{
    padding:8px 4px 16px !important;
  }
  .settings-drawer--inline .settings-sheet-theme-grid{
    grid-template-columns:1fr !important;
  }
  .settings-drawer--inline .sheet-theme-preview{
    height:92px !important;
  }
  .settings-drawer--inline .settings-sheet-profile-row{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
  .settings-drawer--inline .settings-sheet-avatar{
    width:84px !important;
    height:84px !important;
  }
}


/* v526 — Settings landing: Library-style vertical rows + random Ksan line */
.settings-shell--cards{
  width:min(100%,920px) !important;
  max-width:920px !important;
  margin:0 !important;
}
.settings-library-head{
  padding:8px 4px 22px;
}
.settings-library-head h1{
  margin:0;
  color:#f4f6f8;
  font:800 38px/1.02 Geist,system-ui,sans-serif;
  letter-spacing:-.045em;
}
.settings-library-head p{
  max-width:720px;
  margin:10px 0 0;
  color:#858f9a;
  font:500 14px/1.45 Geist,system-ui,sans-serif;
}
.settings-library-head p b{
  color:#69df94;
  font-weight:700;
}
.settings-workspace.has-panel + *{}
.settings-workspace.has-panel ~ *{}
.settings-workspace.has-panel{
  width:100%;
}
.settings-workspace.has-panel .settings-library-head{display:none!important}
.settings-topic-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
}
.settings-topic-card{
  position:relative !important;
  display:grid !important;
  grid-template-columns:84px minmax(0,1fr) 42px !important;
  align-items:center !important;
  justify-content:stretch !important;
  gap:18px !important;
  min-height:112px !important;
  padding:14px 20px 14px 16px !important;
  border-radius:28px !important;
  border:1px solid rgba(255,255,255,.055) !important;
  text-align:left !important;
  box-shadow:none !important;
}
.settings-topic-card--appearance{
  background:linear-gradient(90deg,#2b1f27 0%,#20191f 100%) !important;
}
.settings-topic-card--profile{
  background:linear-gradient(90deg,#171b27 0%,#141820 100%) !important;
}
.settings-topic-card--privacy{
  background:linear-gradient(90deg,#15241c 0%,#121a16 100%) !important;
}
.settings-topic-card--security{
  background:linear-gradient(90deg,#261c16 0%,#1b1612 100%) !important;
}
.settings-topic-card:hover{
  transform:translateY(-1px) !important;
  border-color:rgba(255,255,255,.1) !important;
}
.settings-topic-copy{
  grid-column:2 !important;
  grid-row:1 !important;
  max-width:none !important;
  gap:4px !important;
}
.settings-topic-copy strong{
  font:750 18px/1.12 Geist,system-ui,sans-serif !important;
  letter-spacing:-.025em !important;
}
.settings-topic-copy small{
  color:#8f98a4 !important;
  font:500 12.5px/1.35 Geist,system-ui,sans-serif !important;
}
.settings-topic-visual{
  grid-column:1 !important;
  grid-row:1 !important;
  width:72px !important;
  height:72px !important;
  justify-self:center !important;
  align-self:center !important;
}
.settings-topic-visual svg{
  width:44px !important;
  height:44px !important;
}
.settings-topic-visual--appearance{
  padding:9px !important;
  gap:5px !important;
  border-radius:18px !important;
}
.settings-topic-visual--appearance i{border-radius:7px !important}
.settings-topic-visual--profile .profile-head{
  top:13px !important;
  width:28px !important;
  height:28px !important;
}
.settings-topic-visual--profile .profile-body{
  bottom:11px !important;
  width:54px !important;
  height:32px !important;
}
.settings-topic-chevron{
  grid-column:3;
  grid-row:1;
  align-self:center;
  justify-self:end;
  color:#a5adb7;
  font:300 38px/1 Geist,system-ui,sans-serif;
  transform:translateY(-1px);
}
.settings-topic-card.is-selected{
  box-shadow:0 0 0 1px rgba(103,223,148,.5) !important;
}

/* Selected section takes the content area; landing list disappears like v525 */
.settings-workspace.has-panel .settings-topic-grid{
  display:none !important;
}
.settings-workspace.has-panel ~ .settings-library-head,
.settings-workspace.has-panel .settings-library-head{
  display:none !important;
}
.settings-workspace.has-panel .settings-drawer--inline{
  width:100% !important;
}

/* Panel stays inside content right of the sidebar */
.settings-drawer--inline .settings-drawer__sheet{
  min-height:calc(100dvh - 34px) !important;
  border-radius:28px !important;
}

@media(max-width:760px){
  .settings-shell--cards{
    width:100% !important;
  }
  .settings-library-head{
    padding:4px 4px 16px;
  }
  .settings-library-head h1{
    font-size:30px;
  }
  .settings-library-head p{
    margin-top:8px;
    font-size:12.5px;
  }
  .settings-topic-grid{
    gap:10px !important;
  }
  .settings-topic-card{
    grid-template-columns:64px minmax(0,1fr) 30px !important;
    min-height:94px !important;
    padding:12px 14px 12px 12px !important;
    gap:12px !important;
    border-radius:23px !important;
  }
  .settings-topic-copy strong{
    font-size:16px !important;
  }
  .settings-topic-copy small{
    font-size:11.5px !important;
  }
  .settings-topic-visual{
    width:58px !important;
    height:58px !important;
  }
  .settings-topic-visual svg{
    width:36px !important;
    height:36px !important;
  }
  .settings-topic-chevron{
    font-size:30px;
  }
}


/* v527 — reliable settings card clicks + clear tap feedback */
.settings-topic-card{
  pointer-events:auto !important;
  touch-action:manipulation !important;
}
.settings-topic-card .settings-topic-copy,
.settings-topic-card .settings-topic-visual,
.settings-topic-card .settings-topic-chevron,
.settings-topic-card .settings-topic-visual *{
  pointer-events:none !important;
}
.settings-topic-card:active{
  transform:scale(.992) !important;
}
.settings-library-head p{
  min-height:20px;
}


/* v528 — light Settings modal, visually aligned with Platinum purchase */
body[data-view="settings"] .settings-view{
  position:relative !important;
}

body[data-view="settings"] .settings-workspace.has-panel{
  display:block !important;
}

body[data-view="settings"] .settings-workspace.has-panel .settings-topic-grid{
  display:none !important;
}

body[data-view="settings"] .settings-drawer--inline{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  min-height:calc(100dvh - 70px) !important;
  display:grid !important;
  place-items:start center !important;
  padding:22px 0 40px !important;
  box-sizing:border-box !important;
}

body[data-view="settings"] .settings-drawer--inline .settings-drawer__backdrop{
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  border-radius:32px !important;
  background:rgba(0,0,0,.48) !important;
  backdrop-filter:blur(8px) !important;
  -webkit-backdrop-filter:blur(8px) !important;
  opacity:0 !important;
  transition:opacity .22s ease !important;
}

body[data-view="settings"] .settings-drawer--inline.is-open .settings-drawer__backdrop{
  opacity:1 !important;
}

body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
  position:relative !important;
  z-index:2 !important;
  left:auto !important;
  top:auto !important;
  bottom:auto !important;
  width:min(760px,calc(100% - 44px)) !important;
  min-height:0 !important;
  max-height:min(90dvh,920px) !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:auto !important;
  border:0 !important;
  border-radius:30px !important;
  background:#fff !important;
  color:#171a20 !important;
  box-shadow:0 40px 120px rgba(0,0,0,.45) !important;
  transform:translateY(34px) scale(.985) !important;
  opacity:0 !important;
  transition:
    transform .26s cubic-bezier(.22,.8,.22,1),
    opacity .18s ease !important;
  scrollbar-width:none !important;
}

body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet::-webkit-scrollbar{
  display:none !important;
}

body[data-view="settings"] .settings-drawer--inline.is-open .settings-drawer__sheet{
  transform:translateY(0) scale(1) !important;
  opacity:1 !important;
}

body[data-view="settings"] .settings-drawer__grab{
  width:64px !important;
  height:5px !important;
  margin:12px auto 6px !important;
  border:0 !important;
  border-radius:999px !important;
  background:#d5d9de !important;
  pointer-events:none !important;
}

body[data-view="settings"] .settings-drawer__head{
  padding:18px 30px 22px !important;
  border-bottom:1px solid #e9ecf0 !important;
  background:#fff !important;
}

body[data-view="settings"] .settings-drawer__head-main{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:18px !important;
}

body[data-view="settings"] .settings-drawer__eyebrow{
  margin:0 0 8px !important;
  color:#6f7780 !important;
  font:700 11px/1 Geist,system-ui,sans-serif !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
}

body[data-view="settings"] .settings-drawer__head h2{
  margin:0 !important;
  color:#171a20 !important;
  font:800 30px/1.04 Geist,system-ui,sans-serif !important;
  letter-spacing:-.04em !important;
}

body[data-view="settings"] .settings-drawer__head p{
  margin:8px 0 0 !important;
  color:#7d8793 !important;
  font:500 14px/1.45 Geist,system-ui,sans-serif !important;
}

body[data-view="settings"] .settings-drawer__close{
  flex:0 0 auto !important;
  width:42px !important;
  height:42px !important;
  border:0 !important;
  border-radius:50% !important;
  background:#f0f2f4 !important;
  color:#24282e !important;
  font:700 18px/1 Geist,system-ui,sans-serif !important;
  cursor:pointer !important;
}

body[data-view="settings"] .settings-drawer__close:hover{
  background:#e7eaee !important;
}

body[data-view="settings"] .settings-drawer__body{
  max-height:none !important;
  overflow:visible !important;
  padding:24px 30px 30px !important;
  background:#fff !important;
  color:#171a20 !important;
}

body[data-view="settings"] .settings-sheet-section{
  margin:0 0 18px !important;
  padding:22px !important;
  border:1px solid #e7eaee !important;
  border-radius:24px !important;
  background:#f8f9fa !important;
}

body[data-view="settings"] .settings-sheet-section:first-child{
  padding-top:22px !important;
}

body[data-view="settings"] .settings-sheet-section h3{
  margin:0 0 14px !important;
  color:#171a20 !important;
  font:750 16px/1.2 Geist,system-ui,sans-serif !important;
  letter-spacing:-.02em !important;
}

/* Theme cards */
body[data-view="settings"] .settings-sheet-theme-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
}

body[data-view="settings"] .settings-sheet-theme-grid button{
  padding:10px !important;
  border:1px solid #dfe3e8 !important;
  border-radius:18px !important;
  background:#fff !important;
  color:#171a20 !important;
}

body[data-view="settings"] .settings-sheet-theme-grid button.is-selected{
  border-color:#45c979 !important;
  box-shadow:0 0 0 2px rgba(69,201,121,.12) !important;
}

body[data-view="settings"] .settings-sheet-theme-grid b{
  color:#171a20 !important;
  font-size:13px !important;
}

body[data-view="settings"] .sheet-theme-preview{
  height:82px !important;
  border-radius:14px !important;
}

/* Background */
body[data-view="settings"] .settings-sheet-bg-preview{
  height:132px !important;
  border:1px solid #dfe3e8 !important;
  border-radius:18px !important;
  background-color:#fff !important;
}

body[data-view="settings"] .settings-sheet-swatches{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}

body[data-view="settings"] .settings-sheet-swatches button{
  width:52px !important;
  height:40px !important;
  border:2px solid transparent !important;
  border-radius:12px !important;
}

body[data-view="settings"] .settings-sheet-swatches button.is-selected{
  border-color:#45c979 !important;
}

/* Profile */
body[data-view="settings"] .settings-sheet-profile-row{
  align-items:center !important;
  gap:18px !important;
}

body[data-view="settings"] .settings-sheet-avatar{
  width:92px !important;
  height:92px !important;
  border:1px solid #dfe3e8 !important;
  background:#eef1f4 !important;
  color:#171a20 !important;
}

body[data-view="settings"] .settings-sheet-nick{
  height:48px !important;
  border:1px solid #dfe3e8 !important;
  border-radius:15px !important;
  background:#fff !important;
}

body[data-view="settings"] .settings-sheet-nick span{
  color:#858e98 !important;
}

body[data-view="settings"] .settings-sheet-nick input{
  color:#171a20 !important;
}

/* Security fields */
body[data-view="settings"] .settings-sheet-fields{
  display:grid !important;
  gap:12px !important;
  max-width:none !important;
}

body[data-view="settings"] .settings-sheet-fields label span{
  margin-bottom:7px !important;
  color:#7d8793 !important;
  font-size:11px !important;
}

body[data-view="settings"] .settings-sheet-fields input{
  height:48px !important;
  border:1px solid #dfe3e8 !important;
  border-radius:15px !important;
  background:#fff !important;
  color:#171a20 !important;
  font-size:14px !important;
}

body[data-view="settings"] .settings-sheet-fields input::placeholder{
  color:#a4abb3 !important;
}

/* Privacy */
body[data-view="settings"] .settings-sheet-switch{
  min-height:72px !important;
}

body[data-view="settings"] .settings-sheet-switch span b{
  color:#171a20 !important;
  font-size:15px !important;
}

body[data-view="settings"] .settings-sheet-switch span small{
  color:#7d8793 !important;
}

body[data-view="settings"] .settings-sheet-switch i{
  background:#d8dde3 !important;
}

body[data-view="settings"] .settings-sheet-switch input:checked+i{
  background:#45c979 !important;
}

/* Buttons */
body[data-view="settings"] .settings-sheet-actions{
  gap:10px !important;
  margin-top:16px !important;
}

body[data-view="settings"] .settings-sheet-action{
  min-height:44px !important;
  padding:0 16px !important;
  border:1px solid #dfe3e8 !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#30343a !important;
  font-size:13px !important;
}

body[data-view="settings"] .settings-sheet-action--primary{
  border-color:#171a20 !important;
  background:#171a20 !important;
  color:#fff !important;
}

body[data-view="settings"] .settings-sheet-action--danger{
  border-color:#f0d6d8 !important;
  background:#fff3f4 !important;
  color:#c34b55 !important;
}

body[data-view="settings"] .settings-sheet-hint{
  color:#7d8793 !important;
}

body[data-view="settings"] .settings-sheet-hint.is-error{
  color:#c34b55 !important;
}

body[data-view="settings"] .settings-sheet-hint.is-success{
  color:#2f9d5a !important;
}

/* Only content area is dimmed: left navigation remains fully visible */
body[data-view="settings"].settings-drawer-open .ksan-sidebar{
  filter:none !important;
  opacity:1 !important;
}

@media(max-width:860px){
  body[data-view="settings"] .settings-drawer--inline{
    padding:12px 0 28px !important;
  }

  body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
    width:min(100%,calc(100% - 20px)) !important;
    max-height:92dvh !important;
    border-radius:26px !important;
  }

  body[data-view="settings"] .settings-drawer__head{
    padding:16px 20px 18px !important;
  }

  body[data-view="settings"] .settings-drawer__body{
    padding:20px !important;
  }
}

@media(max-width:680px){
  body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
    width:calc(100% - 10px) !important;
    border-radius:24px 24px 0 0 !important;
  }

  body[data-view="settings"] .settings-drawer__head h2{
    font-size:26px !important;
  }

  body[data-view="settings"] .settings-sheet-theme-grid{
    grid-template-columns:1fr !important;
  }

  body[data-view="settings"] .settings-sheet-profile-row{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
}

/* v529 — Settings behaves like a fixed app workspace; panels no longer duplicate the Settings header. */
body[data-view="settings"] .content-brand{display:none!important;}
body[data-view="settings"] .settings-library-head[hidden]{display:none!important;}
body[data-view="settings"] .settings-drawer__eyebrow{display:none!important;}

@media(min-width:761px){
  body[data-view="settings"]{
    overflow:hidden!important;
  }
  body[data-view="settings"] .ksan-shell{
    height:100dvh!important;
    min-height:100dvh!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }
  body[data-view="settings"] .ksan-main{
    height:calc(100dvh - 36px)!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body[data-view="settings"] .settings-view{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body[data-view="settings"] .settings-shell--cards{
    width:min(100%,920px)!important;
    max-width:920px!important;
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body[data-view="settings"] .settings-library-head{
    flex:0 0 auto!important;
    padding:8px 4px 18px!important;
  }
  body[data-view="settings"] .settings-workspace{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body[data-view="settings"] .settings-topic-grid{
    height:100%!important;
    min-height:0!important;
    align-content:start!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    padding:0 4px 18px 0!important;
  }
  body[data-view="settings"] .settings-topic-grid::-webkit-scrollbar{display:none!important;}

  body[data-view="settings"] .settings-workspace.has-panel{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body[data-view="settings"] .settings-drawer--inline{
    height:100%!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
    place-items:center!important;
  }
  body[data-view="settings"] .settings-drawer--inline .settings-drawer__backdrop{
    position:absolute!important;
    inset:0!important;
    border-radius:28px!important;
  }
  body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
    width:min(760px,calc(100% - 32px))!important;
    max-height:calc(100% - 28px)!important;
    margin:auto!important;
  }
  body[data-view="settings"] .settings-drawer__head{
    position:sticky!important;
    top:0!important;
    z-index:3!important;
    padding-top:22px!important;
  }
}

@media(max-width:760px){
  body[data-view="settings"] .settings-library-head[hidden]{display:none!important;}
  body[data-view="settings"] .settings-drawer__head{padding-top:20px!important;}
}

/* v530 — one desktop content geometry across Personal, Chats, Settings and app workspaces. */
@media(min-width:761px){
  body[data-view] .ksan-shell{
    grid-template-columns:82px minmax(0,1120px) !important;
    column-gap:10px !important;
    /* Keep the whole sidebar + workspace composition centered, as in Personal/Chats. */
    justify-content:center !important;
  }
  body[data-view] .ksan-main{
    width:1120px !important;
    max-width:1120px !important;
    margin:0 !important;
    min-width:0 !important;
  }

  /* Native right-column measure: the same 960px used by Personal. */
  body[data-view="personal"] .profile-page,
  body[data-view="chats"] .chats-workspace,
  body[data-view="settings"] .settings-shell--cards,
  body[data-view="communities"] #communitiesView,
  body[data-view="lounge"] #loungeView,
  body[data-view="wallet"] #walletView,
  body[data-view="wall"] #wall2010View,
  body[data-view="ai"] #aiWorkspace{
    width:min(960px,100%) !important;
    max-width:960px !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  body[data-view="chats"] .chats-workspace{
    min-height:100% !important;
  }

  body[data-view="settings"] .settings-shell--cards{
    width:min(960px,100%) !important;
    max-width:960px !important;
  }

  /* Keep app-like scrolling inside the right workspace without shifting its geometry. */
  body[data-view="settings"] .settings-view,
  body[data-view="settings"] .settings-workspace,
  body[data-view="chats"] #chatsView,
  body[data-view="communities"] #communitiesView,
  body[data-view="lounge"] #loungeView,
  body[data-view="wallet"] #walletView,
  body[data-view="wall"] #wall2010View,
  body[data-view="ai"] #aiWorkspace{
    box-sizing:border-box !important;
  }
}


/* v532 — stable app-style loader between workspace views */
.ksan-main{position:relative!important;}







@keyframes ksanLoaderBreathe{
  0%,100%{opacity:.78}
  50%{opacity:1}
}
@media(prefers-reduced-motion:reduce){
  
}
@media(max-width:760px){
  
  
  
  
}

/* v533 — app-like workspace switching: mounted views swap inside one stable scene. */
.ksan-main{
  overflow-anchor:none;
}
#personalView,
#chatsView,
#communitiesView,
#settingsView,
#wall2010View,
.ai-workspace,
.finance-view{
  transition:none!important;
  transform:none!important;
}
.ksan-view-enter{
  opacity:1!important;
  transform:none!important;
  filter:none!important;
}
body.ksan-app-switching .ksan-sidebar{
  pointer-events:auto;
}
@media (prefers-reduced-motion:reduce){
  #personalView,#chatsView,#communitiesView,#settingsView,#wall2010View,.ai-workspace,.finance-view{transition:none!important}
  .ksan-view-enter{opacity:1!important;transform:none!important;filter:none!important}
}


/* v535 — centered Settings content + conversational AI tips */
@media(min-width:761px){
  body[data-view="settings"] .settings-view{
    display:flex !important;
    justify-content:center !important;
    align-items:stretch !important;
  }
  body[data-view="settings"] .settings-shell--cards{
    width:min(960px,100%) !important;
    max-width:960px !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  body[data-view="settings"] .settings-library-head,
  body[data-view="settings"] .settings-workspace{
    width:100% !important;
    max-width:880px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
}
body[data-view="settings"] .settings-library-head p{
  display:flex;
  align-items:center;
  min-height:24px;
  max-width:720px;
  margin-top:8px;
}
body[data-view="settings"] .settings-library-head p b{display:none!important;}
#ksanSettingsLine.is-typing::after{
  content:' ';
  display:inline-block;
  width:5px;
  height:1em;
  margin-left:3px;
  vertical-align:-.12em;
  border-radius:3px;
  background:currentColor;
  opacity:.65;
  animation:aiCaretBlink .7s steps(1,end) infinite;
}
.ai-type-caret{display:none!important;}
@keyframes aiCaretBlink{50%{opacity:.12}}
@media(prefers-reduced-motion:reduce){
  #ksanSettingsLine.is-typing::after{animation:none!important;}
}

/* v536 — simpler iOS-inspired Settings */
body[data-view="settings"] .settings-shell--cards{
  width:min(720px,100%) !important;
  max-width:720px !important;
  margin-inline:auto !important;
}
body[data-view="settings"] .settings-library-head{
  padding:8px 4px 20px !important;
}
body[data-view="settings"] .settings-library-head h1{
  margin:0 0 7px !important;
  font-size:34px !important;
  letter-spacing:-.045em !important;
}
body[data-view="settings"] .settings-library-head p{
  max-width:620px !important;
  min-height:22px;
  margin:0 !important;
  color:rgba(235,239,244,.58) !important;
  font-size:14px !important;
  line-height:1.5 !important;
}
.settings-workspace--ios{width:100%;}
.settings-ios-stack{display:flex;flex-direction:column;gap:16px;width:100%;}
.settings-ios-account,
.settings-ios-group{
  width:100%;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(22,25,29,.93);
  box-shadow:0 10px 34px rgba(0,0,0,.14);
  border-radius:24px;
  overflow:hidden;
}
.settings-ios-account{
  appearance:none;
  display:grid;
  grid-template-columns:64px 1fr auto;
  gap:15px;
  align-items:center;
  padding:14px 16px;
  color:#f5f7f9;
  text-align:left;
  cursor:pointer;
}
.settings-ios-account:hover,.settings-ios-row:hover{background:rgba(31,35,40,.98);}
.settings-ios-account:active,.settings-ios-row:active{transform:scale(.995);}
.settings-ios-account__avatar{
  width:64px;height:64px;border-radius:50%;overflow:hidden;display:grid;place-items:center;
  background:linear-gradient(145deg,#29313a,#14171b);color:#f6f8fa;font-size:24px;font-weight:800;
  border:1px solid rgba(255,255,255,.08);
}
.settings-ios-account__avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.settings-ios-account__copy,.settings-ios-row__copy{min-width:0;display:flex;flex-direction:column;gap:3px;}
.settings-ios-account__copy strong{font-size:18px;line-height:1.2;letter-spacing:-.02em;}
.settings-ios-account__copy small,.settings-ios-row__copy small{color:rgba(229,234,240,.53);font-size:13px;line-height:1.35;}
.settings-ios-group{display:flex;flex-direction:column;}
.settings-ios-row,.settings-ios-static-row{
  min-height:64px;
  display:grid;
  grid-template-columns:38px 1fr auto;
  gap:12px;
  align-items:center;
  padding:10px 16px;
  position:relative;
  color:#f4f6f8;
  text-align:left;
}
.settings-ios-row{appearance:none;border:0;background:transparent;cursor:pointer;font:inherit;}
.settings-ios-row + .settings-ios-row::before{
  content:"";position:absolute;left:66px;right:16px;top:0;height:1px;background:rgba(255,255,255,.065);
}
.settings-ios-static-row{grid-template-columns:38px 1fr;padding-block:13px;}
.settings-ios-row__copy strong{font-size:15.5px;line-height:1.25;font-weight:700;}
.settings-ios-icon{
  width:32px;height:32px;border-radius:9px;display:grid;place-items:center;
  font-size:15px;font-weight:800;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.settings-ios-icon--appearance{background:linear-gradient(145deg,#4f75ff,#705cff);}
.settings-ios-icon--privacy{background:linear-gradient(145deg,#28b978,#208f61);}
.settings-ios-icon--security{background:linear-gradient(145deg,#ee754b,#c94e31);}
.settings-ios-icon--hint{background:linear-gradient(145deg,#3c8eea,#2468bd);font-family:Georgia,serif;font-style:italic;}
.settings-ios-chevron{color:rgba(236,240,245,.34);font-size:28px;font-weight:300;line-height:1;transform:translateY(-1px);}
.settings-ios-group--secondary{background:rgba(19,22,26,.74);}
.settings-ios-group--secondary .settings-ios-row__copy small{font-size:12.5px;max-width:520px;}

/* Drawer remains app-like, but visually simpler to match the list */
body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
  width:min(680px,calc(100% - 20px)) !important;
  border-radius:26px !important;
  background:#14171b !important;
  border:1px solid rgba(255,255,255,.07) !important;
  box-shadow:0 26px 80px rgba(0,0,0,.4) !important;
}
body[data-view="settings"] .settings-drawer__head{padding:4px 2px 15px !important;}
body[data-view="settings"] .settings-drawer__head h2{font-size:27px !important;letter-spacing:-.035em !important;}
body[data-view="settings"] .settings-drawer__head p{font-size:13px !important;color:rgba(235,239,244,.5) !important;}
body[data-view="settings"] .settings-sheet-section{
  border-radius:20px !important;
  background:rgba(26,29,34,.94) !important;
  border-color:rgba(255,255,255,.055) !important;
}
@media(max-width:760px){
  body[data-view="settings"] .settings-shell--cards{width:100% !important;}
  body[data-view="settings"] .settings-library-head h1{font-size:30px !important;}
  .settings-ios-account,.settings-ios-group{border-radius:20px;}
  .settings-ios-account{grid-template-columns:56px 1fr auto;padding:12px 14px;}
  .settings-ios-account__avatar{width:56px;height:56px;}
  .settings-ios-row,.settings-ios-static-row{padding-inline:14px;}
}

/* v537 — iOS-like inner settings screens */
body[data-view="settings"] .settings-workspace.has-panel .settings-drawer--inline{
  padding:0 !important;
  min-height:0 !important;
  background:transparent !important;
}
body[data-view="settings"] .settings-drawer--inline .settings-drawer__backdrop{
  display:none !important;
}
body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
  width:min(620px,100%) !important;
  max-height:none !important;
  margin:0 auto !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:translateX(10px) !important;
  transition:transform .2s ease,opacity .16s ease !important;
}
body[data-view="settings"] .settings-drawer--inline.is-open .settings-drawer__sheet{
  transform:translateX(0) !important;
}
body[data-view="settings"] .settings-drawer__grab{display:none !important;}
body[data-view="settings"] .settings-drawer__head{
  position:sticky !important;
  top:0 !important;
  z-index:5 !important;
  padding:10px 0 18px !important;
  border:0 !important;
  background:var(--settings-page-bg,#000) !important;
}
body[data-view="settings"] .settings-drawer__head-main{
  align-items:center !important;
}
body[data-view="settings"] .settings-drawer__head h2{
  color:var(--settings-title,#f5f5f7) !important;
  font-size:30px !important;
  letter-spacing:-.035em !important;
}
body[data-view="settings"] .settings-drawer__head p{
  max-width:470px !important;
  margin-top:7px !important;
  color:#8e8e93 !important;
  font-size:13px !important;
}
body[data-view="settings"] .settings-drawer__close{
  order:-1 !important;
  width:36px !important;
  height:36px !important;
  margin-right:4px !important;
  background:#1c1c1e !important;
  color:#f2f2f7 !important;
  font-size:18px !important;
}
body[data-view="settings"] .settings-drawer__body{
  padding:6px 0 32px !important;
  background:transparent !important;
}
body[data-view="settings"] .ios-settings-label{
  margin:20px 16px 7px !important;
  color:#8e8e93 !important;
  font:600 11px/1.2 Geist,system-ui,sans-serif !important;
  letter-spacing:.03em !important;
}
body[data-view="settings"] .settings-sheet-section.ios-settings-group{
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:18px !important;
  background:#1c1c1e !important;
}
body[data-view="settings"] .settings-sheet-theme-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
}
body[data-view="settings"] .settings-sheet-theme-grid button{
  min-height:128px !important;
  padding:14px 10px !important;
  border:0 !important;
  border-right:1px solid rgba(255,255,255,.08) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#f2f2f7 !important;
}
body[data-view="settings"] .settings-sheet-theme-grid button:last-child{border-right:0 !important;}
body[data-view="settings"] .settings-sheet-theme-grid button.is-selected{
  background:rgba(10,132,255,.12) !important;
  box-shadow:inset 0 0 0 2px #0a84ff !important;
}
body[data-view="settings"] .settings-sheet-theme-grid b{color:#f2f2f7 !important;}
body[data-view="settings"] .settings-sheet-bg-preview{
  margin:14px !important;
  height:120px !important;
  border:0 !important;
  border-radius:14px !important;
}
body[data-view="settings"] .settings-sheet-swatches{
  padding:0 14px 14px !important;
}
body[data-view="settings"] .settings-sheet-swatches button{
  width:44px !important;height:34px !important;border-radius:9px !important;
}
body[data-view="settings"] .settings-sheet-profile-row{
  min-height:112px !important;
  padding:14px 16px !important;
}
body[data-view="settings"] .settings-sheet-avatar{
  width:78px !important;height:78px !important;border:0 !important;background:#2c2c2e !important;color:#fff !important;
}
body[data-view="settings"] .settings-sheet-actions.ios-profile-actions{
  margin:0 !important;
  display:flex !important;
  gap:8px !important;
  flex:1 !important;
}
body[data-view="settings"] .settings-sheet-actions.ios-action-row{
  margin:0 !important;
  padding:12px 14px 14px !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
}
body[data-view="settings"] .settings-sheet-action{
  min-height:38px !important;
  border:0 !important;
  border-radius:11px !important;
  background:#2c2c2e !important;
  color:#0a84ff !important;
  font-size:12px !important;
}
body[data-view="settings"] .settings-sheet-action--primary{
  background:#0a84ff !important;color:#fff !important;
}
body[data-view="settings"] .settings-sheet-action--danger{
  background:rgba(255,69,58,.12) !important;color:#ff453a !important;
}
body[data-view="settings"] .ios-input-row{
  min-height:54px !important;
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
  padding:0 16px !important;
}
body[data-view="settings"] .ios-input-row>span{width:72px;color:#f2f2f7;font:600 14px/1 Geist,system-ui,sans-serif;}
body[data-view="settings"] .settings-sheet-nick{
  flex:1 !important;height:42px !important;border:0 !important;background:transparent !important;
}
body[data-view="settings"] .settings-sheet-nick input{color:#f2f2f7 !important;text-align:right !important;}
body[data-view="settings"] .settings-sheet-switch.ios-toggle-row{
  min-height:64px !important;
  padding:0 16px !important;
}
body[data-view="settings"] .settings-sheet-switch span b{color:#f2f2f7 !important;}
body[data-view="settings"] .settings-sheet-switch span small{color:#8e8e93 !important;}
body[data-view="settings"] .settings-sheet-switch i{background:#3a3a3c !important;}
body[data-view="settings"] .settings-sheet-switch input:checked+i{background:#30d158 !important;}
body[data-view="settings"] .settings-sheet-fields.ios-fields{gap:0 !important;}
body[data-view="settings"] .settings-sheet-fields.ios-fields label{
  min-height:54px !important;
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
  padding:0 16px !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}
body[data-view="settings"] .settings-sheet-fields.ios-fields label:last-child{border-bottom:0 !important;}
body[data-view="settings"] .settings-sheet-fields.ios-fields label span{
  width:82px !important;margin:0 !important;color:#f2f2f7 !important;font-size:13px !important;
}
body[data-view="settings"] .settings-sheet-fields.ios-fields input{
  flex:1 !important;height:42px !important;border:0 !important;background:transparent !important;color:#f2f2f7 !important;text-align:right !important;
}
body[data-view="settings"] .ios-settings-footnote{
  margin:8px 16px 0 !important;color:#8e8e93 !important;font:500 11px/1.45 Geist,system-ui,sans-serif !important;
}
body[data-view="settings"] .settings-sheet-hint{color:#8e8e93 !important;}
body[data-view="settings"] .settings-sheet-hint.is-success{color:#30d158 !important;}
body[data-view="settings"] .settings-sheet-hint.is-error{color:#ff453a !important;}
@media(max-width:700px){
  body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{width:100% !important;}
  body[data-view="settings"] .settings-sheet-theme-grid{grid-template-columns:1fr !important;}
  body[data-view="settings"] .settings-sheet-theme-grid button{min-height:88px !important;border-right:0 !important;border-bottom:1px solid rgba(255,255,255,.08) !important;}
  body[data-view="settings"] .settings-sheet-profile-row{align-items:center !important;flex-direction:row !important;}
  body[data-view="settings"] .settings-sheet-actions.ios-profile-actions{flex-direction:column !important;}
}

/* v538 — settings subpages are true in-place app screens, never bottom sheets */
body[data-view="settings"] .settings-workspace--ios{
  display:block !important;
  width:100% !important;
  max-width:620px !important;
  margin:0 auto !important;
  overflow:visible !important;
}
body[data-view="settings"] .settings-workspace--ios.has-panel .settings-ios-stack{
  display:none !important;
}
body[data-view="settings"] .settings-drawer--inline{
  position:relative !important;
  inset:auto !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  overflow:visible !important;
  z-index:auto !important;
}
body[data-view="settings"] .settings-drawer--inline[hidden]{
  display:none !important;
}
body[data-view="settings"] .settings-drawer--inline .settings-drawer__backdrop{
  display:none !important;
}
body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  display:block !important;
  width:100% !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 0 28px !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  opacity:0 !important;
  transform:translateX(8px) !important;
  transition:opacity .14s ease,transform .18s cubic-bezier(.2,.75,.2,1) !important;
}
body[data-view="settings"] .settings-drawer--inline.is-open .settings-drawer__sheet{
  opacity:1 !important;
  transform:translateX(0) !important;
}
body[data-view="settings"] .settings-drawer__head{
  position:relative !important;
  top:auto !important;
  padding:4px 0 18px !important;
  background:transparent !important;
}
body[data-view="settings"] .settings-drawer__eyebrow,
body[data-view="settings"] .settings-drawer__grab{
  display:none !important;
}
body[data-view="settings"].settings-drawer-open{
  overflow:auto !important;
}
@media(max-width:700px){
  body[data-view="settings"] .settings-workspace--ios{max-width:100% !important;}
  body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{width:100% !important;}
}

/* v539 — Settings uses the same desktop content scale as Personal / Chats */
@media (min-width: 901px){
  body[data-view="settings"] .settings-shell--cards{
    width:min(960px,100%) !important;
    max-width:960px !important;
    margin-inline:auto !important;
  }
  body[data-view="settings"] .settings-workspace--ios{
    width:100% !important;
    max-width:960px !important;
    margin-inline:auto !important;
  }
  body[data-view="settings"] .settings-library-head{
    width:100% !important;
    padding:10px 8px 24px !important;
  }
  body[data-view="settings"] .settings-library-head h1{
    font-size:38px !important;
  }
  body[data-view="settings"] .settings-library-head p{
    max-width:760px !important;
    font-size:15px !important;
  }

  body[data-view="settings"] .settings-ios-stack{
    gap:18px !important;
  }
  body[data-view="settings"] .settings-ios-account{
    min-height:100px !important;
    grid-template-columns:76px 1fr auto !important;
    gap:18px !important;
    padding:12px 22px !important;
    border-radius:25px !important;
  }
  body[data-view="settings"] .settings-ios-account__avatar{
    width:76px !important;
    height:76px !important;
  }
  body[data-view="settings"] .settings-ios-account__copy strong{
    font-size:20px !important;
  }
  body[data-view="settings"] .settings-ios-account__copy small,
  body[data-view="settings"] .settings-ios-row__copy small{
    font-size:14px !important;
  }
  body[data-view="settings"] .settings-ios-group{
    border-radius:25px !important;
  }
  body[data-view="settings"] .settings-ios-row,
  body[data-view="settings"] .settings-ios-static-row{
    min-height:76px !important;
    grid-template-columns:44px 1fr auto !important;
    gap:15px !important;
    padding:11px 22px !important;
  }
  body[data-view="settings"] .settings-ios-static-row{
    grid-template-columns:44px 1fr !important;
  }
  body[data-view="settings"] .settings-ios-row + .settings-ios-row::before{
    left:81px !important;
    right:22px !important;
  }
  body[data-view="settings"] .settings-ios-icon{
    width:38px !important;
    height:38px !important;
    border-radius:10px !important;
    font-size:17px !important;
  }
  body[data-view="settings"] .settings-ios-row__copy strong{
    font-size:17px !important;
  }

  /* In-place subpages fill the same right workspace instead of becoming a mini panel */
  body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
    width:100% !important;
    max-width:960px !important;
    margin:0 auto !important;
  }
  body[data-view="settings"] .settings-drawer__head{
    padding:8px 8px 24px !important;
  }
  body[data-view="settings"] .settings-drawer__head h2{
    font-size:38px !important;
  }
  body[data-view="settings"] .settings-drawer__head p{
    max-width:720px !important;
    font-size:15px !important;
    line-height:1.5 !important;
  }
  body[data-view="settings"] .settings-drawer__close{
    width:42px !important;
    height:42px !important;
  }
  body[data-view="settings"] .settings-drawer__body{
    padding:8px 0 40px !important;
  }
  body[data-view="settings"] .ios-settings-label{
    margin:24px 18px 9px !important;
    font-size:12px !important;
  }
  body[data-view="settings"] .settings-sheet-section.ios-settings-group{
    border-radius:22px !important;
  }
  body[data-view="settings"] .settings-sheet-theme-grid button{
    min-height:176px !important;
    padding:18px 14px !important;
  }
  body[data-view="settings"] .settings-sheet-bg-preview{
    height:180px !important;
    margin:18px !important;
    border-radius:17px !important;
  }
  body[data-view="settings"] .settings-sheet-swatches{
    padding:0 18px 18px !important;
  }
  body[data-view="settings"] .settings-sheet-swatches button{
    width:52px !important;
    height:40px !important;
  }
  body[data-view="settings"] .settings-sheet-profile-row{
    min-height:142px !important;
    padding:20px !important;
  }
  body[data-view="settings"] .settings-sheet-avatar{
    width:96px !important;
    height:96px !important;
  }
  body[data-view="settings"] .settings-sheet-action{
    min-height:44px !important;
    padding-inline:16px !important;
    font-size:13px !important;
  }
  body[data-view="settings"] .ios-input-row,
  body[data-view="settings"] .settings-sheet-fields.ios-fields label{
    min-height:66px !important;
    padding-inline:20px !important;
  }
  body[data-view="settings"] .settings-sheet-switch.ios-toggle-row{
    min-height:78px !important;
    padding-inline:20px !important;
  }
  body[data-view="settings"] .ios-settings-footnote{
    margin:10px 18px 0 !important;
    font-size:12.5px !important;
  }
}

/* v540 — desktop settings subpages: same app grid as Personal / Chats, not a stretched mobile panel */
@media (min-width: 901px){
  body[data-view="settings"] .settings-drawer--inline .settings-drawer__sheet{
    width:960px !important;
    max-width:960px !important;
  }

  body[data-view="settings"] .settings-drawer__head{
    padding:10px 0 26px !important;
    border:0 !important;
  }

  body[data-view="settings"] .settings-drawer__head-main{
    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) !important;
    grid-template-areas:"back copy" !important;
    align-items:start !important;
    justify-content:stretch !important;
    column-gap:18px !important;
    width:100% !important;
  }

  body[data-view="settings"] .settings-drawer__head-main > div{
    grid-area:copy !important;
    min-width:0 !important;
    padding-top:1px !important;
  }

  body[data-view="settings"] .settings-drawer__close{
    grid-area:back !important;
    order:0 !important;
    margin:1px 0 0 !important;
    width:40px !important;
    height:40px !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.075) !important;
  }

  body[data-view="settings"] .settings-drawer__head h2{
    margin:0 !important;
    font-size:34px !important;
    line-height:1.05 !important;
    letter-spacing:-.04em !important;
    text-align:left !important;
  }

  body[data-view="settings"] .settings-drawer__head p{
    margin:7px 0 0 !important;
    max-width:700px !important;
    font-size:14px !important;
    line-height:1.45 !important;
    text-align:left !important;
  }

  body[data-view="settings"] .settings-drawer__body{
    width:100% !important;
    padding:0 0 42px 62px !important;
    box-sizing:border-box !important;
  }

  body[data-view="settings"] .ios-settings-label{
    margin:0 0 10px !important;
    padding:0 14px !important;
    font-size:11px !important;
    letter-spacing:.055em !important;
  }

  body[data-view="settings"] .ios-settings-label:not(:first-child){
    margin-top:22px !important;
  }

  body[data-view="settings"] .settings-sheet-section.ios-settings-group{
    margin:0 !important;
    width:100% !important;
    border-radius:24px !important;
    overflow:hidden !important;
  }

  body[data-view="settings"] .settings-sheet-theme-grid button{
    min-height:150px !important;
    padding:14px 12px !important;
  }

  body[data-view="settings"] .sheet-theme-preview{
    height:82px !important;
  }

  body[data-view="settings"] .settings-sheet-bg-preview{
    height:168px !important;
    margin:16px !important;
  }

  body[data-view="settings"] .settings-sheet-swatches{
    padding:0 16px 16px !important;
  }

  body[data-view="settings"] .settings-sheet-actions.ios-action-row{
    padding:11px 16px !important;
  }
}

/* v541 — settings root uses the same app-page header language as Privacy; back returns to Personal */
body[data-view="settings"] .settings-library-head--app{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:10px 0 26px !important;
  border:0 !important;
}
body[data-view="settings"] .settings-library-head__grid{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) !important;
  align-items:start !important;
  gap:18px !important;
  width:100% !important;
}
body[data-view="settings"] .settings-library-head__copy{
  min-width:0 !important;
  padding-top:1px !important;
}
body[data-view="settings"] .settings-library-back{
  width:40px !important;
  height:40px !important;
  margin:1px 0 0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border:0 !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.075) !important;
  color:#fff !important;
  font:700 20px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  cursor:pointer !important;
  transition:background .16s ease,transform .16s ease !important;
}
body[data-view="settings"] .settings-library-back:hover{background:rgba(255,255,255,.11) !important;}
body[data-view="settings"] .settings-library-back:active{transform:scale(.96);}
body[data-view="settings"] .settings-library-head--app h1{
  margin:0 !important;
  font-size:34px !important;
  line-height:1.05 !important;
  letter-spacing:-.04em !important;
  text-align:left !important;
}
body[data-view="settings"] .settings-library-head--app p{
  margin:7px 0 0 !important;
  max-width:700px !important;
  font-size:14px !important;
  line-height:1.45 !important;
  text-align:left !important;
}
body[data-view="settings"] .settings-workspace--ios:not(.has-panel){
  padding-left:62px !important;
  box-sizing:border-box !important;
}
@media (max-width:900px){
  body[data-view="settings"] .settings-library-head--app{padding:4px 4px 16px !important;}
  body[data-view="settings"] .settings-library-head__grid{grid-template-columns:38px minmax(0,1fr) !important;gap:12px !important;}
  body[data-view="settings"] .settings-library-back{width:36px !important;height:36px !important;border-radius:12px !important;}
  body[data-view="settings"] .settings-library-head--app h1{font-size:28px !important;}
  body[data-view="settings"] .settings-library-head--app p{font-size:13px !important;}
  body[data-view="settings"] .settings-workspace--ios:not(.has-panel){padding-left:0 !important;}
}

/* v542 — calmer iOS theme selection */
body[data-view="settings"] .settings-sheet-theme-grid button{
  position:relative !important;
  transition:background .18s ease, transform .18s ease !important;
}
body[data-view="settings"] .settings-sheet-theme-grid button.is-selected{
  background:rgba(255,255,255,.035) !important;
  box-shadow:none !important;
}
body[data-view="settings"] .settings-sheet-theme-grid button.is-selected::after{
  content:"✓";
  position:absolute;
  top:10px;
  right:10px;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#0a84ff;
  color:#fff;
  font:800 13px/1 Geist,system-ui,sans-serif;
  box-shadow:0 2px 8px rgba(0,0,0,.28);
}
body[data-view="settings"] .settings-sheet-theme-grid button.is-selected .sheet-theme-preview{
  box-shadow:0 0 0 1px rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.18) !important;
  transform:translateY(-1px);
}
body[data-view="settings"] .settings-sheet-theme-grid button.is-selected b{
  color:#fff !important;
}
body[data-view="settings"] .settings-sheet-theme-grid button:focus-visible{
  outline:none !important;
}
body[data-view="settings"] .settings-sheet-theme-grid button:focus-visible .sheet-theme-preview{
  box-shadow:0 0 0 2px rgba(10,132,255,.45) !important;
}


/* v545 — logout action in Settings */
.settings-ios-group--logout{
  background:rgba(26,18,19,.86) !important;
  border-color:rgba(255,91,91,.10) !important;
}
.settings-ios-logout{
  width:100%;
  color:#ff6969 !important;
}
.settings-ios-logout:hover{background:rgba(71,29,31,.42) !important;}
.settings-ios-logout .settings-ios-row__copy strong{color:#ff6969 !important;}
.settings-ios-logout .settings-ios-row__copy small{color:rgba(255,126,126,.55) !important;}
.settings-ios-icon--logout{
  background:rgba(255,74,74,.14) !important;
  color:#ff6969 !important;
  box-shadow:inset 0 0 0 1px rgba(255,99,99,.12) !important;
}


/* v542 — профиль: явный заголовок раздела в шапке */
body[data-view="personal"] .profile-page-head{
  width:100%;
  margin:0 0 14px;
  padding:0 4px;
  display:flex;
  align-items:center;
}
body[data-view="personal"] .profile-page-head h1{
  margin:0;
  color:#f4f6f8;
  font-size:30px;
  line-height:1.05;
  font-weight:780;
  letter-spacing:-.035em;
}
@media(max-width:760px){
  body[data-view="personal"] .profile-page-head{margin-bottom:10px;padding:0 2px;}
  body[data-view="personal"] .profile-page-head h1{font-size:26px;}
}

/* v543 — заголовок «Профиль» по центру */
body[data-view="personal"] .profile-page-head{
  justify-content:center !important;
  text-align:center !important;
}
body[data-view="personal"] .profile-page-head h1{
  width:100% !important;
  text-align:center !important;
}

/* v544 — «Начать с AI»: открывать AI как гостевой режим, на весь экран */
body.ai-view-active{
  overflow:hidden!important;
  background:#000!important;
}
body.ai-view-active .ksan-shell{
  display:block!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  left:0!important;
}
body.ai-view-active .ksan-sidebar{
  display:none!important;
}
body.ai-view-active .ksan-main{
  display:block!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
body.ai-view-active #aiWorkspace{
  position:fixed!important;
  inset:0!important;
  z-index:99999!important;
  display:block!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
}
body.ai-view-active .content-brand{
  display:none!important;
}


/* v653 — компактный логотип сверху левого меню */
.ksan-sidebar__brand-logo-wrap{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:10px 0 18px!important;
  padding:0!important;
  pointer-events:none!important;
}
.ksan-sidebar__brand-logo{
  display:block!important;
  width:46px!important;
  height:46px!important;
  object-fit:contain!important;
  border-radius:14px!important;
  filter:none!important;
  opacity:.96!important;
}
@media(max-width:900px){
  .ksan-sidebar__brand-logo-wrap{margin:8px 0 14px!important}
  .ksan-sidebar__brand-logo{width:40px!important;height:40px!important;border-radius:12px!important}
}

/* v654 — новый горизонтальный логотип Ksan */
.auth-logo-image{
  display:block!important;
  width:176px!important;
  height:auto!important;
  max-height:56px!important;
  object-fit:contain!important;
}

.ksan-sidebar__brand-logo-wrap{
  margin:10px 0 18px!important;
}
.ksan-sidebar__brand-logo{
  width:132px!important;
  height:44px!important;
  max-width:calc(100% - 18px)!important;
  border-radius:0!important;
  object-fit:contain!important;
}
@media(max-width:900px){
  .ksan-sidebar__brand-logo{width:112px!important;height:38px!important;border-radius:0!important}
}


/* v655 — левое меню чуть крупнее + логотип крупнее */
@media(min-width:761px){
  .ksan-sidebar__brand-logo-wrap{
    margin:12px 0 20px!important;
  }
  .ksan-sidebar__brand-logo{
    width:154px!important;
    height:52px!important;
    max-width:calc(100% - 10px)!important;
    object-fit:contain!important;
  }

  .ksan-sidebar__item{
    height:52px!important;
    min-height:52px!important;
    padding:0 13px!important;
    gap:13px!important;
    font-size:15.5px!important;
    border-radius:16px!important;
  }

  .ksan-sidebar__icon{
    width:28px!important;
    height:28px!important;
    flex:0 0 28px!important;
  }
  .ksan-sidebar__icon img{
    width:28px!important;
    height:28px!important;
  }

  .ksan-sidebar__nav{
    gap:6px!important;
  }

  .ksan-sidebar__bottom .ksan-sidebar__item{
    font-size:15px!important;
  }
}
@media(min-width:761px) and (max-width:980px){
  .ksan-sidebar__brand-logo{
    width:138px!important;
    height:46px!important;
  }
  .ksan-sidebar__item{
    font-size:14.5px!important;
    height:49px!important;
    min-height:49px!important;
  }
  .ksan-sidebar__icon,
  .ksan-sidebar__icon img{
    width:26px!important;
    height:26px!important;
  }
}

/* v656 — умеренный размер левого меню */
@media(min-width:761px){
  .ksan-sidebar__brand-logo-wrap{
    margin:10px 0 16px!important;
  }
  .ksan-sidebar__brand-logo{
    width:136px!important;
    height:46px!important;
    max-width:calc(100% - 12px)!important;
  }
  .ksan-sidebar__item{
    height:48px!important;
    min-height:48px!important;
    padding:0 12px!important;
    gap:12px!important;
    font-size:14.5px!important;
    border-radius:15px!important;
  }
  .ksan-sidebar__icon,
  .ksan-sidebar__icon img{
    width:26px!important;
    height:26px!important;
  }
  .ksan-sidebar__icon{
    flex:0 0 26px!important;
  }
  .ksan-sidebar__nav{
    gap:5px!important;
  }
  .ksan-sidebar__bottom .ksan-sidebar__item{
    font-size:14px!important;
  }
}
@media(min-width:761px) and (max-width:980px){
  .ksan-sidebar__brand-logo{
    width:126px!important;
    height:42px!important;
  }
  .ksan-sidebar__item{
    height:46px!important;
    min-height:46px!important;
    font-size:13.8px!important;
  }
  .ksan-sidebar__icon,
  .ksan-sidebar__icon img{
    width:25px!important;
    height:25px!important;
  }
  .ksan-sidebar__icon{
    flex:0 0 25px!important;
  }
}


/* Current profile layout. Obsolete v560–v565 experiments removed in v819. */
/* v566 — вернуть аву/ник/статус по центру, метрики отдельными плашками */
body[data-view="personal"] .tg-profile-hero{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:
    "actions"
    "avatar"
    "nick"
    "online"
    "stats"
    "wall"
    "modules" !important;
  justify-items:center !important;
  align-items:center !important;
  row-gap:10px !important;
  column-gap:0 !important;
  padding:20px 20px 24px !important;
}

/* v570 — empty state for connected modules */
body[data-view="personal"] .tg-profile-modules-empty{
  grid-area:modules !important;
  width:100% !important;
  margin:20px auto 0 !important;
  padding-top:22px !important;
  box-sizing:border-box !important;
  border-top:1px solid rgba(255,255,255,.05) !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  text-align:center !important;
}

body[data-view="personal"] .tg-profile-modules-empty img{
  display:block !important;
  width:218px !important;
  max-width:72% !important;
  aspect-ratio:735 / 596 !important;
  object-fit:cover !important;
  border-radius:18px !important;
  opacity:.82 !important;
  filter:saturate(.78) contrast(.96) !important;
}

body[data-view="personal"] .tg-profile-modules-empty strong{
  margin-top:14px !important;
  color:#e9ebef !important;
  font:650 16px/1.25 Geist,system-ui,sans-serif !important;
  letter-spacing:-.01em !important;
}

body[data-view="personal"] .tg-profile-modules-empty span{
  max-width:390px !important;
  margin-top:6px !important;
  color:#777f8b !important;
  font:500 12px/1.45 Geist,system-ui,sans-serif !important;
}

/* v571 — emoji glyphs on the existing Settings icon backgrounds */
body[data-view="settings"] .settings-ios-icon{
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
  font-size:19px !important;
  font-weight:400 !important;
  font-style:normal !important;
  line-height:1 !important;
}

@media(min-width:761px){
  body[data-view="settings"] .settings-ios-icon{
    font-size:21px !important;
  }
}

@media(max-width:760px){
  body[data-view="personal"] .tg-profile-modules-empty{
    margin-top:15px !important;
    padding-top:18px !important;
  }

  body[data-view="personal"] .tg-profile-modules-empty img{
    width:176px !important;
    border-radius:15px !important;
  }

  body[data-view="personal"] .tg-profile-modules-empty strong{
    margin-top:12px !important;
    font-size:15px !important;
  }

  body[data-view="personal"] .tg-profile-modules-empty span{
    max-width:290px !important;
    font-size:11px !important;
  }
}

body[data-view="personal"] .tg-profile-actions{
  grid-area:actions !important;
  width:100% !important;
  margin:0 0 6px !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
}

body[data-view="personal"] .tg-avatar-wrap{
  grid-area:avatar !important;
  width:112px !important;
  margin:0 !important;
  justify-self:center !important;
  align-self:center !important;
}

body[data-view="personal"] .tg-avatar{
  width:112px !important;
  height:112px !important;
}

body[data-view="personal"] .tg-nick{
  grid-area:nick !important;
  margin:0 !important;
  text-align:center !important;
  align-self:center !important;
}

body[data-view="personal"] .tg-online{
  grid-area:online !important;
  margin:0 !important;
  justify-content:center !important;
  text-align:center !important;
  align-self:center !important;
}

body[data-view="personal"] .tg-profile-stats--functional{
  grid-area:stats !important;
  width:fit-content !important;
  max-width:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,124px)) !important;
  gap:10px !important;
  justify-content:center !important;
  align-items:stretch !important;
  margin:12px auto 0 !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat{
  min-height:64px !important;
  padding:10px 14px !important;
  border:1px solid rgba(255,255,255,.055) !important;
  border-right:1px solid rgba(255,255,255,.055) !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.026) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02) !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:first-child,
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:last-child{
  padding-left:14px !important;
  padding-right:14px !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong{
  font-size:18px !important;
  line-height:1 !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong em{
  margin-left:4px !important;
  font-size:13px !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat span{
  margin-top:6px !important;
  font-size:11.5px !important;
  text-align:center !important;
}

@media(max-width:760px){
  body[data-view="personal"] .tg-profile-hero{
    padding:16px 14px 18px !important;
    row-gap:8px !important;
  }

  body[data-view="personal"] .tg-avatar-wrap{
    width:88px !important;
  }

  body[data-view="personal"] .tg-avatar{
    width:88px !important;
    height:88px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional{
    width:100% !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
    margin-top:10px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat{
    min-height:56px !important;
    padding:8px 8px !important;
    border-radius:16px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong{
    font-size:16px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong em{
    font-size:11px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat span{
    font-size:10.5px !important;
    margin-top:5px !important;
  }
}


/* v567 — плашки ближе друг к другу, аватар крупнее */
body[data-view="personal"] .tg-avatar-wrap{
  width:128px !important;
}
body[data-view="personal"] .tg-avatar{
  width:128px !important;
  height:128px !important;
}

body[data-view="personal"] .tg-profile-stats--functional{
  grid-template-columns:repeat(3,minmax(0,112px)) !important;
  gap:6px !important;
  margin-top:10px !important;
}
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat{
  min-height:62px !important;
  padding:10px 12px !important;
  border-radius:16px !important;
}
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:first-child,
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:last-child{
  padding-left:12px !important;
  padding-right:12px !important;
}
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong{
  font-size:17px !important;
}
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong em{
  font-size:12px !important;
}
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat span{
  margin-top:5px !important;
  font-size:11px !important;
}

@media(max-width:760px){
  body[data-view="personal"] .tg-avatar-wrap{
    width:98px !important;
  }
  body[data-view="personal"] .tg-avatar{
    width:98px !important;
    height:98px !important;
  }
  body[data-view="personal"] .tg-profile-stats--functional{
    gap:6px !important;
    margin-top:8px !important;
  }
  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat{
    min-height:54px !important;
    padding:8px 7px !important;
  }
}


/* v568 — compact, coherent personal profile */
body[data-view="personal"] .profile-page{
  width:100% !important;
  max-width:920px !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:24px 18px 48px !important;
  box-sizing:border-box !important;
}

body[data-view="personal"] .profile-page-head{
  display:none !important;
}

body[data-view="personal"] .tg-profile-hero{
  width:100% !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:30px 44px 34px !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:
    "actions"
    "avatar"
    "nick"
    "online"
    "stats"
    "wall"
    "modules" !important;
  justify-items:center !important;
  align-items:center !important;
  row-gap:8px !important;
  border:1px solid rgba(255,255,255,.055) !important;
  border-radius:24px !important;
  background:radial-gradient(circle at 50% 0%,rgba(68,84,103,.10),transparent 42%),rgba(7,8,10,.72) !important;
  box-shadow:0 22px 54px rgba(0,0,0,.20) !important;
  overflow:hidden !important;
}

/* v572 — visible Wall 2010 entry inside the Personal profile */
body[data-view="personal"] .tg-profile-wall-entry{
  grid-area:wall !important;
  width:min(520px,100%) !important;
  min-height:62px !important;
  margin:10px auto 0 !important;
  padding:9px 13px !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) auto 18px !important;
  gap:11px !important;
  align-items:center !important;
  border:1px solid rgba(255,255,255,.06) !important;
  border-radius:15px !important;
  background:rgba(255,255,255,.025) !important;
  color:#eef1f5 !important;
  text-align:left !important;
  cursor:pointer !important;
  transition:background-color .15s ease,border-color .15s ease,transform .15s ease !important;
}

body[data-view="personal"] .tg-profile-wall-entry:hover{
  border-color:rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.045) !important;
  transform:translateY(-1px) !important;
}

body[data-view="personal"] .tg-profile-wall-entry__icon{
  width:38px !important;
  height:38px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:11px !important;
  background:linear-gradient(145deg,#5d83aa,#365f87) !important;
  font:20px/1 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
}

body[data-view="personal"] .tg-profile-wall-entry__copy{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
}

body[data-view="personal"] .tg-profile-wall-entry__copy strong{
  color:#eef1f5 !important;
  font:650 15px/1.15 Geist,system-ui,sans-serif !important;
}

body[data-view="personal"] .tg-profile-wall-entry__copy small{
  overflow:hidden !important;
  color:#777f8b !important;
  font:500 11px/1.2 Geist,system-ui,sans-serif !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}

body[data-view="personal"] .tg-profile-wall-entry__new{
  color:#58d88a !important;
  font:650 11px/1 Geist,system-ui,sans-serif !important;
  white-space:nowrap !important;
}

body[data-view="personal"] .tg-profile-wall-entry__arrow{
  color:#6f7783 !important;
  font:300 25px/1 system-ui,sans-serif !important;
}

@media(max-width:760px){
  body[data-view="personal"] .tg-profile-wall-entry{
    min-height:58px !important;
    margin-top:8px !important;
    padding:8px 10px !important;
    grid-template-columns:36px minmax(0,1fr) auto 14px !important;
    gap:9px !important;
    border-radius:14px !important;
  }

  body[data-view="personal"] .tg-profile-wall-entry__icon{
    width:36px !important;
    height:36px !important;
    border-radius:10px !important;
    font-size:19px !important;
  }

  body[data-view="personal"] .tg-profile-wall-entry__copy strong{font-size:14px !important}
  body[data-view="personal"] .tg-profile-wall-entry__copy small{font-size:10px !important}
  body[data-view="personal"] .tg-profile-wall-entry__new{font-size:10px !important}
}

body[data-view="personal"] .tg-profile-actions{
  grid-area:actions !important;
  position:relative !important;
  inset:auto !important;
  z-index:3 !important;
  width:100% !important;
  height:38px !important;
  margin:0 0 -2px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}

body[data-view="personal"] .tg-round-btn,
body[data-view="personal"] .tg-edit-btn{
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(255,255,255,.055) !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.025) !important;
  color:#b5bbc4 !important;
  box-shadow:none !important;
}

body[data-view="personal"] .tg-round-btn:hover,
body[data-view="personal"] .tg-edit-btn:hover{
  color:#fff !important;
  background:rgba(255,255,255,.06) !important;
}

body[data-view="personal"] .tg-round-btn svg,
body[data-view="personal"] .tg-edit-btn svg{
  width:19px !important;
  height:19px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

body[data-view="personal"] .tg-avatar-wrap{
  grid-area:avatar !important;
  position:relative !important;
  z-index:2 !important;
  width:170px !important;
  height:170px !important;
  margin:0 !important;
  justify-self:center !important;
}

body[data-view="personal"] .tg-avatar{
  width:170px !important;
  height:170px !important;
  box-sizing:border-box !important;
  border:3px solid #0a0b0d !important;
  outline:1px solid rgba(255,255,255,.13) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.30) !important;
}

body[data-view="personal"] .tg-avatar img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

body[data-view="personal"] .tg-avatar-add{
  right:1px !important;
  bottom:4px !important;
  width:31px !important;
  height:31px !important;
  border:3px solid #08090b !important;
  border-radius:50% !important;
  background:#f1f3f5 !important;
  color:#101216 !important;
  box-shadow:0 7px 18px rgba(0,0,0,.30) !important;
}

body[data-view="personal"] .tg-avatar-add .avatar-alert-mark{
  color:inherit !important;
  font:600 20px/1 Geist,system-ui,sans-serif !important;
  transform:translateY(-1px) !important;
}

body[data-view="personal"] .tg-nick{
  grid-area:nick !important;
  position:relative !important;
  z-index:2 !important;
  margin:8px 0 0 !important;
  color:#f4f5f7 !important;
  font:760 29px/1.08 Geist,system-ui,sans-serif !important;
  letter-spacing:-.035em !important;
  text-align:center !important;
}

body[data-view="personal"] .tg-online{
  grid-area:online !important;
  position:relative !important;
  z-index:2 !important;
  margin:1px 0 0 !important;
  color:#9da5b0 !important;
  font:500 14px/1.2 Geist,system-ui,sans-serif !important;
  justify-content:center !important;
}

body[data-view="personal"] .tg-online i{
  width:8px !important;
  height:8px !important;
  margin-right:7px !important;
  box-shadow:none !important;
}

body[data-view="personal"] .tg-profile-stats--functional{
  grid-area:stats !important;
  position:relative !important;
  z-index:2 !important;
  width:min(520px,100%) !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:18px auto 0 !important;
  padding:5px !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  border:1px solid rgba(255,255,255,.055) !important;
  border-radius:17px !important;
  background:rgba(255,255,255,.022) !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat,
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:first-child,
body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:last-child{
  min-width:0 !important;
  min-height:68px !important;
  padding:9px 12px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-right:1px solid rgba(255,255,255,.055) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:last-child{
  border-right:0 !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:hover{
  background:rgba(255,255,255,.025) !important;
  border-radius:12px !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong{
  color:#f5f6f8 !important;
  font:760 19px/1 Geist,system-ui,sans-serif !important;
  letter-spacing:-.025em !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong em{
  margin-left:3px !important;
  color:#48d982 !important;
  font-size:12px !important;
  font-style:normal !important;
}

body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat span{
  margin-top:6px !important;
  color:#858d99 !important;
  font:550 11px/1.15 Geist,system-ui,sans-serif !important;
  white-space:nowrap !important;
}

@media(max-width:760px){
  body[data-view="personal"] .profile-page{
    max-width:none !important;
    padding:8px 8px 28px !important;
  }

  body[data-view="personal"] .tg-profile-hero{
    padding:16px 14px 20px !important;
    border-radius:20px !important;
    row-gap:7px !important;
  }

  body[data-view="personal"] .tg-profile-actions{
    height:36px !important;
  }

  body[data-view="personal"] .tg-round-btn,
  body[data-view="personal"] .tg-edit-btn{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    border-radius:11px !important;
  }

  body[data-view="personal"] .tg-avatar-wrap,
  body[data-view="personal"] .tg-avatar{
    width:118px !important;
    height:118px !important;
  }

  body[data-view="personal"] .tg-avatar-add{
    width:29px !important;
    height:29px !important;
    right:-1px !important;
    bottom:2px !important;
  }

  body[data-view="personal"] .tg-nick{
    margin-top:6px !important;
    font-size:23px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional{
    width:100% !important;
    margin-top:14px !important;
    padding:4px !important;
    border-radius:15px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat,
  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:first-child,
  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat:last-child{
    min-height:60px !important;
    padding:8px 5px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat strong{
    font-size:17px !important;
  }

  body[data-view="personal"] .tg-profile-stats--functional .tg-profile-stat span{
    margin-top:5px !important;
    font-size:10px !important;
  }
}


/* v828 — authenticated AI uses the same left sidebar + content axis as every workspace. */
@media(min-width:761px){
  body[data-view="ai"] .ksan-shell{
    grid-template-columns:202px minmax(0,960px)!important;
    column-gap:14px!important;
    justify-content:center!important;
  }
  body[data-view="ai"] .ksan-main{
    width:960px!important;
    max-width:960px!important;
    min-width:0!important;
    height:calc(100dvh - 86px)!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body[data-view="ai"] #aiWorkspace{
    display:block!important;
    width:960px!important;
    max-width:960px!important;
    height:100%!important;
    min-height:560px!important;
    margin:0!important;
    border:0!important;
    background:#000!important;
  }
  body.ai-view-active .ksan-shell{
    grid-template-columns:202px minmax(0,960px)!important;
    column-gap:14px!important;
  }
  body.ai-view-active .ksan-main{
    width:960px!important;
    max-width:960px!important;
    height:calc(100dvh - 86px)!important;
  }
}
@media(min-width:761px) and (max-width:1180px){
  body[data-view="ai"] .ksan-shell,
  body.ai-view-active .ksan-shell{
    grid-template-columns:188px minmax(0,calc(100vw - 230px))!important;
    column-gap:12px!important;
  }
  body[data-view="ai"] .ksan-main,
  body.ai-view-active .ksan-main,
  body[data-view="ai"] #aiWorkspace{
    width:calc(100vw - 230px)!important;
    max-width:none!important;
  }
}

/* v829 — every workspace uses one content origin and one desktop canvas width. */
@media(min-width:761px){
  body.has-site-header .ksan-main > #personalView,
  body.has-site-header .ksan-main > #wall2010View,
  body.has-site-header .ksan-main > #aiWorkspace,
  body.has-site-header .ksan-main > #chatsView,
  body.has-site-header .ksan-main > #notificationsView,
  body.has-site-header .ksan-main > #loungeView,
  body.has-site-header .ksan-main > #communitiesView,
  body.has-site-header .ksan-main > #settingsView,
  body.has-site-header .ksan-main > #walletView,
  body.has-site-header .ksan-main > #walletHistoryView,
  body.has-site-header .ksan-main > #platinumBuyView,
  body.has-site-header .ksan-main > #paymentHistoryView,
  body.has-site-header .ksan-main > #voucherCreateView,
  body.has-site-header .ksan-main > #voucherHistoryView{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:960px!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
  }
  body.has-site-header .ksan-main > #personalView{padding-left:0!important;padding-right:0!important}
  body.has-site-header .ksan-main > #aiWorkspace{height:calc(100vh - 86px)!important;min-height:560px!important}
}

/* v830 — FIX: AI inside Personal shell must stay in the shared workspace layout. */
@media (min-width:761px){
  body.ai-view-active{
    overflow:hidden!important;
  }

  body.ai-view-active .ksan-shell{
    display:grid!important;
    width:auto!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:0!important;
    left:auto!important;
  }

  body.ai-view-active .ksan-sidebar{
    display:block!important;
  }

  body.ai-view-active .ksan-main{
    display:block!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  body.ai-view-active #aiWorkspace,
  body[data-view="ai"] #aiWorkspace{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    z-index:1!important;
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    height:calc(100dvh - 86px)!important;
    min-height:560px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#000!important;
  }

  body.ai-view-active .content-brand{
    display:none!important;
  }
}
