/* Desktop workspace for Tìm Makeup and Tìm Massage. Mobile remains authoritative below 1024px. */
.tm-desktop-header{display:none}
.hr-search-desktop,.hr-community,.hr-desktop-footer{display:none}
@media (min-width: 1024px){
  body:has(.tim-platform-app){margin:0;background:#f7faf8}
  body.tim-brand-massage:has(.tim-platform-app){background:#f4f8f6}
  .tim-platform-app{--desktop-accent:var(--tm-color-accent,#E4294E);--desktop-deep:var(--tm-color-primary,#015F42);--desktop-soft:color-mix(in srgb,var(--desktop-accent) 8%,#fff);--desktop-line:color-mix(in srgb,var(--desktop-deep) 12%,#fff);--desktop-ink:color-mix(in srgb,var(--desktop-deep) 78%,#16251f);width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
  body.tim-brand-massage .tim-platform-app{--desktop-soft:color-mix(in srgb,var(--desktop-deep) 8%,#fff);--desktop-line:color-mix(in srgb,var(--desktop-deep) 13%,#fff);--desktop-ink:color-mix(in srgb,var(--desktop-deep) 82%,#173b36)}
  body.tim-brand-makeup .tim-platform-app.tm-account-mode{--desktop-soft:color-mix(in srgb,var(--desktop-deep) 8%,#fff)}
  html body .tim-makeup-app.tim-platform-app,
  html body .tim-makeup-app.tim-platform-app.tm-home-reference,
  html body.tim-brand-massage .tim-makeup-app.tim-platform-app.mm-reference{width:100%!important;max-width:none!important;margin:0!important;container-type:normal!important}
  html body .tim-platform-app.tm-home-mode.tm-home-reference{padding:0!important}
  html body .tim-platform-app .tm-desktop-header{position:sticky!important;top:0!important;z-index:990!important;display:grid!important;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr)!important;align-items:center!important;gap:24px!important;box-sizing:border-box!important;width:100%!important;height:68px!important;min-height:68px!important;margin:0!important;padding:0 max(28px,calc((100vw - 1240px)/2))!important;border:0!important;border-bottom:1px solid color-mix(in srgb,var(--desktop-deep) 10%,#fff)!important;border-radius:0!important;background:rgba(255,255,255,.96)!important;box-shadow:0 6px 22px rgba(13,60,43,.065)!important;backdrop-filter:blur(18px)}
  .tim-platform-app .tm-desktop-brand{display:flex!important;min-width:0!important;height:54px!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;color:var(--desktop-deep)!important;text-decoration:none!important}.tim-platform-app .tm-desktop-brand-logo{display:block!important;width:auto!important;height:36px!important;max-width:160px!important;object-fit:contain!important;object-position:left center!important}.tim-platform-app .tm-desktop-brand small{display:block!important;height:9px!important;margin:1px 0 0 34px!important;color:#738179!important;font-size:8px!important;line-height:9px!important;font-weight:400!important;white-space:nowrap!important}
  .tim-platform-app .tm-desktop-links{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;margin:0!important;padding:4px!important;border:1px solid #edf1ef!important;border-radius:13px!important;background:#f8faf9!important}.tim-platform-app .tm-desktop-links a{position:relative!important;display:inline-flex!important;height:34px!important;min-height:34px!important;align-items:center!important;padding:0 17px!important;border-radius:9px!important;color:#405149!important;font-size:12px!important;line-height:1!important;font-weight:750!important;text-decoration:none!important;white-space:nowrap!important;transition:color .18s ease,background .18s ease,box-shadow .18s ease}.tm-desktop-links a:hover{color:var(--desktop-deep)!important;background:#fff!important}.tm-desktop-links a[aria-current="page"]{color:var(--desktop-deep)!important;background:#fff!important;box-shadow:0 3px 11px rgba(13,60,43,.075)!important}.tm-desktop-links a[aria-current="page"]::after{content:"";position:absolute;right:17px;bottom:3px;left:17px;height:2px;border-radius:4px;background:var(--desktop-accent)}
  .tim-platform-app .tm-desktop-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;height:44px!important;margin:0!important}.tm-desktop-actions svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tim-platform-app .tm-desktop-notifications{position:relative;display:grid!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;place-items:center;border:1px solid var(--desktop-line)!important;border-radius:11px!important;background:#fff!important;color:var(--desktop-deep)!important;cursor:pointer}.tm-desktop-notifications i{position:absolute;top:7px;right:7px;width:6px;height:6px;border:2px solid #fff;border-radius:50%;background:var(--desktop-accent)}.tim-platform-app .tm-desktop-actions a{display:inline-flex!important;height:40px!important;min-height:40px!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:0 14px!important;border-radius:11px!important;font-size:11.5px!important;line-height:1!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap!important;transition:transform .18s ease,box-shadow .18s ease}.tm-desktop-actions a:hover{transform:translateY(-1px)}.tm-desktop-account{border:1px solid var(--desktop-line)!important;background:#fff!important;color:var(--desktop-deep)!important}.tm-desktop-partner{padding-right:12px!important;padding-left:16px!important;background:var(--desktop-accent)!important;color:#fff!important;box-shadow:0 7px 17px color-mix(in srgb,var(--desktop-accent) 22%,transparent)!important}.tm-desktop-partner svg{width:14px;height:14px}
  .tim-platform-app>.tm-shell{width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;min-height:calc(100vh - 68px)!important;margin:14px auto 48px!important;padding:0!important;border-radius:20px;background:#fff;box-shadow:0 10px 38px rgba(15,58,43,.07);overflow:visible!important}
  html body .tim-makeup-app.tim-platform-app>.tm-shell>.tm-header,
  html body .tim-makeup-app.tim-platform-app.tm-home-reference>.tm-shell>.tm-header,
  html body.tim-brand-massage .tim-makeup-app.tim-platform-app.mm-reference>.tm-shell>.tm-header{display:none!important}.tim-platform-app>.tm-shell>.tm-main{width:100%!important;max-width:none!important;min-height:620px!important;margin:0!important;padding-bottom:0!important;overflow:visible!important}
  html body .tim-makeup-app.tim-platform-app>.tm-shell>.tm-nav,
  html body .tim-makeup-app.tim-platform-app.mm-reference>.tm-shell>.tm-nav{display:none!important;visibility:hidden!important}
  .tim-platform-app .tm-screen{width:100%!important;max-width:none!important;margin:0!important}
  .tim-platform-app .tm-card,.tim-platform-app .tm-panel,.tim-platform-app .tm-section{border-color:var(--desktop-line)!important;box-shadow:0 4px 18px rgba(14,55,41,.055)!important}

  /* Home: turn the phone canvas into a wide editorial landing page. */
  .tim-platform-app.tm-home-mode>.tm-shell{background:transparent;box-shadow:none}.tim-platform-app.tm-home-mode .tm-main{border-radius:20px;background:#fff;box-shadow:0 10px 38px rgba(15,58,43,.07);overflow:hidden!important}
  html body .tim-platform-app.tm-home-mode.tm-home-reference>.tm-shell,
  html body.tim-brand-massage .tim-platform-app.tm-home-mode.mm-reference>.tm-shell{width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;min-height:0!important;margin:14px auto 48px!important;padding:0!important}
  .tim-platform-app.tm-home-mode .hr-home{width:100%!important;max-width:none!important}.tim-platform-app.tm-home-mode .hr-header{display:none!important}.tim-platform-app.tm-home-mode .tm-main{padding:0!important}.tim-platform-app.tm-home-mode .tm-screen{padding:0 28px 0!important}.tim-platform-app.tm-home-mode .hr-search-mobile{display:none!important}.tim-platform-app.tm-home-mode .hr-hero{min-height:0!important;aspect-ratio:2.44!important;margin:0 -28px 18px!important;border-radius:0!important;background-size:cover!important}.tim-platform-app.tm-home-mode .hr-hero-copy{width:58%;padding:42px 56px!important}.tim-platform-app.tm-home-mode .hr-hero h1{font-size:46px!important;line-height:1.02!important;letter-spacing:-1.8px!important;margin-bottom:12px!important}.tim-platform-app.tm-home-mode .hr-hero p{font-size:16px!important;line-height:1.35!important;margin-bottom:12px!important}.tim-platform-app.tm-home-mode .hr-hero-copy>a:not(.hr-primary-cta){display:none!important}.tim-platform-app.tm-home-mode .hr-primary-cta{display:inline-flex!important;min-height:46px!important;padding:0 28px!important;border-radius:12px!important;background:var(--desktop-accent)!important;font-size:14px!important}.tim-platform-app.tm-home-mode .hr-handwriting{display:block!important;right:20px!important;bottom:28px!important;color:#fff!important;font-size:17px!important;line-height:1.25!important;transform:rotate(-6deg)}
  .tim-platform-app.tm-home-mode .hr-search-desktop{display:grid!important;grid-template-columns:22px 170px 1px 22px minmax(170px,1fr) 38px!important;width:min(570px,100%)!important;height:52px!important;align-items:center!important;gap:10px!important;margin:0 0 10px!important;padding:0 8px 0 14px!important;border:0!important;border-radius:13px!important;box-shadow:0 8px 24px rgba(29,47,40,.12)!important}.tim-platform-app.tm-home-mode .hr-search-desktop>svg{width:18px!important;height:18px!important}.tim-platform-app.tm-home-mode .hr-search-desktop>i{width:1px;height:24px;background:#d9e1dd}.tim-platform-app.tm-home-mode .hr-search-desktop input{height:48px!important;font-size:12px!important}.tim-platform-app.tm-home-mode .hr-search-desktop a{width:38px!important;height:38px!important}
  .tim-platform-app.tm-home-mode .hr-heading{margin:0 0 10px!important}.tim-platform-app.tm-home-mode .hr-heading h2{font-size:21px!important}.tim-platform-app.tm-home-mode .hr-categories{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:18px 10px!important;margin-bottom:22px!important}.tim-platform-app.tm-home-mode .hr-categories>button{min-height:104px!important;justify-content:flex-start!important;gap:8px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;line-height:1.35!important}.tim-platform-app.tm-home-mode .hr-category-photo{width:68px!important;height:68px!important;max-width:68px!important;max-height:68px!important;border-radius:50%!important;box-shadow:0 0 0 4px #fff!important}
  .tim-platform-app.tm-home-mode .hr-partners{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;overflow:visible!important;margin-bottom:22px!important}.tim-platform-app.tm-home-mode .hr-card{display:block!important;min-width:0!important;border:1px solid var(--desktop-line)!important;border-radius:16px!important;box-shadow:0 5px 18px rgba(15,58,43,.055)!important}.tim-platform-app.tm-home-mode .hr-card:nth-of-type(n+4){display:none!important}.tim-platform-app.tm-home-mode .hr-card-link{grid-template-columns:36% minmax(0,1fr)!important;min-height:0!important;aspect-ratio:2.05 / 1!important}.tim-platform-app.tm-home-mode .hr-card-link>img,.tim-platform-app.tm-home-mode .hr-photo-placeholder{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important}.tim-platform-app.tm-home-mode .hr-more-card{display:none!important}.tim-platform-app.tm-home-mode .hr-partner-dots{display:none!important}
  .tim-platform-app.tm-home-mode .hr-community{margin:0 0 18px}.tim-platform-app.tm-home-mode .hr-community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tim-platform-app.tm-home-mode .hr-community-grid>a{display:grid;grid-template-columns:120px minmax(0,1fr);min-height:118px;overflow:hidden;border-radius:14px;background:#f8faf9}.tim-platform-app.tm-home-mode .hr-community-photo{background-image:url('home-category-photo-sprite-v2.webp');background-size:400% 200%;background-repeat:no-repeat}.tim-platform-app.tm-home-mode .hr-community-photo-1{background-position:0 0}.tim-platform-app.tm-home-mode .hr-community-photo-3{background-position:66.666% 0}.tim-platform-app.tm-home-mode .hr-community-photo-6{background-position:33.333% 100%}.tim-platform-app.tm-home-mode .hr-community-grid div{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:12px}.tim-platform-app.tm-home-mode .hr-community-grid b{width:max-content;max-width:100%;padding:3px 7px;border-radius:8px;background:var(--desktop-soft);color:var(--desktop-accent);font-size:9px}.tim-platform-app.tm-home-mode .hr-community-grid strong{margin:7px 0;font-size:13px;line-height:1.35}.tim-platform-app.tm-home-mode .hr-community-grid small{color:#65756e;font-size:10px}
  .tim-platform-app.tm-home-mode .hr-register-banner{width:auto!important;aspect-ratio:auto!important;min-height:112px!important;margin:0 -28px!important;padding:25px 56px!important;border-radius:0!important}.tim-platform-app.tm-home-mode .hr-register-banner h2{max-width:60%!important;font-size:23px!important}.tim-platform-app.tm-home-mode .hr-register-copy{max-width:60%!important;font-size:12px!important}.tim-platform-app.tm-home-mode .hr-register-label{display:none!important}.tim-platform-app.tm-home-mode .hr-register-banner a{position:absolute;right:180px;top:38px;min-width:190px!important;background:var(--desktop-accent)!important}
  body:not(.tim-brand-massage) .tim-platform-app.tm-home-mode .hr-register-banner:before{background-size:auto 100%!important;background-position:right center!important}
  body.tim-brand-massage .tim-platform-app.tm-home-mode .hr-register-banner:before{background-image:url('partner-register-background-massage-v1.jpg')!important;background-size:cover!important;background-position:center!important}
  body.tim-brand-massage .tim-platform-app.tm-home-mode .hr-community-photo{background-image:url('/wp-content/plugins/tim-massage-ui/assets/hero.webp')!important;background-size:cover!important}.tim-platform-app.tm-home-mode .hr-community-photo-1{background-position:20% center}.tim-platform-app.tm-home-mode .hr-community-photo-3{background-position:55% center}.tim-platform-app.tm-home-mode .hr-community-photo-6{background-position:85% center}
  .tim-platform-app.tm-home-mode .hr-desktop-footer{display:block;margin:0 -28px;padding:0;border-top:1px solid var(--desktop-line);background:linear-gradient(180deg,#fff 0,#fbfdfc 100%)}.tim-platform-app.tm-home-mode .hr-footer-main{display:grid;grid-template-columns:1.5fr .8fr .9fr 1.15fr;gap:54px;padding:42px 54px 34px}.tim-platform-app.tm-home-mode .hr-footer-main>div{min-width:0}.tim-platform-app.tm-home-mode .hr-footer-logo{display:block;width:max-content;text-decoration:none}.tim-platform-app.tm-home-mode .hr-footer-logo-image{display:block;width:auto;height:42px;max-width:190px;object-fit:contain;object-position:left center}.tim-platform-app.tm-home-mode .hr-footer-brand>small{display:block;margin:6px 0 13px;color:#61756c;font-size:10px}.tim-platform-app.tm-home-mode .hr-footer-brand>p,.tim-platform-app.tm-home-mode .hr-footer-connect>p{max-width:235px;margin:0;color:#718078;font-size:11px;line-height:1.65}.tim-platform-app.tm-home-mode .hr-footer-column,.tim-platform-app.tm-home-mode .hr-footer-connect{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-top:5px}.tim-platform-app.tm-home-mode .hr-footer-main strong{margin-bottom:4px;color:var(--desktop-ink);font-size:13px}.tim-platform-app.tm-home-mode .hr-footer-column a{position:relative;color:#687971;font-size:11px;text-decoration:none;transition:color .18s ease,transform .18s ease}.tim-platform-app.tm-home-mode .hr-footer-column a:hover{color:var(--desktop-accent);transform:translateX(3px)}.tim-platform-app.tm-home-mode .hr-socials{display:flex;gap:9px;margin-top:5px}.tim-platform-app.tm-home-mode .hr-socials>span{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--desktop-line);border-radius:11px;background:#fff;color:var(--desktop-deep);box-shadow:0 5px 16px rgba(14,55,41,.06);transition:color .18s ease,border-color .18s ease,transform .18s ease}.tim-platform-app.tm-home-mode .hr-socials>span:hover{border-color:var(--desktop-accent);color:var(--desktop-accent);transform:translateY(-2px)}.tim-platform-app.tm-home-mode .hr-socials svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tim-platform-app.tm-home-mode .hr-socials svg path:first-child{fill:currentColor;stroke:none}.tim-platform-app.tm-home-mode .hr-socials .is-fill{fill:currentColor;stroke:none}.tim-platform-app.tm-home-mode .hr-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 54px;border-top:1px solid var(--desktop-line);color:#7a8982;font-size:10px}.tim-platform-app.tm-home-mode .hr-footer-bottom nav{display:flex;gap:22px}.tim-platform-app.tm-home-mode .hr-footer-bottom a{color:#687971;text-decoration:none}.tim-platform-app.tm-home-mode .hr-footer-bottom a:hover{color:var(--desktop-accent)}

  .tim-platform-app.tm-home-mode .hr-community{display:block!important}
  .tim-platform-app.tm-home-mode .hr-handwriting{display:none!important}

  /* Nearby partners: filters, cards and map get real desktop width. */
  .tim-platform-app.tm-partners-mode .nr-page,.tim-platform-app.tm-partners-mode .tm-nearby{max-width:none!important;padding:26px 30px 34px!important}.tim-platform-app.tm-partners-mode .nr-results,.tim-platform-app.tm-partners-mode .tm-partner-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}.tim-platform-app.tm-partners-mode .nr-card{width:auto!important;min-width:0!important}.tim-platform-app.tm-partners-mode .nr-map{min-height:420px!important;border-radius:18px!important}
  html body .tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:18px!important}.tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-list .nr-card{grid-template-columns:36% minmax(0,1fr)!important;width:100%!important;min-width:0!important;min-height:0!important;aspect-ratio:2.05 / 1!important;border:1px solid var(--desktop-line)!important;border-radius:16px!important;box-shadow:0 5px 18px rgba(15,58,43,.07)!important;overflow:hidden!important}.tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-list .nr-photo{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;align-self:stretch!important}.tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-list .nr-photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}

  /* Partner profile: gallery/content plus sticky booking rail. */
  .tim-platform-app.tm-profile-route .tm-profile,.tim-platform-app.tm-profile-route .tm-profile-reference{max-width:none!important;padding:28px 32px 40px!important}.tim-platform-app.tm-profile-route .tm-profile-body,.tim-platform-app.tm-profile-route .tm-profile-layout{display:grid!important;grid-template-columns:minmax(0,1.8fr) minmax(300px,.72fr)!important;align-items:start!important;gap:24px!important}.tim-platform-app.tm-profile-route .tm-profile-actions,.tim-platform-app.tm-profile-route .tm-profile-contact{position:sticky!important;top:102px!important}.tim-platform-app.tm-profile-route .tm-pricing-grid,.tim-platform-app.tm-profile-route .tm-profile-prices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}

  /* Community keeps the feed but gains calm desktop rails. */
  .tim-platform-app[data-tm-screen="community"] .tm-community,.tim-platform-app[data-tm-screen="community"] .tm-community-page{width:100%!important;max-width:none!important;padding:26px 30px 40px!important}.tim-platform-app[data-tm-screen="community"] .tm-community-layout,.tim-platform-app[data-tm-screen="community"] .tm-community-shell{display:grid!important;grid-template-columns:220px minmax(0,640px) minmax(230px,1fr)!important;justify-content:center!important;align-items:start!important;gap:22px!important}.tim-platform-app[data-tm-screen="community"] .tm-community-sidebar,.tim-platform-app[data-tm-screen="community"] .tm-community-aside{position:sticky!important;top:102px!important}
  .tim-platform-app.tm-community-mode .tm-main{padding:0!important}.tim-platform-app.tm-community-mode .community-view{box-sizing:border-box;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:28px 34px 46px!important;background:linear-gradient(180deg,#f7faf8 0,#fff 100%)!important}.tim-platform-app.tm-community-mode .community-head{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;width:100%!important;height:68px!important;margin:0 0 24px!important;padding:0 18px!important;border:1px solid var(--desktop-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 6px 22px rgba(15,58,43,.055)!important}.tim-platform-app.tm-community-mode .community-head h1{font-size:24px!important;color:var(--desktop-deep)!important}.tim-platform-app.tm-community-mode .community-head>button{width:40px!important;height:40px!important;min-height:40px!important;border:1px solid var(--desktop-line)!important;box-shadow:none!important}.tim-platform-app.tm-community-mode .community-interests{margin:0 0 24px!important;padding:22px 24px 18px!important;border:1px solid var(--desktop-line)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 6px 22px rgba(15,58,43,.05)!important}.tim-platform-app.tm-community-mode .community-interests-head{margin:0 0 18px!important}.tim-platform-app.tm-community-mode .community-interests h2{font-size:18px!important;color:var(--desktop-ink)!important}.tim-platform-app.tm-community-mode .community-category-rail{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:14px!important;overflow:visible!important;margin:0!important;padding:0!important;scroll-snap-type:none!important}.tim-platform-app.tm-community-mode .community-category{width:100%!important;min-width:0!important;align-items:center!important;font-size:11px!important}.tim-platform-app.tm-community-mode .community-category-picture{width:70px!important;height:70px!important}.tim-platform-app.tm-community-mode .community-rail-indicator{display:none!important}.tim-platform-app.tm-community-mode .community-compose-entry,.tim-platform-app.tm-community-mode .community-composer{width:100%!important;margin:0 0 18px!important;padding:14px 16px!important;border:1px solid var(--desktop-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 5px 20px rgba(15,58,43,.055)!important}.tim-platform-app.tm-community-mode .community-compose-entry [data-start-compose]{min-height:48px!important}.tim-platform-app.tm-community-mode .community-tabs{width:100%!important;margin:0 0 16px!important;padding:5px!important;border:1px solid var(--desktop-line)!important;border-radius:16px!important;background:#eef5f1!important}.tim-platform-app.tm-community-mode .community-tabs button{height:42px!important;border:0!important;border-radius:11px!important}.tim-platform-app.tm-community-mode .community-tabs button.active{border:0!important;background:#fff!important;box-shadow:0 4px 13px rgba(15,58,43,.07)!important}.tim-platform-app.tm-community-mode .community-filters{width:100%!important;margin:0 0 14px!important}.tim-platform-app.tm-community-mode .community-discovery-caption,.tim-platform-app.tm-community-mode .community-notice{margin:0 2px 14px!important}.tim-platform-app.tm-community-mode .community-feed{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:18px!important}.tim-platform-app.tm-community-mode .community-post{min-width:0!important;padding:18px!important;border:1px solid var(--desktop-line)!important;border-radius:18px!important;box-shadow:0 5px 20px rgba(15,58,43,.06)!important}.tim-platform-app.tm-community-mode .community-empty{grid-column:1 / -1!important;display:grid!important;min-height:210px!important;place-items:center!important;margin:0!important;padding:42px!important;border:1px dashed color-mix(in srgb,var(--desktop-deep) 24%,#fff)!important;border-radius:20px!important;background:#fff!important;color:#718078!important;font-size:14px!important;line-height:1.8!important}.tim-platform-app.tm-community-mode .community-fab{right:max(34px,calc((100vw - 1240px)/2 + 38px))!important;bottom:28px!important}.tim-platform-app.tm-community-mode .community-more{grid-column:1 / -1!important}

  /* Chat becomes an inbox workspace instead of a phone conversation. */
  html body .tim-platform-app.tm-chat-page.tm-inbox-reference{width:100%!important;max-width:none!important;margin:0!important;container-type:normal!important}html body .tim-platform-app.tm-chat-page.tm-inbox-reference>.tm-shell{box-sizing:border-box!important;width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;height:calc(100vh - 96px)!important;min-height:calc(100vh - 96px)!important;max-height:calc(100vh - 96px)!important;margin:14px auto!important;padding:0!important;overflow:hidden!important}html body .tim-platform-app.tm-chat-page.tm-inbox-reference .tm-main,html body .tim-platform-app.tm-chat-page.tm-inbox-reference .tm-screen{box-sizing:border-box!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}.tim-platform-app.tm-inbox-reference .tm-inbox,.tim-platform-app.tm-inbox-reference .tm-chat-layout{display:grid!important;grid-template-columns:300px minmax(0,1fr) 280px!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important}.tim-platform-app.tm-inbox-reference .tm-inbox-list{border-right:1px solid var(--desktop-line)!important}.tim-platform-app.tm-inbox-reference .tm-chat-detail{max-width:none!important;border-right:1px solid var(--desktop-line)!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-screen{display:grid!important;grid-template-columns:420px minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr)!important;width:100%!important;max-width:none!important;margin:0!important;background:#fff!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list-head{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;width:100%!important;height:74px!important;min-height:74px!important;margin:0!important;padding:0 20px!important;border:0!important;border-bottom:1px solid var(--desktop-line)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list-head h1{position:static!important;flex:1!important;margin:0!important;text-align:left!important;color:var(--desktop-deep)!important;font-size:24px!important;line-height:1.2!important;letter-spacing:-.5px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list-head>div{display:flex!important;gap:6px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list-head button{position:static!important;width:40px!important;height:40px!important;min-height:40px!important;padding:9px!important;border:1px solid var(--desktop-line)!important;border-radius:12px!important;background:#f8faf9!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-subtitle{display:none!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-search{grid-column:1!important;grid-row:2!important;margin:12px 16px 0!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list-menu{top:62px!important;right:auto!important;left:210px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-overview{grid-column:1!important;grid-row:2!important;width:auto!important;min-height:70px!important;margin:14px 16px 10px!important;padding:13px 14px!important;border:0!important;border-radius:15px!important;background:color-mix(in srgb,var(--desktop-deep) 7%,#fff)!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-overview strong{font-size:15px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-overview p{font-size:11px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list{grid-column:1!important;grid-row:3!important;align-content:start!important;width:100%!important;min-height:0!important;margin:0!important;padding:0 14px 16px!important;border:0!important;border-right:1px solid var(--desktop-line)!important;border-radius:0!important;background:#fff!important;overflow-y:auto!important;overscroll-behavior:contain!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row{grid-template-columns:52px minmax(0,1fr) 48px!important;column-gap:10px!important;width:100%!important;height:66px!important;min-height:66px!important;padding:6px 4px!important;border-radius:11px!important;transition:background .16s ease!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row:hover{background:#f7faf8!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row:after{left:66px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row>img,.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-avatar-fallback{width:52px!important;height:52px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row-body>span>strong{font-size:14px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row-body>em{margin-top:3px!important;font-size:12px!important;line-height:16px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row-meta{padding-top:8px!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-desktop-empty{grid-column:2!important;grid-row:1 / 4!important;display:flex!important;min-width:0!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:48px!important;border-left:1px solid var(--desktop-line)!important;background:linear-gradient(145deg,#fbfdfc 0%,color-mix(in srgb,var(--desktop-soft) 55%,#fff) 100%)!important;text-align:center!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-desktop-empty>span{display:grid!important;width:94px!important;height:94px!important;margin-bottom:22px!important;place-items:center;border-radius:28px!important;background:#fff!important;color:var(--desktop-deep)!important;box-shadow:0 14px 40px rgba(15,58,43,.09)!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-desktop-empty svg{width:54px!important;height:48px!important;fill:none!important;stroke:currentColor!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-desktop-empty strong{color:var(--desktop-ink)!important;font-size:22px!important;line-height:1.3!important}.tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-desktop-empty p{max-width:390px!important;margin:10px 0 0!important;color:#718078!important;font-size:13px!important;line-height:1.65!important}.tim-platform-app.tm-chat-detail-page .tm-screen{width:min(920px,100%)!important;max-width:920px!important;margin:0 auto!important}.tim-platform-app.tm-chat-page .tm-chat-list-head,.tim-platform-app.tm-chat-page .tm-chat-overview,.tim-platform-app.tm-chat-page .tm-chat-list{max-width:none!important}

  /* Account and store management use dashboard density on wide screens. */
  .tim-platform-app.tm-account-mode .tm-account,.tim-platform-app.tm-account-mode .tm-account-reference{width:100%!important;max-width:none!important;padding:28px 32px 40px!important}.tim-platform-app.tm-account-mode .tm-account-grid,.tim-platform-app.tm-account-mode .tm-account-body{display:grid!important;grid-template-columns:240px minmax(0,1fr)!important;align-items:start!important;gap:24px!important}.tim-platform-app.tm-account-mode .tm-account-menu{position:sticky!important;top:102px!important}
  html body .tim-platform-app.tm-account-mode .tm-account-page{display:grid!important;grid-template-columns:minmax(340px,.82fr) minmax(0,1.18fr)!important;align-items:start!important;gap:20px!important;width:100%!important;max-width:1120px!important;min-height:0!important;margin:0 auto!important;padding:30px!important;border:1px solid var(--desktop-line)!important;border-radius:24px!important;background:linear-gradient(145deg,#f8fbf9 0,#fff 58%,#f5faf7 100%)!important;box-shadow:0 14px 44px rgba(15,58,43,.07)!important;overflow:visible!important}
  html body .tim-platform-app.tm-account-mode .tm-account-editor{width:min(920px,100%)!important;max-width:920px!important;margin:0 auto!important;padding:28px!important}
  html body .tim-platform-app.tm-account-mode .tm-account-page>.tm-account-head{grid-column:1 / -1!important;display:flex!important;align-items:center!important;min-height:72px!important;height:auto!important;margin:0!important;padding:0 20px!important;border:1px solid var(--desktop-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 6px 20px rgba(15,58,43,.05)!important}
  html body .tim-platform-app.tm-account-mode .tm-account-head h1{font-size:28px!important;line-height:1.12!important}.tim-platform-app.tm-account-mode .tm-account-head p{margin-top:5px!important;font-size:13px!important}.tim-platform-app.tm-account-mode .tm-account-head .tm-account-bell{width:42px!important;height:42px!important;min-height:42px!important;border:1px solid var(--desktop-line)!important;border-radius:13px!important;background:var(--desktop-soft)!important}
  html body .tim-platform-app.tm-account-mode .tm-account-page>.tm-account-profile{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:104px minmax(0,1fr)!important;grid-template-rows:1fr!important;column-gap:18px!important;width:100%!important;height:128px!important;min-height:128px!important;margin:0!important;padding:20px 22px!important;border:1px solid var(--desktop-line)!important;border-radius:20px!important;background:linear-gradient(145deg,#fff 0,#f1f8f4 100%)!important;box-shadow:0 7px 24px rgba(15,58,43,.055)!important}
  html body .tim-platform-app.tm-account-mode .tm-account-profile .tm-account-avatar-wrap{width:84px!important;height:84px!important}.tim-platform-app.tm-account-mode .tm-account-profile .tm-account-avatar{width:84px!important;height:84px!important}.tim-platform-app.tm-account-mode .tm-account-profile .tm-account-user h2{font-size:18px!important}.tim-platform-app.tm-account-mode .tm-account-profile .tm-account-user p{font-size:13px!important;line-height:1.7!important}.tim-platform-app.tm-account-mode .tm-account-profile .tm-account-edit{top:20px!important;right:18px!important}
  html body .tim-platform-app.tm-account-mode .tm-account-page>.tm-rewards{grid-column:2!important;grid-row:2!important;container-type:inline-size!important;width:100%!important;min-width:0!important;margin:0!important}.tim-platform-app.tm-account-mode .tm-rewards{--u:calc(100cqw / 808)!important}.tim-platform-app.tm-account-mode .reward-wallet,.tim-platform-app.tm-account-mode .reward-affiliate{border:1px solid var(--desktop-line)!important;box-shadow:0 7px 24px rgba(15,58,43,.05)!important}
  html body .tim-platform-app.tm-account-mode .tm-account-page>.tm-account-menu{position:static!important;grid-column:1 / -1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  html body .tim-platform-app.tm-account-mode .tm-account-page>.tm-account-menu~.tm-account-menu{display:none!important}
  html body .tim-platform-app.tm-account-mode .tm-account-content-menu>.tm-account-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) 14px!important;gap:13px!important;width:100%!important;height:86px!important;min-height:86px!important;padding:14px 16px!important;border:1px solid var(--desktop-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 18px rgba(15,58,43,.045)!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important}.tim-platform-app.tm-account-mode .tm-account-content-menu>.tm-account-row:hover{border-color:color-mix(in srgb,var(--desktop-accent) 34%,#fff)!important;box-shadow:0 9px 24px rgba(15,58,43,.09)!important;transform:translateY(-2px)}.tim-platform-app.tm-account-mode .tm-account-content-menu>.tm-account-row:before{display:none!important}.tim-platform-app.tm-account-mode .tm-account-content-menu>.tm-account-row>i{width:42px!important;height:42px!important;border-radius:13px!important;background:var(--desktop-soft)!important}.tim-platform-app.tm-account-mode .tm-account-content-menu>.tm-account-row>i svg{width:23px!important;height:23px!important}.tim-platform-app.tm-account-mode .tm-account-content-menu>.tm-account-row>span{font-size:14px!important;line-height:1.35!important}.tim-platform-app.tm-account-mode .tm-account-content-menu>.tm-account-row small{margin-top:4px!important;font-size:11px!important;line-height:1.35!important;white-space:normal!important}
  html body .tim-platform-app.tm-account-mode .tm-account-page>.tm-account-logout{grid-column:1 / -1!important;justify-self:end!important;width:190px!important;height:44px!important;margin:2px 0 0!important;border-radius:13px!important;background:#fff7f8!important}
  .tim-platform-app[data-tm-screen="store-dashboard"]>.tm-shell{background:transparent;box-shadow:none}.tim-platform-app[data-tm-screen="store-dashboard"] .tm-config:not(dialog),.tim-platform-app[data-tm-screen="store-dashboard"] .tm-store-dashboard{width:100%!important;max-width:none!important;padding:28px 32px 40px!important;border-radius:20px;background:#fff;box-shadow:0 10px 38px rgba(15,58,43,.07)}.tim-platform-app[data-tm-screen="store-dashboard"] .tm-config-menu{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}.tim-platform-app[data-tm-screen="store-dashboard"] .tm-stats-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
}

/* Keep the inbox search as a single, stable toolbar row. */
@media (min-width:1024px){
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list-head>div{display:flex!important;gap:0!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list-head button{border:0!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-search{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;height:54px!important;min-height:54px!important;margin:10px 16px!important;padding:5px!important;border:0!important;border-radius:15px!important;overflow:hidden!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-search input{height:44px!important;min-height:44px!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-search button{height:44px!important;min-height:44px!important;padding:0 12px!important}
}

/* 0.9.812: reduce the Community discovery header footprint on desktop while
   keeping the feed and full-screen composer behavior unchanged. */
@media (min-width:1024px){
  .tim-platform-app.tm-community-mode .community-view{padding:18px 28px 40px!important}
  .tim-platform-app.tm-community-mode .community-head{height:52px!important;min-height:52px!important;margin-bottom:12px!important;padding:0 14px!important;border-radius:16px!important}
  .tim-platform-app.tm-community-mode .community-head h1{font-size:21px!important}
  .tim-platform-app.tm-community-mode .community-head>button{width:36px!important;height:36px!important;min-height:36px!important}
  .tim-platform-app.tm-community-mode .community-interests{margin-bottom:14px!important;padding:14px 18px 12px!important;border-radius:17px!important}
  .tim-platform-app.tm-community-mode .community-interests-head{margin-bottom:10px!important}
  .tim-platform-app.tm-community-mode .community-interests h2{font-size:16px!important}
  .tim-platform-app.tm-community-mode .community-interests-head [data-focus-area]{min-height:32px!important;padding:6px 9px!important}
  .tim-platform-app.tm-community-mode .community-category-rail{gap:12px!important}
  .tim-platform-app.tm-community-mode .community-category{gap:5px!important;font-size:10.5px!important;line-height:14px!important}
  .tim-platform-app.tm-community-mode .community-category-picture{width:58px!important;height:58px!important}
  .tim-platform-app.tm-community-mode .community-category>span:last-child{min-height:28px!important}
  html body .tim-platform-app.tm-community-mode .community-compose-entry{margin-bottom:10px!important;padding:8px!important}
  html body .tim-platform-app.tm-community-mode .community-discovery-caption{margin-bottom:8px!important;padding-bottom:8px!important}
}

/* 0.9.799: keep one clear account canvas on desktop. The shell and title are
   layout wrappers, not extra cards. Mobile keeps the approved reference UI. */
@media (min-width:1024px){
  html body .tim-platform-app.tm-account-mode>.tm-shell{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  html body .tim-platform-app.tm-account-mode .tm-main,
  html body .tim-platform-app.tm-account-mode .tm-screen{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  html body .tim-platform-app.tm-account-mode .tm-account-page{
    background:#fff!important;
    box-shadow:0 12px 38px rgba(15,58,43,.065)!important;
  }
  html body .tim-platform-app.tm-account-mode .tm-account-page>.tm-account-head{
    min-height:58px!important;
    padding:0 4px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
}
.tm-inbox-desktop-empty{display:none}
@media (min-width:1024px){
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-row.is-selected{background:color-mix(in srgb,var(--desktop-deep) 9%,#fff)!important;box-shadow:inset 3px 0 0 var(--desktop-accent)!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list,
  .tim-platform-app.tm-chat-desktop-pane .tm-messages{scrollbar-width:thin!important;scrollbar-color:color-mix(in srgb,var(--desktop-deep) 28%,transparent) transparent!important;scrollbar-gutter:stable!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list::-webkit-scrollbar,
  .tim-platform-app.tm-chat-desktop-pane .tm-messages::-webkit-scrollbar{width:8px!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list::-webkit-scrollbar-track,
  .tim-platform-app.tm-chat-desktop-pane .tm-messages::-webkit-scrollbar-track{margin-block:8px!important;background:transparent!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-chat-list::-webkit-scrollbar-thumb,
  .tim-platform-app.tm-chat-desktop-pane .tm-messages::-webkit-scrollbar-thumb{border:2px solid transparent!important;border-radius:999px!important;background:color-mix(in srgb,var(--desktop-deep) 28%,transparent)!important;background-clip:padding-box!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-desktop-empty.has-conversation{display:block!important;padding:0!important;background:#fff!important;overflow:hidden!important}
  .tim-platform-app.tm-chat-page:not(.tm-chat-detail-page) .tm-inbox-desktop-frame{display:block;width:100%;height:100%;border:0;background:#fff}
  html body:has(.tim-platform-app.tm-chat-desktop-pane){margin:0!important;overflow:hidden!important;background:#fff!important}
  html body .tim-platform-app.tm-chat-desktop-pane{width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important}
  html body .tim-platform-app.tm-chat-desktop-pane>.tm-desktop-header{display:none!important}
  html body .tim-platform-app.tm-chat-desktop-pane>.tm-shell{width:100%!important;max-width:none!important;height:100vh!important;min-height:100vh!important;max-height:100vh!important;margin:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-main,html body .tim-platform-app.tm-chat-desktop-pane .tm-screen{width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;overflow:hidden!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-screen{display:flex!important;flex-direction:column!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-conversation-head{position:relative!important;top:0!important;flex:0 0 auto!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-conversation-head>a:first-child{display:none!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-conversation-head{grid-template-columns:43px minmax(0,1fr) 40px 40px!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-message-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-composer{position:relative!important;right:auto!important;bottom:auto!important;left:auto!important;flex:0 0 auto!important;width:100%!important;max-width:none!important;margin:0!important}
  html body .tim-platform-app.tm-chat-desktop-pane .tm-nav{display:none!important}
}
@media (min-width:1024px) and (max-width:1180px){
  .tim-platform-app .tm-desktop-header{grid-template-columns:minmax(160px,1fr) auto minmax(160px,1fr)!important;gap:14px!important;padding-right:20px!important;padding-left:20px!important}.tm-desktop-links a{padding-right:12px!important;padding-left:12px!important}.tm-desktop-account span{display:none}.tm-desktop-account{width:42px;padding:0!important}.tm-desktop-partner{display:none!important}.tim-platform-app>.tm-shell{width:calc(100% - 32px)!important}.tim-platform-app.tm-inbox-reference .tm-inbox,.tim-platform-app.tm-inbox-reference .tm-chat-layout{grid-template-columns:270px minmax(0,1fr)!important}.tim-platform-app.tm-inbox-reference .tm-inbox-aside,.tim-platform-app.tm-inbox-reference .tm-chat-aside{display:none!important}
}

/* 0.9.769: keep every desktop route on the same canvas and prevent dense rails from squeezing content. */
@media (min-width:1024px){
  html body:has(.tim-platform-app){background:#f7faf8!important}
  html body.tim-brand-massage:has(.tim-platform-app){background:#f4f8f6!important}
  html body .tim-platform-app>.tm-shell,
  html body .tim-platform-app.tm-home-mode.tm-home-reference>.tm-shell,
  html body.tim-brand-massage .tim-platform-app.tm-home-mode.mm-reference>.tm-shell{box-sizing:border-box!important;width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;margin:14px auto 48px!important}

  html body .tim-platform-app.tm-partners-mode>.tm-shell{border-radius:20px!important;background:#fff!important;box-shadow:0 10px 38px rgba(15,58,43,.07)!important;overflow:hidden!important}
  html body .tim-platform-app.tm-partners-mode .tm-main,
  html body .tim-platform-app.tm-partners-mode .tm-screen,
  html body .tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-page{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;background:#fff!important}
  html body .tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-page{padding:28px 32px 40px!important}
  html body .tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-categories{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:92px!important;gap:16px!important;width:100%!important;max-width:100%!important;margin:0 0 18px!important;padding:7px 5px 12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;scrollbar-width:thin!important;scrollbar-color:var(--desktop-line) transparent!important}
  html body .tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-categories button{box-sizing:border-box!important;width:92px!important;min-width:92px!important;min-height:118px!important;padding:0 5px 8px!important;scroll-snap-align:start!important}
  html body .tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-categories .nr-category-photo{width:76px!important;height:76px!important;aspect-ratio:1!important}
  html body .tim-platform-app.tm-partners-mode.tm-nearby-reference .nr-categories .nr-category-label{min-height:32px!important;font-size:11px!important;line-height:15px!important}

  html body .tim-platform-app.tm-community-mode>.tm-shell{overflow:hidden!important}
  html body .tim-platform-app.tm-community-mode .community-view{background:var(--tm-color-page)!important}
  html body .tim-platform-app.tm-community-mode .community-head{border:0!important}
  html body .tim-platform-app.tm-community-mode .community-category-rail{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:94px!important;gap:16px!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;padding:6px 4px 12px!important;scroll-snap-type:x proximity!important;scrollbar-width:thin!important;scrollbar-color:var(--desktop-line) transparent!important}
  html body .tim-platform-app.tm-community-mode .community-category{width:94px!important;min-width:94px!important;scroll-snap-align:start!important}
  html body .tim-platform-app.tm-community-mode.community-discovery-listing .community-feed,
  html body .tim-platform-app.tm-community-mode .community-feed{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:18px!important}

  html body .tim-platform-app.tm-account-mode .tm-account-page{max-width:1176px!important}

  html body .tim-platform-app.tm-config-mode>.tm-shell{box-sizing:border-box!important;width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;min-height:620px!important;margin:14px auto 48px!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 38px rgba(15,58,43,.07)!important;overflow:hidden!important}
  html body .tim-platform-app.tm-config-mode .tm-main,
  html body .tim-platform-app.tm-config-mode .tm-screen{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:620px!important;margin:0!important;background:linear-gradient(180deg,#f7faf8 0,#fff 100%)!important}
  html body .tim-platform-app.tm-config-mode .tm-config:not(dialog){box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:620px!important;margin:0!important;padding:64px 32px!important;background:transparent!important}
  html body .tim-platform-app.tm-config-mode .tm-config-complete{box-sizing:border-box!important;width:min(640px,100%)!important;margin:0 auto!important;padding:58px 54px!important;border:1px solid var(--desktop-line)!important;border-radius:24px!important;background:linear-gradient(145deg,#fff 0,#f3faf6 100%)!important;box-shadow:0 14px 44px rgba(15,58,43,.08)!important}
  html body .tim-platform-app.tm-config-mode .tm-config-complete>svg{width:64px!important;height:64px!important;margin-bottom:20px!important}
  html body .tim-platform-app.tm-config-mode .tm-config-complete h1{margin:0 0 12px!important;font-size:28px!important;line-height:1.2!important;letter-spacing:-.7px!important}
  html body .tim-platform-app.tm-config-mode .tm-config-complete p{max-width:440px!important;margin:0 auto!important;color:var(--tm-color-muted)!important;font-size:15px!important;line-height:1.6!important}
  html body .tim-platform-app.tm-config-mode .tm-config-complete a{display:inline-flex!important;min-width:210px!important;min-height:48px!important;align-items:center!important;justify-content:center!important;margin-top:28px!important;padding:0 24px!important;border-radius:13px!important;background:var(--tm-color-primary)!important;color:#fff!important;font-size:14px!important;font-weight:750!important;text-decoration:none!important;box-shadow:0 8px 20px color-mix(in srgb,var(--tm-color-primary) 20%,transparent)!important}

  html body .tim-platform-app.tm-config-mode .tm-config:has(.tm-config-menu){display:block!important;min-height:0!important;padding:32px!important}
  html body .tim-platform-app.tm-config-mode .tm-config-head{box-sizing:border-box!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:center!important;gap:16px!important;width:100%!important;min-height:92px!important;margin:0 0 24px!important;padding:18px 20px!important;border:1px solid var(--desktop-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 6px 22px rgba(15,58,43,.05)!important}
  html body .tim-platform-app.tm-config-mode[data-tm-screen="partner-register"] .tm-config-head.tm-config-head-registration{grid-template-columns:48px minmax(0,1fr) 100px!important;background:linear-gradient(120deg,#fff 55%,var(--tm-color-page) 100%)!important}
  html body .tim-platform-app.tm-config-mode[data-tm-screen="store-dashboard"] .tm-config-head{grid-template-columns:48px minmax(0,1fr) 48px!important;background:linear-gradient(120deg,#fff 55%,var(--tm-color-page) 100%)!important}
  html body .tim-platform-app.tm-config-mode .tm-config-head h1{font-size:26px!important;line-height:1.2!important}
  html body .tim-platform-app.tm-config-mode .tm-config-head p{margin-top:5px!important;font-size:13px!important}
  html body .tim-platform-app.tm-config-mode .tm-config-menu{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;width:100%!important;margin:0!important}
  html body .tim-platform-app.tm-config-mode .tm-config-menu button{box-sizing:border-box!important;grid-template-columns:44px minmax(0,1fr) 14px!important;gap:12px!important;width:100%!important;min-height:132px!important;padding:18px!important;border:1px solid var(--desktop-line)!important;border-radius:17px!important;background:#fff!important;box-shadow:0 5px 18px rgba(15,58,43,.045)!important}
  html body .tim-platform-app.tm-config-mode.tm-config-registration .tm-config-tip,
  html body .tim-platform-app.tm-config-mode.tm-config-registration .tm-config-footer{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-right:0!important;margin-left:0!important}
  html body .tim-platform-app.tm-config-mode .tm-config-menu button:first-child{background:color-mix(in srgb,var(--tm-color-primary) 8%,#fff)!important}
  html body .tim-platform-app.tm-config-mode .tm-config-menu strong{font-size:16px!important;line-height:1.35!important}
  html body .tim-platform-app.tm-config-mode .tm-config-menu small{font-size:11px!important;line-height:1.5!important}
  html body .tim-platform-app.tm-config-mode .tm-config-tip{box-sizing:border-box!important;width:100%!important;margin:22px 0 0!important;padding:18px 20px!important;border:1px solid var(--desktop-line)!important;border-radius:16px!important;background:color-mix(in srgb,var(--tm-color-primary) 8%,#fff)!important;color:var(--tm-color-primary)!important;font-size:13px!important}
}
@media (min-width:1024px) and (max-width:1279px){
  html body .tim-platform-app.tm-home-mode .hr-card-link{min-height:172px!important}
  html body .tim-platform-app.tm-config-mode .tm-config-menu{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body .tim-platform-app.tm-config-mode .tm-config-menu button{min-height:116px!important}
}

/* Shared configuration cards for registration and store management. */
@media (min-width:1024px){
  html body .tim-platform-app.tm-config-mode .tm-config-menu{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px 16px!important;
    width:100%!important;
    margin:0!important;
  }
  html body .tim-platform-app.tm-config-mode .tm-config-menu button{
    grid-template-columns:42px minmax(0,1fr) 16px!important;
    gap:13px!important;
    min-height:84px!important;
    padding:14px 16px!important;
    align-items:center!important;
    border:1px solid var(--desktop-line)!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 5px 18px rgba(15,58,43,.035)!important;
  }
  html body .tim-platform-app.tm-config-mode .tm-config-menu button:first-child{
    border-color:var(--desktop-line)!important;
    background:#fff!important;
  }
  html body .tim-platform-app.tm-config-mode .tm-config-menu button>svg:first-child,
  html body .tim-platform-app.tm-config-mode .tm-config-menu button>svg:nth-child(2){
    box-sizing:border-box!important;
    width:42px!important;
    height:42px!important;
    padding:10px!important;
    border-radius:12px!important;
    background:var(--tm-color-soft)!important;
    color:var(--tm-color-primary)!important;
  }
  html body .tim-platform-app.tm-config-mode .tm-config-menu strong{
    font-size:14px!important;
    line-height:1.35!important;
    font-weight:750!important;
    letter-spacing:-.2px!important;
  }
  html body .tim-platform-app.tm-config-mode .tm-config-menu small{
    margin-top:4px!important;
    font-size:11px!important;
    line-height:1.4!important;
  }

  /* Keep the desktop hero copy compact, vertically balanced and predictable. */
  html body .tim-platform-app.tm-home-mode .hr-hero{
    display:flex!important;
    align-items:center!important;
  }
  html body .tim-platform-app.tm-home-mode .hr-hero-copy{
    box-sizing:border-box!important;
    display:flex!important;
    width:min(520px,48%)!important;
    min-width:0!important;
    height:auto!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    margin-left:clamp(38px,4.4vw,56px)!important;
    padding:0!important;
  }
  html body .tim-platform-app.tm-home-mode .hr-hero h1{
    max-width:410px!important;
    margin:0 0 12px!important;
    font-size:clamp(38px,3.65vw,46px)!important;
  }
  html body .tim-platform-app.tm-home-mode .hr-hero p{
    max-width:390px!important;
    margin:0 0 14px!important;
  }
  html body .tim-platform-app.tm-home-mode .hr-search-desktop{
    width:min(520px,100%)!important;
    margin-bottom:12px!important;
  }

  /* Balanced desktop registration banner: one safe copy rail, no image overlap. */
  html body .tim-platform-app.tm-home-mode .hr-register-banner{
    box-sizing:border-box!important;
    display:flex!important;
    width:auto!important;
    height:clamp(178px,15vw,196px)!important;
    min-height:178px!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    margin:0 -28px!important;
    padding:28px clamp(40px,4.4vw,56px)!important;
    border-radius:0!important;
  }
  html body .tim-platform-app.tm-home-mode .hr-register-banner h2{
    width:min(390px,42%)!important;
    max-width:none!important;
    margin:0 0 8px!important;
    font-size:26px!important;
    line-height:1.08!important;
  }
  html body .tim-platform-app.tm-home-mode .hr-register-copy{
    width:min(390px,42%)!important;
    max-width:none!important;
    margin:0 0 14px!important;
    font-size:12px!important;
    line-height:1.45!important;
  }
  html body .tim-platform-app.tm-home-mode .hr-register-banner a{
    position:static!important;
    min-width:190px!important;
    min-height:40px!important;
    margin:0!important;
    padding:9px 18px!important;
    background:var(--desktop-accent)!important;
    font-size:12px!important;
  }
  html body:not(.tim-brand-massage) .tim-platform-app.tm-home-mode .hr-register-banner:before{
    background-size:cover!important;
    background-position:center!important;
  }
}

@media (min-width:1024px) and (max-width:1279px){
  html body .tim-platform-app.tm-config-mode.tm-config-edit .tm-config-menu,
  html body .tim-platform-app.tm-config-mode.tm-config-registration .tm-config-menu{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
