/* Restored v1.0.68 Overview + native Youzify Gift Profile. Scoped to BuddyPress profile pages via conditional enqueue. */
/* 1.0.14 BuddyPress / Youzify integration */
.tgs-bp-intro{margin:0 0 18px;padding:16px 18px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;box-sizing:border-box;max-width:100%}
.tgs-bp-intro strong{display:block;font-size:1.05rem;margin-bottom:4px}.tgs-bp-intro p{margin:0;overflow-wrap:anywhere}
.tgs-profileactions a.tgs-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:720px){.tgs-profileactions{width:100%;display:grid;grid-template-columns:1fr;gap:8px}.tgs-profileactions .tgs-btn{width:100%;min-width:0;white-space:normal}}

/* v1.0.15 native BuddyPress / Youzify Gift Shortlist integration */

.tgs-bp-native{--tgs-bp-teal:var(--tgs-primary,#19b8b2);--tgs-bp-orange:var(--tgs-gold,#e7a24a);--tgs-bp-tan:#fbf4e8;--tgs-bp-cream:#fffaf2;--tgs-bp-ink:#24343a;--tgs-bp-muted:#69777c;--tgs-bp-line:#eadfce;font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tgs-bp-ink);width:100%;max-width:100%;margin:22px 0 30px!important;padding:0!important;box-sizing:border-box;clear:both}
.tgs-bp-native *{box-sizing:border-box;min-width:0}.tgs-bp-native a{text-decoration:none!important}.tgs-bp-shell{width:100%;padding:22px;border:1px solid var(--tgs-bp-line);border-radius:24px;background:linear-gradient(180deg,#fffdf9 0%,#fff 100%);box-shadow:0 12px 32px rgba(50,54,52,.08)}
.tgs-bp-notice{margin:0 0 16px;padding:13px 16px;border:1px solid #bde8e1;border-radius:14px;background:#eaf9f6;color:#17665f;font-weight:750}
.tgs-bp-summary{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:22px;align-items:center;padding:22px;border-radius:20px;background:linear-gradient(135deg,#effaf8 0%,#fff8ec 58%,#f9eedb 100%);border:1px solid #dceee9}.tgs-bp-eyebrow{display:inline-block;margin-bottom:5px;color:#b36f1e;font-size:11px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.tgs-bp-summary h2{margin:0 0 7px!important;color:var(--tgs-bp-ink)!important;font-size:28px!important;line-height:1.12!important}.tgs-bp-summary p{margin:0!important;max-width:680px;color:var(--tgs-bp-muted)!important;font-size:14px!important;line-height:1.55!important}.tgs-bp-score{padding:15px 16px;border-radius:16px;background:rgba(255,255,255,.82);border:1px solid rgba(25,184,178,.18)}.tgs-bp-score strong{display:block;color:#147c76;font-size:28px;line-height:1}.tgs-bp-score>span{display:block;margin-top:4px;color:#68777b;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.tgs-bp-meter{height:8px;margin-top:10px;border-radius:999px;background:#e9ece8;overflow:hidden}.tgs-bp-meter i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--tgs-bp-teal),var(--tgs-bp-orange))}
.tgs-bp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.tgs-bp-btn{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:11px 16px!important;border:1px solid var(--tgs-bp-line)!important;border-radius:14px!important;background:#fff!important;color:#36505a!important;font-family:inherit!important;font-size:14px!important;font-weight:800!important;line-height:1.15!important;box-shadow:0 4px 12px rgba(48,53,52,.04)!important;cursor:pointer!important;transition:transform .15s ease,box-shadow .15s ease!important}.tgs-bp-btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(48,53,52,.09)!important}.tgs-bp-btn.primary{border-color:transparent!important;background:linear-gradient(135deg,var(--tgs-bp-teal),#57cfc6)!important;color:#fff!important;box-shadow:0 8px 18px rgba(25,184,178,.22)!important}
.tgs-bp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:4px}.tgs-bp-card{min-height:156px;padding:18px;border:1px solid var(--tgs-bp-line);border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(40,52,55,.045)}.tgs-bp-card.likes{background:linear-gradient(145deg,#fff,#effaf8)}.tgs-bp-card.dislikes{background:linear-gradient(145deg,#fff,#fff5e8)}.tgs-bp-card.brands{background:linear-gradient(145deg,#fff,#fdf8ef)}.tgs-bp-card.interests{background:linear-gradient(145deg,#fff,#f1faf8)}.tgs-bp-cardhead{display:flex;align-items:flex-start;gap:11px;margin:0 0 13px}.tgs-bp-cardhead>span{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:12px;background:linear-gradient(135deg,var(--tgs-bp-teal),#52cbc3);color:#fff;font-size:18px;font-weight:900}.tgs-bp-card.dislikes .tgs-bp-cardhead>span,.tgs-bp-card.brands .tgs-bp-cardhead>span{background:linear-gradient(135deg,var(--tgs-bp-orange),#f3bd79)}.tgs-bp-card h3{margin:0 0 2px!important;color:var(--tgs-bp-ink)!important;font-size:17px!important;line-height:1.2!important}.tgs-bp-cardhead p{margin:0!important;color:#7a8589!important;font-size:12.5px!important;line-height:1.35!important}.tgs-bp-pills{display:flex;flex-wrap:wrap;gap:7px}.tgs-bp-pills span{display:inline-flex;max-width:100%;padding:7px 10px;border:1px solid #eddfc9;border-radius:999px;background:var(--tgs-bp-tan);color:#654f31;font-size:12.5px;font-weight:750;line-height:1.2;overflow-wrap:anywhere}.tgs-bp-empty{margin:4px 0 0!important;color:#8b9497!important;font-size:13px!important;font-style:italic!important}
.tgs-bp-editor{margin-top:16px;border:1px solid var(--tgs-bp-line);border-radius:20px;background:#fff;overflow:hidden}.tgs-bp-editor>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px;cursor:pointer;background:linear-gradient(135deg,#fff,#fff8ec);user-select:none}.tgs-bp-editor>summary::-webkit-details-marker{display:none}.tgs-bp-editor>summary>div{display:flex;align-items:center;gap:11px}.tgs-bp-edit-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:12px;background:#eaf8f6;color:#147b75;font-weight:900}.tgs-bp-editor summary strong{display:block;color:var(--tgs-bp-ink);font-size:16px}.tgs-bp-editor summary small{display:block;margin-top:2px;color:#788589;font-size:12px;line-height:1.35}.tgs-bp-chevron{color:#9a7a4f;font-size:22px;transition:transform .18s ease}.tgs-bp-editor[open] .tgs-bp-chevron{transform:rotate(180deg)}.tgs-bp-editor-body{padding:18px;border-top:1px solid #f0e8db;background:#fff}.tgs-bp-formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tgs-bp-field{display:block;padding:15px;border:1px solid #e9dfd1;border-radius:16px;background:var(--tgs-bp-cream)}.tgs-bp-field-title{display:block;margin-bottom:3px;color:var(--tgs-bp-ink);font-size:14px;font-weight:850}.tgs-bp-field-help{display:block;margin-bottom:9px;color:#7a8689;font-size:11.5px;line-height:1.35}.tgs-bp-field textarea{display:block;width:100%!important;max-width:100%!important;min-height:104px!important;margin:0!important;padding:12px 13px!important;border:1px solid #d9d5cd!important;border-radius:13px!important;background:#fff!important;color:#2b3b41!important;font-family:inherit!important;font-size:13.5px!important;line-height:1.45!important;resize:vertical!important;box-shadow:none!important}.tgs-bp-field textarea:focus{outline:none!important;border-color:var(--tgs-bp-teal)!important;box-shadow:0 0 0 3px rgba(25,184,178,.12)!important}.tgs-bp-save{display:flex;justify-content:flex-end;margin-top:14px}.tgs-bp-footnote{margin-top:13px;padding:10px 12px;border-radius:12px;background:#faf7f0;color:#7b817e;font-size:11.5px;text-align:center}
#tgsapp-gift-shortlist,.yz-profile-navmenu #tgsapp-gift-shortlist,.youzify-profile-navmenu #tgsapp-gift-shortlist{display:inline-flex!important;visibility:visible!important;opacity:1!important;order:8!important}.yz-profile-navmenu #tgsapp-gift-shortlist a,.youzify-profile-navmenu #tgsapp-gift-shortlist a,#buddypress #tgsapp-gift-shortlist a{color:#2e555c!important;font-weight:800!important}.yz-profile-navmenu #tgsapp-gift-shortlist.current a,.yz-profile-navmenu #tgsapp-gift-shortlist a:hover,.youzify-profile-navmenu #tgsapp-gift-shortlist.current a,.youzify-profile-navmenu #tgsapp-gift-shortlist a:hover,#buddypress #tgsapp-gift-shortlist.current a{color:var(--tgs-bp-teal,#19b8b2)!important}.yz-profile-navmenu #tgsapp-gift-shortlist.current a:before,.youzify-profile-navmenu #tgsapp-gift-shortlist.current a:before{background:var(--tgs-bp-teal,#19b8b2)!important}
body.buddypress .tgs-bp-native,body.youzify .tgs-bp-native{font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}body.buddypress .tgs-bp-native h2,body.buddypress .tgs-bp-native h3,body.youzify .tgs-bp-native h2,body.youzify .tgs-bp-native h3{font-family:inherit!important;text-transform:none!important;letter-spacing:normal!important}
@media(max-width:900px){.tgs-bp-summary{grid-template-columns:1fr}.tgs-bp-score{max-width:260px}.tgs-bp-shell{padding:18px}}
@media(max-width:720px){.tgs-bp-native{margin-top:14px!important}.tgs-bp-shell{padding:14px;border-radius:18px}.tgs-bp-summary{padding:17px;border-radius:16px}.tgs-bp-summary h2{font-size:24px!important}.tgs-bp-grid,.tgs-bp-formgrid{grid-template-columns:1fr}.tgs-bp-actions{display:grid;grid-template-columns:1fr 1fr}.tgs-bp-card{min-height:0}.tgs-bp-editor>summary{padding:15px}.tgs-bp-editor-body{padding:14px}.tgs-bp-save .tgs-bp-btn{width:100%}}
@media(max-width:460px){.tgs-bp-actions{grid-template-columns:1fr}.tgs-bp-summary{gap:14px}.tgs-bp-score{max-width:none}.tgs-bp-card,.tgs-bp-field{padding:14px}.tgs-bp-editor summary small{display:none}}


/* v1.0.17 cohesive BuddyPress / Youzify profile shell */
.tgs-hide-info-nav{display:none!important}

/* Keep the native Youzify structure, but bring the surrounding profile chrome into TGS. */
body.buddypress .yz-profile-navmenu,
body.buddypress .youzify-profile-navmenu,
body.youzify .yz-profile-navmenu,
body.youzify .youzify-profile-navmenu{
  border-color:#eadfce!important;
  background:#fffdf9!important;
  box-shadow:0 5px 18px rgba(50,54,52,.045)!important;
}
body.buddypress .yz-profile-navmenu a,
body.buddypress .youzify-profile-navmenu a,
body.youzify .yz-profile-navmenu a,
body.youzify .youzify-profile-navmenu a{
  color:#52656a!important;
  font-weight:750!important;
}
body.buddypress .yz-profile-navmenu .current>a,
body.buddypress .youzify-profile-navmenu .current>a,
body.youzify .yz-profile-navmenu .current>a,
body.youzify .youzify-profile-navmenu .current>a{
  color:var(--tgs-bp-teal,#19b8b2)!important;
}

/* Sidebar cards: About Me, Media and Recent Posts should look like siblings of the TGS cards. */
body.buddypress .tgs-profile-widget,
body.youzify .tgs-profile-widget{
  overflow:hidden!important;
  border:1px solid #eadfce!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fffdf9 0%,#fff 100%)!important;
  box-shadow:0 8px 24px rgba(50,54,52,.07)!important;
}
body.buddypress .tgs-profile-widget .yz-widget-head,
body.buddypress .tgs-profile-widget .youzify-widget-head,
body.buddypress .tgs-profile-widget .widget-title,
body.youzify .tgs-profile-widget .yz-widget-head,
body.youzify .tgs-profile-widget .youzify-widget-head,
body.youzify .tgs-profile-widget .widget-title{
  border-bottom:1px solid #efe4d3!important;
  background:linear-gradient(135deg,#effaf8 0%,#fff8ec 100%)!important;
  color:#34434a!important;
}
body.buddypress .tgs-profile-widget h3,
body.buddypress .tgs-profile-widget h4,
body.youzify .tgs-profile-widget h3,
body.youzify .tgs-profile-widget h4{
  color:#34434a!important;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body.buddypress .tgs-profile-widget a,
body.youzify .tgs-profile-widget a{color:#167f79!important}
body.buddypress .tgs-profile-widget a:hover,
body.youzify .tgs-profile-widget a:hover{color:#b86e18!important}
body.buddypress .tgs-profile-widget .yz-widget-content,
body.buddypress .tgs-profile-widget .youzify-widget-content,
body.youzify .tgs-profile-widget .yz-widget-content,
body.youzify .tgs-profile-widget .youzify-widget-content{
  background:#fffdf9!important;
}
body.buddypress .tgs-profile-widget img,
body.youzify .tgs-profile-widget img{border-radius:14px!important}

/* About Me gets the warm profile treatment instead of a generic gray widget. */
body.buddypress .tgs-profile-widget-about,
body.youzify .tgs-profile-widget-about{background:linear-gradient(145deg,#fff,#effaf8)!important}
body.buddypress .tgs-profile-widget-about .yz-widget-head,
body.buddypress .tgs-profile-widget-about .youzify-widget-head,
body.youzify .tgs-profile-widget-about .yz-widget-head,
body.youzify .tgs-profile-widget-about .youzify-widget-head{border-top:4px solid var(--tgs-bp-teal,#19b8b2)!important}

/* Media keeps its tabs/buttons, but makes them part of the TGS palette. */
body.buddypress .tgs-profile-widget-media .yz-media-filter a,
body.buddypress .tgs-profile-widget-media .youzify-media-filter a,
body.buddypress .tgs-profile-widget-media .yz-media-nav a,
body.youzify .tgs-profile-widget-media .yz-media-filter a,
body.youzify .tgs-profile-widget-media .youzify-media-filter a,
body.youzify .tgs-profile-widget-media .yz-media-nav a{
  border-radius:10px!important;
  color:#52656a!important;
}
body.buddypress .tgs-profile-widget-media .active>a,
body.buddypress .tgs-profile-widget-media a.active,
body.youzify .tgs-profile-widget-media .active>a,
body.youzify .tgs-profile-widget-media a.active{
  background:var(--tgs-bp-teal,#19b8b2)!important;
  color:#fff!important;
}

/* Recent post rows lose the stock-widget look and read more like compact TGS cards. */
body.buddypress .tgs-profile-widget-posts li,
body.youzify .tgs-profile-widget-posts li{
  margin:0!important;
  padding:12px!important;
  border-bottom:1px solid #f0e7da!important;
  background:#fffdf9!important;
}
body.buddypress .tgs-profile-widget-posts li:last-child,
body.youzify .tgs-profile-widget-posts li:last-child{border-bottom:0!important}
body.buddypress .tgs-profile-widget-posts li:hover,
body.youzify .tgs-profile-widget-posts li:hover{background:#f4fbf9!important}

/* Give generic sidebar widget shells the same spacing rhythm even when Youzify uses alternate class names. */
body.buddypress :is(.yz-sidebar,.youzify-sidebar,.yz-right-sidebar,.youzify-right-sidebar) :is(.yz-widget,.youzify-widget,.widget),
body.youzify :is(.yz-sidebar,.youzify-sidebar,.yz-right-sidebar,.youzify-right-sidebar) :is(.yz-widget,.youzify-widget,.widget){
  margin-bottom:18px!important;
}

@media(max-width:720px){
  body.buddypress .tgs-profile-widget,
  body.youzify .tgs-profile-widget{border-radius:17px!important}
}

/* v1.0.18 full BuddyPress / Youzify cohesion + real Overview */
body.tgs-profile-themed{--tgs-bp-teal:var(--tgs-primary,#19b8b2);--tgs-bp-orange:var(--tgs-gold,#e7a24a);--tgs-bp-tan:#fbf4e8;--tgs-bp-cream:#fffaf2;--tgs-bp-ink:#24343a;--tgs-bp-muted:#69777c;--tgs-bp-line:#eadfce}

/* Treat the whole profile area as one design system, not isolated patches. */
body.tgs-profile-themed :is(.yz-content,.youzify-content,.yz-profile-content,.youzify-profile-content,.yz-main-column,.youzify-main-content,#buddypress #item-body){font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tgs-bp-ink)}
body.tgs-profile-themed :is(.yz-white-bg,.youzify-white-bg,.yz-boxed-navbar,.youzify-boxed-navbar,.yz-settings-content,.youzify-settings-content,.yz-account-content,.youzify-account-content,.bp-profile-content,.bp-settings-container){border-color:var(--tgs-bp-line)!important;border-radius:20px!important;background:#fffdf9!important;box-shadow:0 8px 24px rgba(50,54,52,.06)!important}
body.tgs-profile-themed :is(h1,h2,h3,h4,h5){font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-transform:none!important;letter-spacing:normal!important}

/* Profile and settings editors */
body.tgs-profile-themed :is(.yz-profile-settings,.youzify-profile-settings,.yz-account-settings,.youzify-account-settings,#buddypress .profile.edit,#buddypress .settings,#buddypress .standard-form){color:var(--tgs-bp-ink)!important}
body.tgs-profile-themed :is(.yz-profile-settings,.youzify-profile-settings,.yz-account-settings,.youzify-account-settings,#buddypress .profile.edit,#buddypress .settings,#buddypress .standard-form) :is(.editfield,.field-visibility-settings,.yz-settings-section,.youzify-settings-section,fieldset){margin-bottom:16px!important;padding:16px!important;border:1px solid var(--tgs-bp-line)!important;border-radius:18px!important;background:linear-gradient(180deg,#fffdf9,#fff)!important;box-shadow:none!important}
body.tgs-profile-themed :is(.yz-profile-settings,.youzify-profile-settings,.yz-account-settings,.youzify-account-settings,#buddypress .profile.edit,#buddypress .settings,#buddypress .standard-form) label{display:block!important;margin:0 0 7px!important;color:#33474d!important;font-size:13px!important;font-weight:800!important;line-height:1.3!important;text-transform:none!important}
body.tgs-profile-themed :is(.yz-profile-settings,.youzify-profile-settings,.yz-account-settings,.youzify-account-settings,#buddypress .profile.edit,#buddypress .settings,#buddypress .standard-form) :is(input[type=text],input[type=email],input[type=password],input[type=url],input[type=number],input[type=date],select,textarea){width:100%!important;max-width:100%!important;padding:12px 13px!important;border:1px solid #d9d5cd!important;border-radius:13px!important;background:#fff!important;color:#26393f!important;font-family:inherit!important;font-size:14px!important;line-height:1.45!important;box-shadow:none!important;outline:none!important}
body.tgs-profile-themed :is(.yz-profile-settings,.youzify-profile-settings,.yz-account-settings,.youzify-account-settings,#buddypress .profile.edit,#buddypress .settings,#buddypress .standard-form) :is(input,select,textarea):focus{border-color:var(--tgs-bp-teal)!important;box-shadow:0 0 0 3px rgba(25,184,178,.12)!important}
body.tgs-profile-themed :is(.yz-profile-settings,.youzify-profile-settings,.yz-account-settings,.youzify-account-settings,#buddypress .profile.edit,#buddypress .settings,#buddypress .standard-form) :is(.field-visibility-settings-toggle,.description,.field-visibility-settings-notoggle,p.description){color:#77868a!important;font-size:12px!important;line-height:1.45!important}
/* 1.4.105: never restyle BuddyPress/Youzify activity-stream controls (Like, Comment, Share, Load more, post form). */
body.tgs-profile-themed :is(button,input[type=submit],.button,.generic-button a,.yz-save-options,.youzify-save-options):not(:where(#activity-stream,.activity-list,.activity-meta,.activity-comments,.ac-form,.load-more,#activity-loop-form,#whats-new-form,#youzify-wall-form,.youzify-wall-form,.youzify-wall-actions,.youzify-item-tools,.youzify-activity-tools,.tgs-engage,.tgs-engage-poll-create,.tgs-engage-saved-link,.tgs-engage-panel,.tgs-social-compose-card) *){border:0!important;border-radius:12px!important;background:var(--tgs-bp-orange)!important;color:#fff!important;font-family:inherit!important;font-weight:800!important;box-shadow:none!important;text-transform:none!important}
body.tgs-profile-themed :is(button,input[type=submit],.button,.generic-button a,.yz-save-options,.youzify-save-options):not(:where(#activity-stream,.activity-list,.activity-meta,.activity-comments,.ac-form,.load-more,#activity-loop-form,#whats-new-form,#youzify-wall-form,.youzify-wall-form,.youzify-wall-actions,.youzify-item-tools,.youzify-activity-tools,.tgs-engage,.tgs-engage-poll-create,.tgs-engage-saved-link,.tgs-engage-panel,.tgs-social-compose-card) *):hover{filter:brightness(.96)!important;transform:none!important}
body.tgs-profile-themed :is(.yz-settings-sidebar,.youzify-settings-sidebar,.bp-profile-nav){border-radius:18px!important;overflow:hidden!important;border:1px solid var(--tgs-bp-line)!important;background:#fffdf9!important}
body.tgs-profile-themed :is(.yz-settings-sidebar,.youzify-settings-sidebar,.bp-profile-nav) a{color:#52656a!important;font-weight:750!important}
body.tgs-profile-themed :is(.yz-settings-sidebar,.youzify-settings-sidebar,.bp-profile-nav) .active>a,
body.tgs-profile-themed :is(.yz-settings-sidebar,.youzify-settings-sidebar,.bp-profile-nav) .current>a{background:#edf9f7!important;color:#157b75!important}

/* A genuine overview of the person */
.tgs-overview{width:100%;max-width:100%;margin:0 0 26px;display:grid;gap:18px;color:var(--tgs-bp-ink);font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tgs-overview *{box-sizing:border-box;min-width:0}
.tgs-overview-hero{overflow:hidden;border:1px solid var(--tgs-bp-line);border-radius:24px;background:#fff;box-shadow:0 10px 28px rgba(50,54,52,.07)}
.tgs-overview-cover{height:122px;background:linear-gradient(135deg,#147b75,#32bdb5 58%,#e7a24a);background-size:cover;background-position:center}
.tgs-overview-person{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:0 20px 20px}
.tgs-overview-avatar{width:104px!important;height:104px!important;margin-top:-38px;border:5px solid #fff!important;border-radius:24px!important;object-fit:cover!important;box-shadow:0 8px 22px rgba(29,60,64,.18)!important;background:#fff}
.tgs-overview-id{padding-top:14px}.tgs-overview-id h2{margin:2px 0 6px!important;color:#24343a!important;font-size:27px!important;line-height:1.1!important}.tgs-overview-id p{margin:0!important;max-width:720px;color:#607176!important;font-size:13.5px!important;line-height:1.55!important}.tgs-overview-muted{font-style:italic;color:#8a9598!important}.tgs-overview-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.tgs-overview-meta span{display:inline-flex;padding:6px 9px;border-radius:999px;background:#fbf4e8;color:#695638;font-size:11.5px;font-weight:750}
.tgs-overview-know{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(150px,190px);align-items:center;gap:15px;padding:18px;border:1px solid #cfe9e5;border-radius:20px;background:linear-gradient(135deg,#edf9f7 0%,#fffdf9 72%);box-shadow:0 7px 22px rgba(50,54,52,.05)}
.tgs-overview-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--tgs-bp-teal);color:#fff;font-size:22px;font-weight:900}.tgs-overview-know h3{margin:2px 0 5px!important;color:#24343a!important;font-size:18px!important}.tgs-overview-know p{margin:0!important;color:#5d7075!important;font-size:13.5px!important;line-height:1.55!important}.tgs-bp-score.compact{padding:12px 14px;border-radius:16px}.tgs-bp-score.compact strong{font-size:24px!important}
.tgs-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tgs-overview-grid .tgs-bp-card{margin:0!important;min-height:150px}
.tgs-overview-section{padding:18px;border:1px solid var(--tgs-bp-line);border-radius:20px;background:#fffdf9;box-shadow:0 7px 22px rgba(50,54,52,.05)}
.tgs-overview-sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.tgs-overview-sectionhead h3{margin:2px 0 0!important;color:#24343a!important;font-size:18px!important}.tgs-overview-sectionhead>a{color:#157b75!important;font-size:12px;font-weight:800;text-decoration:none!important}
.tgs-overview-photos{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.tgs-overview-photos a{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:13px;background:#edf3f2}.tgs-overview-photos img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important}
.tgs-overview-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tgs-overview-posts,.tgs-overview-faves{display:grid;gap:8px}.tgs-overview-posts>a,.tgs-overview-faves>a{display:flex;gap:10px;padding:11px;border:1px solid #eee3d4;border-radius:14px;background:#fff;color:#33464b!important;text-decoration:none!important}.tgs-overview-posts>a{display:grid}.tgs-overview-posts strong,.tgs-overview-faves strong{font-size:13px;line-height:1.35}.tgs-overview-posts span,.tgs-overview-faves small{color:#778589;font-size:11.5px;line-height:1.4}.tgs-overview-fave-img{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;overflow:hidden;border-radius:11px;background:#fff3df;color:#d37f1b;font-size:20px}.tgs-overview-fave-img img{width:100%!important;height:100%!important;object-fit:cover!important}

/* Profile shell / nav should feel like the same site on every profile subpage. */
body.tgs-profile-themed :is(.yz-profile-navmenu,.youzify-profile-navmenu){border-radius:0 0 18px 18px!important}
body.tgs-profile-themed :is(.yz-profile-navmenu,.youzify-profile-navmenu) li a{transition:color .15s ease,background .15s ease!important}
body.tgs-profile-themed :is(.yz-profile-navmenu,.youzify-profile-navmenu) li a:hover{background:#f3faf8!important;color:#157b75!important}
body.tgs-profile-themed :is(.yz-profile-navmenu,.youzify-profile-navmenu) :is(.current,.yz-active-menu,.youzify-active-menu)>a{color:#157b75!important}

@media(max-width:900px){.tgs-overview-person{grid-template-columns:auto minmax(0,1fr)}.tgs-overview-person>.tgs-bp-btn{grid-column:1/-1;justify-self:start}.tgs-overview-know{grid-template-columns:auto minmax(0,1fr)}.tgs-overview-know .tgs-bp-score{grid-column:1/-1;width:100%;max-width:260px}.tgs-overview-photos{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.tgs-overview{gap:13px}.tgs-overview-hero,.tgs-overview-know,.tgs-overview-section{border-radius:17px}.tgs-overview-cover{height:96px}.tgs-overview-person{grid-template-columns:1fr;padding:0 14px 15px}.tgs-overview-avatar{width:86px!important;height:86px!important;margin-top:-32px}.tgs-overview-id{padding-top:0}.tgs-overview-id h2{font-size:23px!important}.tgs-overview-know{grid-template-columns:1fr;padding:15px}.tgs-overview-icon{width:42px;height:42px}.tgs-overview-know .tgs-bp-score{grid-column:auto;max-width:none}.tgs-overview-grid,.tgs-overview-bottom{grid-template-columns:1fr}.tgs-overview-photos{grid-template-columns:repeat(3,minmax(0,1fr))}body.tgs-profile-themed :is(.yz-profile-settings,.youzify-profile-settings,.yz-account-settings,.youzify-account-settings,#buddypress .profile.edit,#buddypress .settings,#buddypress .standard-form) :is(.editfield,.field-visibility-settings,.yz-settings-section,.youzify-settings-section,fieldset){padding:13px!important;border-radius:15px!important}}

/* v1.0.20 overview correction: two-column profile layout overall.
   TGS overview stays in Youzify's main column; native About Me / Media / Recent Posts stay in the native right sidebar. */
body.tgs-profile-themed [data-tgs-overview-mounted="1"]{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
body.tgs-profile-themed .tgs-overview-left{width:100%!important;max-width:100%!important;min-width:0!important}
.tgs-overview-topgrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(180px,.7fr);gap:14px;align-items:stretch}
.tgs-overview-topgrid .tgs-overview-know{grid-template-columns:auto minmax(0,1fr);height:100%}
.tgs-overview-confidence{display:flex;flex-direction:column;justify-content:center;padding:18px;border:1px solid #eadbc6;border-radius:20px;background:linear-gradient(180deg,#fff8ec,#fffdf9);box-shadow:0 7px 22px rgba(50,54,52,.05)}
.tgs-overview-confidence .tgs-bp-score{margin-top:8px;width:100%;background:#fff!important}
.tgs-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.tgs-overview-grid .tgs-bp-card{min-height:0!important;height:auto!important}
.tgs-overview-saved{margin-top:0}
.tgs-overview-faves{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tgs-overview-faves>a{min-width:0;align-items:center}

/* Prevent the overview from ever turning into the narrow third column seen in v1.0.19. */
body.tgs-profile-themed :is(.yz-main-column,.youzify-main-content,.youzify-page-main-content,.yz-page-main-content){min-width:0!important}
body.tgs-profile-themed :is(.yz-sidebar,.youzify-sidebar,.yz-right-sidebar,.youzify-right-sidebar){min-width:220px}

@media(max-width:1000px){
  .tgs-overview-topgrid{grid-template-columns:1fr}
  .tgs-overview-faves{grid-template-columns:1fr}
}
@media(max-width:720px){
  .tgs-overview-grid{grid-template-columns:1fr!important}
  body.tgs-profile-themed :is(.yz-sidebar,.youzify-sidebar,.yz-right-sidebar,.youzify-right-sidebar){min-width:0}
}

/* v1.0.21 Overview layout target from approved mockup.
   This changes the Overview only. The profile editor styling from v1.0.20 is intentionally untouched. */
.tgs-overview-upper{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,.95fr) minmax(165px,.62fr);
  gap:14px;
  align-items:stretch;
}
.tgs-overview-upper>section{margin:0!important;min-width:0;height:100%}

/* Compact profile card: cover + real BP/Youzify avatar + short bio, matching the user's target layout. */
.tgs-overview-upper .tgs-overview-hero{display:flex;flex-direction:column;min-height:245px}
.tgs-overview-upper .tgs-overview-cover{height:86px;flex:0 0 86px}
.tgs-overview-upper .tgs-overview-person{
  grid-template-columns:70px minmax(0,1fr);
  align-items:start;
  gap:11px;
  padding:0 14px 14px;
  flex:1;
}
.tgs-overview-upper .tgs-overview-avatar{
  width:70px!important;height:70px!important;
  margin-top:-25px!important;
  border-width:4px!important;
  border-radius:20px!important;
}
.tgs-overview-upper .tgs-overview-id{padding-top:10px!important}
.tgs-overview-upper .tgs-overview-id h2{font-size:21px!important;margin:1px 0 4px!important}
.tgs-overview-upper .tgs-overview-id p{font-size:12.5px!important;line-height:1.45!important}
.tgs-overview-upper .tgs-overview-meta{margin-top:7px!important;gap:5px!important}
.tgs-overview-upper .tgs-overview-meta span{padding:4px 7px!important;font-size:10.5px!important}
.tgs-overview-upper .tgs-overview-person>.tgs-bp-btn{
  grid-column:1/-1;
  justify-self:start;
  margin-top:1px;
  padding:8px 11px!important;
  font-size:11.5px!important;
}

/* What TGS Knows and confidence are siblings of the profile card, not narrow vertical strips. */
.tgs-overview-upper .tgs-overview-know{
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:10px;
  padding:16px!important;
  min-height:245px;
}
.tgs-overview-upper .tgs-overview-icon{width:40px;height:40px;border-radius:13px;font-size:18px}
.tgs-overview-upper .tgs-overview-know h3{font-size:16px!important;line-height:1.25!important}
.tgs-overview-upper .tgs-overview-know p{font-size:12.5px!important;line-height:1.5!important}
.tgs-overview-upper .tgs-overview-confidence{
  min-height:245px;
  align-items:stretch;
  justify-content:center;
  padding:16px!important;
}
.tgs-overview-upper .tgs-overview-confidence .tgs-bp-score{margin-top:10px!important}

/* The four preference cards are a true 2x2 grid, followed by saved gifts full-width. */
.tgs-overview-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.tgs-overview-grid .tgs-bp-card{min-height:145px!important;height:auto!important;width:auto!important}
.tgs-overview-saved{grid-column:1/-1;width:100%}

/* Keep Youzify's native right rail as the second page column. TGS doesn't duplicate those widgets. */
body.tgs-profile-themed :is(.yz-main-column,.youzify-main-content,.youzify-page-main-content,.yz-page-main-content){min-width:0!important}
body.tgs-profile-themed :is(.yz-sidebar,.youzify-sidebar,.yz-right-sidebar,.youzify-right-sidebar){min-width:220px}

@media(max-width:1050px){
  .tgs-overview-upper{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
  .tgs-overview-upper .tgs-overview-confidence{grid-column:1/-1;min-height:0}
}
@media(max-width:760px){
  .tgs-overview-upper,.tgs-overview-grid{grid-template-columns:1fr!important}
  .tgs-overview-upper .tgs-overview-confidence{grid-column:auto}
  .tgs-overview-upper .tgs-overview-hero,
  .tgs-overview-upper .tgs-overview-know,
  .tgs-overview-upper .tgs-overview-confidence{min-height:0}
}
\n\n/* v1.0.22: mount Overview as the real left page column beside Youzify's native sidebar. */
body.tgs-profile-themed .tgs-overview-layout-host{
  display:grid!important;
  grid-template-columns:minmax(0,2.25fr) minmax(245px,.78fr)!important;
  gap:22px!important;
  align-items:start!important;
  width:100%!important;
  max-width:1180px!important;
  margin:0 auto!important;
}
body.tgs-profile-themed .tgs-overview-layout-host>.tgs-overview-mounted-main{
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  display:block!important;
}
body.tgs-profile-themed .tgs-overview-layout-host>.tgs-overview-native-sidebar{
  grid-column:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  float:none!important;
}
/* On Overview only, suppress the old empty/native main column that caused a third skinny column. */
body.tgs-profile-themed .tgs-overview-layout-host>.tgs-overview-native-main{
  display:none!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper{
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(150px,.62fr)!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(max-width:980px){
  body.tgs-profile-themed .tgs-overview-layout-host{grid-template-columns:1fr!important;max-width:760px!important}
  body.tgs-profile-themed .tgs-overview-layout-host>.tgs-overview-native-sidebar{grid-column:1!important}
}
@media(max-width:760px){
  body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper,
  body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-grid{grid-template-columns:1fr!important}
}


/* v1.0.23: compact Overview left rail. Two wide columns on the left, native Youzify sidebar untouched on the right. */
body.tgs-profile-themed .tgs-overview-layout-host{
  grid-template-columns:minmax(0,2.45fr) minmax(250px,.8fr)!important;
  gap:20px!important;
  max-width:1180px!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main{min-width:0!important;width:100%!important}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview{gap:14px!important}

/* Top row is only two cards: compact profile + combined TGS Snapshot/Confidence. */
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper{
  display:grid!important;
  grid-template-columns:minmax(240px,.82fr) minmax(0,1.45fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper>.tgs-overview-hero{
  min-height:0!important;
  height:auto!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper .tgs-overview-cover{
  height:78px!important;
  flex-basis:78px!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper .tgs-overview-person{
  grid-template-columns:66px minmax(0,1fr)!important;
  gap:10px!important;
  padding:0 13px 13px!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper .tgs-overview-avatar{
  width:66px!important;height:66px!important;margin-top:-23px!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper .tgs-overview-id{padding-top:9px!important}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper .tgs-overview-id h2{font-size:20px!important;margin-bottom:4px!important}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper .tgs-overview-person>.tgs-bp-btn{
  grid-column:1/-1!important;margin-top:0!important;padding:7px 10px!important;
}

.tgs-overview-insight{
  display:grid!important;
  grid-template-columns:minmax(0,1.75fr) minmax(145px,.72fr)!important;
  gap:14px!important;
  align-items:stretch!important;
  padding:16px!important;
  border:1px solid #cfe9e5!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#edf9f7 0%,#fffdf9 72%)!important;
  box-shadow:0 7px 22px rgba(50,54,52,.05)!important;
  min-height:0!important;
}
.tgs-overview-insight-copy{display:grid;grid-template-columns:40px minmax(0,1fr);gap:11px;align-items:start;min-width:0}
.tgs-overview-insight-copy .tgs-overview-icon{width:40px;height:40px;border-radius:13px;font-size:18px}
.tgs-overview-insight-copy h3{margin:2px 0 5px!important;font-size:17px!important;line-height:1.2!important;color:#24343a!important}
.tgs-overview-insight-copy p{margin:0!important;font-size:12.5px!important;line-height:1.45!important;color:#5d7075!important}
.tgs-overview-insight-score{display:flex;flex-direction:column;justify-content:center;min-width:0}
.tgs-overview-insight-score .tgs-bp-score{margin-top:7px!important;width:100%!important;padding:11px 12px!important;background:#fff!important}
.tgs-overview-insight-score .tgs-bp-score strong{font-size:23px!important}

/* Exactly two columns for the remaining left-side cards. Third row is Preferences | Recently Saved. */
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-grid>.tgs-bp-card,
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-grid>.tgs-overview-section{
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:15px!important;
  border-radius:18px!important;
}
.tgs-overview-preference-groups{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.tgs-overview-preference-groups>div{min-width:0;padding:10px;border-radius:13px;background:rgba(255,255,255,.72);border:1px solid rgba(234,223,206,.85)}
.tgs-overview-preference-groups strong{display:block;margin-bottom:7px;color:#56686d;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-saved{grid-column:auto!important}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-faves{grid-template-columns:1fr!important}
body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-faves>a{padding:9px!important}

@media(max-width:1020px){
  body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-upper{grid-template-columns:1fr!important}
  .tgs-overview-insight{grid-template-columns:minmax(0,1fr) minmax(145px,.55fr)!important}
}
@media(max-width:820px){
  body.tgs-profile-themed .tgs-overview-layout-host{grid-template-columns:1fr!important;max-width:760px!important}
  body.tgs-profile-themed .tgs-overview-layout-host>.tgs-overview-native-sidebar{grid-column:1!important}
}
@media(max-width:680px){
  body.tgs-profile-themed .tgs-overview-mounted-main .tgs-overview-grid{grid-template-columns:1fr!important}
  .tgs-overview-insight{grid-template-columns:1fr!important}
  .tgs-overview-preference-groups{grid-template-columns:1fr!important}
}

/* v1.0.24 — Overview uses Youzify's own left/right page columns.
   TGS replaces only the native left Overview content; the right sidebar is untouched. */
body.tgs-profile-themed .tgs-overview-native-main-host{
  display:block!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
}
body.tgs-profile-themed .tgs-overview-native-main-host>.tgs-overview-native-content-hidden{
  display:none!important;
}
body.tgs-profile-themed .tgs-overview-native-main-host>.tgs-overview-mounted-main{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
}
body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
}
/* Ignore the old synthetic page-grid rules entirely on the new mount path. */
body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-upper{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  align-items:stretch!important;
}
body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-upper>*{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
}
body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-grid>*{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
/* Keep content broad and readable rather than allowing narrow inherited widths. */
body.tgs-profile-themed .tgs-overview-native-main-host :is(.tgs-overview-hero,.tgs-overview-insight,.tgs-bp-card,.tgs-overview-section){
  box-sizing:border-box!important;
  overflow-wrap:anywhere;
}
body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-insight{
  grid-template-columns:minmax(0,1.6fr) minmax(132px,.62fr)!important;
}
body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-preference-groups{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(max-width:760px){
  body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-upper,
  body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-grid,
  body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-insight,
  body.tgs-profile-themed .tgs-overview-native-main-host .tgs-overview-preference-groups{
    grid-template-columns:1fr!important;
  }
}

/* v1.0.27 profile cohesion: app-style signals, compact overview, editable details + people. */
.tgs-bp-signal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tgs-bp-signal{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 10px;border-radius:13px;background:#fff;border:1px solid #e7efec;color:#35474a;font-size:12.5px;font-weight:700;line-height:1.25}
.tgs-bp-signal>span:last-child{min-width:0;overflow-wrap:anywhere}
.tgs-bp-signal-icon{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border-radius:50%;font-weight:900;font-size:13px;background:#e9f8f5;color:#16847d;border:1px solid #ccebe6}
.tgs-bp-signal.avoid{border-color:#f0ddc8;background:#fffdf9}.tgs-bp-signal.avoid .tgs-bp-signal-icon{background:#fff0df;color:#b76e22;border-color:#f2d6b6}
.tgs-bp-simple-tags{display:flex;flex-wrap:wrap;gap:6px 10px}.tgs-bp-simple-tags span{display:inline-flex;align-items:center;padding:3px 0;color:#41575b;font-size:12.5px;font-weight:700;border-bottom:1px solid #cfe4df;background:transparent!important;border-radius:0!important}
.tgs-overview-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.tgs-overview-links a{font-size:10.5px;font-weight:800;color:#157b75;text-decoration:none;border-bottom:1px solid rgba(21,123,117,.25)}
.tgs-overview-insight-copy p{max-width:58ch}
.tgs-bp-editor-stack{display:grid;gap:12px;margin-top:18px}.tgs-bp-editor-stack .tgs-bp-editor{margin:0!important}
.tgs-bp-field input[type="text"],.tgs-bp-person-row input{width:100%;box-sizing:border-box;border:1px solid #d9e4e0!important;border-radius:14px!important;background:#fff!important;padding:12px 13px!important;color:#273b3e!important;font:inherit!important;box-shadow:none!important}
.tgs-bp-people-list{display:grid;gap:9px;margin-bottom:14px}.tgs-bp-person-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) auto;gap:8px;align-items:center;padding:9px;border-radius:15px;background:#fbfaf5;border:1px solid #ebe3d5}.tgs-bp-person-row .tgs-bp-btn{white-space:nowrap}
.tgs-bp-add-person{padding-top:12px;border-top:1px solid #ece5d8}
@media(max-width:720px){.tgs-bp-signal-grid{grid-template-columns:1fr}.tgs-bp-person-row{grid-template-columns:1fr}.tgs-bp-person-row .tgs-bp-btn{width:100%}}

/* v1.0.28 — one cohesive BuddyPress / Youzify + TGS profile system */
.tgs-overview-links{display:flex!important;flex-wrap:wrap!important;gap:9px!important;margin-top:9px!important}
.tgs-overview-links a{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:6px 9px!important;border:1px solid #cfe7e3!important;border-radius:11px!important;background:#f2fbf9!important;color:#126f6a!important;font-size:12px!important;font-weight:800!important;line-height:1!important;text-decoration:none!important}
.tgs-overview-links a svg{width:19px!important;height:19px!important;flex:0 0 19px!important}
.tgs-overview-links a:hover{background:#e4f6f2!important;color:#0f615d!important}

.tgs-settings-icon{display:inline-grid!important;place-items:center!important;width:28px!important;height:28px!important;margin-right:9px!important;border-radius:9px!important;background:#eef9f7!important;color:#147b75!important;font-size:15px!important;line-height:1!important;vertical-align:middle!important}

.tgs-native-profile-tools{margin:18px 0 4px;padding:18px;border:1px solid #dfe9e5;border-radius:20px;background:linear-gradient(180deg,#fffdf9,#f8fcfb);box-shadow:0 8px 24px rgba(50,54,52,.055);font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tgs-native-tools-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:13px;padding:4px 2px 10px}
.tgs-native-tools-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:#dff5f2;font-size:20px}
.tgs-native-tools-head h3{margin:0!important;color:#24343a!important;font-size:18px!important;font-weight:850!important}
.tgs-native-tools-head p{margin:4px 0 0!important;color:#6f7f83!important;font-size:12.5px!important;line-height:1.45!important}
.tgs-native-tool-card{margin-top:10px!important;overflow:hidden;border:1px solid #dce9e5!important;border-radius:16px!important;background:#fff!important}
.tgs-native-tool-card>summary{display:flex!important;align-items:center!important;gap:11px!important;padding:14px 15px!important;cursor:pointer!important;list-style:none!important;background:#f4fbf9!important}
.tgs-native-tool-card>summary::-webkit-details-marker{display:none}
.tgs-native-tool-card>summary>div{min-width:0;flex:1}
.tgs-native-tool-card>summary strong{display:block;color:#274148;font-size:14px;font-weight:850}
.tgs-native-tool-card>summary small{display:block;margin-top:2px;color:#738387;font-size:11.5px;line-height:1.35}
.tgs-native-tool-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#dff5f2;color:#126f6a;font-size:16px;font-weight:900}
.tgs-native-chevron{color:#79a9a3;font-size:19px;transition:transform .18s ease}
.tgs-native-tool-card[open] .tgs-native-chevron{transform:rotate(180deg)}
.tgs-native-tool-body{padding:15px;border-top:1px solid #e4efec;background:#fff}

/* Gift Preferences should feel light, calm and native to the TGS palette — not black on orange. */
body.tgs-profile-themed.tgs-gift-preferences-editor :is(.yz-settings-content,.youzify-settings-content,.bp-profile-content,#buddypress .profile.edit){background:#fbfefd!important;border-color:#dbeae6!important}
body.tgs-profile-themed.tgs-gift-preferences-editor :is(.editfield,.field-visibility-settings,.yz-settings-section,.youzify-settings-section,fieldset){background:linear-gradient(180deg,#f0faf8,#fbfefd)!important;border-color:#cfe7e2!important}
body.tgs-profile-themed.tgs-gift-preferences-editor :is(.editfield,.yz-settings-section,.youzify-settings-section) label{color:#26545a!important}
body.tgs-profile-themed.tgs-gift-preferences-editor :is(.description,.field-visibility-settings-toggle,.field-visibility-settings-notoggle,p.description){color:#647d80!important}
body.tgs-profile-themed.tgs-gift-preferences-editor :is(button,input[type=submit],.button,.yz-save-options,.youzify-save-options){background:#d9f3ef!important;color:#126a65!important;border:1px solid #a9ddd6!important;box-shadow:none!important}
body.tgs-profile-themed.tgs-gift-preferences-editor :is(button,input[type=submit],.button,.yz-save-options,.youzify-save-options):hover{background:#ccece7!important;color:#0d5e59!important}
body.tgs-profile-themed.tgs-gift-preferences-editor :is(.yz-settings-sidebar,.youzify-settings-sidebar,.bp-profile-nav) .active>a,
body.tgs-profile-themed.tgs-gift-preferences-editor :is(.yz-settings-sidebar,.youzify-settings-sidebar,.bp-profile-nav) .current>a{background:#e2f6f2!important;color:#126f6a!important}

/* Refine My Info inside the app */
.tgs-refine-intro{grid-column:1/-1;display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid #d6ebe7;border-radius:14px;background:#f2fbf9}
.tgs-refine-intro strong{color:#1f4b50;font-size:14px}.tgs-refine-intro span{color:#6a7c80;font-size:12px;line-height:1.4}
.tgs-refine-group{grid-column:span 1;padding:12px;border:1px solid #e6e1d7;border-radius:14px;background:#fffdf9}
.tgs-refine-group h3{margin:0 0 9px!important;color:#31484d!important;font-size:13px!important}
.tgs-refine-chips{display:flex;flex-wrap:wrap;gap:7px}
.tgs-refine-chip{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:7px 9px 7px 11px!important;border:1px solid #dce9e5!important;border-radius:999px!important;background:#f3faf8!important;color:#2d4a4f!important;font-size:12px!important;font-weight:750!important;box-shadow:none!important}
.tgs-refine-chip b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fff;color:#8c5e5e;font-size:14px;line-height:1}
.tgs-refine-chip.avoid{background:#fff5f1!important;border-color:#efd9d0!important}.tgs-refine-chip.like{background:#eef9f6!important}.tgs-refine-chip.brand,.tgs-refine-chip.interest{background:#f8f4ea!important;border-color:#e9e0ce!important}
.tgs-refine-chip:disabled{opacity:.5!important}
.tgs-refine-settings{grid-column:1/-1;justify-self:start;margin-top:2px}

.tgs-app-sociallinks{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.tgs-app-sociallinks a{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #d2e9e5;border-radius:11px;background:#f4fbf9;color:#126f6a;text-decoration:none;font-size:12px;font-weight:800}.tgs-app-sociallinks svg{width:19px;height:19px;flex:0 0 19px}.tgs-profile-location{margin-top:4px;color:#60777b;font-size:12px;font-weight:650}

/* Recently Saved must remain visible and readable on mobile. */
.tgs-overview-saved{display:block!important;visibility:visible!important;opacity:1!important;overflow:visible!important;min-width:0!important}
.tgs-overview-faves{display:grid!important;visibility:visible!important;opacity:1!important}
@media(max-width:720px){
  .tgs-overview-saved{grid-column:1/-1!important;width:100%!important;margin:0!important}
  .tgs-overview-faves{grid-template-columns:1fr!important;width:100%!important}
  .tgs-overview-faves>a{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;width:100%!important;min-width:0!important}
  .tgs-native-profile-tools{padding:13px;border-radius:17px}
  .tgs-native-tool-body{padding:12px}
  .tgs-refine-group{grid-column:1/-1}
  .tgs-app-sociallinks a,.tgs-overview-links a{font-size:12px!important}
}


/* v1.0.29 — Refine My Info stays in-app and edits the shared profile data. */
.tgs-confidence-overallbar{height:12px;margin:10px 0 14px;border-radius:999px;background:#dfe8e6;border:1px solid #cddbd8;overflow:hidden;box-shadow:inset 0 1px 2px rgba(31,62,64,.08)}
.tgs-confidence-overallbar span{display:block;height:100%;min-width:3px;border-radius:999px;background:linear-gradient(90deg,#19b8b2,#d4a72c)}
.tgs-progress{background:#dfe4e7!important;border:1px solid #d0d8dc!important;min-height:10px!important}
.tgs-progress span{background:linear-gradient(90deg,#19b8b2,#5fd2cb)!important}
.tgs-progress.yellow span{background:linear-gradient(90deg,#d7ad37,#efc85d)!important}
.tgs-bp-meter{background:#dde6e3!important;border:1px solid #cad8d4!important;min-height:10px!important}
.tgs-bp-meter i{background:linear-gradient(90deg,#19b8b2,#d5a72c)!important;min-width:3px}
.tgs-refine-grouphead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.tgs-refine-grouphead h3{margin:0!important}
.tgs-refine-add{border:1px solid #b7ddd7;background:#e8f7f4;color:#126f6a;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:850;cursor:pointer}
.tgs-refine-add:hover{background:#d9f1ed}
.tgs-refine-chip{cursor:default!important;padding-right:6px!important}
.tgs-refine-chip>button{display:grid;place-items:center;width:22px;height:22px;border:0;border-radius:50%;background:#fff;color:#61777b;font-size:13px;font-weight:900;line-height:1;cursor:pointer;padding:0;box-shadow:none}
.tgs-refine-chip>button:hover{background:#e6f4f1;color:#126f6a}
.tgs-refine-chip>button[data-refine-remove]:hover{background:#fff0ed;color:#a54f46}
@media(max-width:640px){.tgs-refine-group{grid-column:1/-1}.tgs-refine-chip{max-width:100%}.tgs-refine-chip>span{min-width:0;overflow-wrap:anywhere}}

/* v1.0.30 — TGS editor is separate from the stock Youzify/BuddyPress editor. */
.tgs-bp-signal-editable{position:relative;padding-right:34px!important}
.tgs-bp-signal-editable .tgs-bp-signal-text{min-width:0;overflow-wrap:anywhere}
.tgs-signal-delete-form{display:inline-flex!important;margin:0!important;padding:0!important;position:absolute;right:7px;top:50%;transform:translateY(-50%)}
.tgs-signal-delete{width:22px!important;height:22px!important;min-width:22px!important;border:0!important;border-radius:999px!important;background:rgba(26,48,48,.08)!important;color:#355!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;font-size:15px!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important}
.tgs-signal-delete:hover{background:rgba(231,159,58,.18)!important;color:#8b5500!important}
.tgs-bp-edit-tags{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.tgs-bp-edit-tag{position:relative;display:inline-flex!important;align-items:center!important;gap:8px!important;padding:8px 34px 8px 11px!important;border:1px solid rgba(31,126,124,.18)!important;border-radius:12px!important;background:#f7fbfa!important;color:#263c3c!important}
.tgs-bp-edit-tag .tgs-signal-delete-form{right:6px}

/* v1.0.32 — preserve v1.0.30 shell, add requested refine/people/mobile details. */
.tgs-amazon-rating{display:flex;align-items:center;gap:6px}
.tgs-amazon-rating .tgs-rating-number,.tgs-amazon-rating .tgs-review-count{font-size:16px!important;line-height:1.2;font-weight:700}
.tgs-amazon-rating .tgs-review-count{font-weight:600;color:#536466}
.tgs-refine-group{display:flex;flex-direction:column;gap:10px}
.tgs-refine-grouphead{margin-bottom:0}
.tgs-refine-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tgs-refine-chip{width:100%;min-width:0;border-radius:12px!important;padding:8px 8px 8px 10px!important;justify-content:flex-start!important}
.tgs-refine-chip>span{min-width:0;flex:1;overflow-wrap:anywhere}
.tgs-refine-chip-icon{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;flex:0 0 22px!important;border-radius:50%!important;background:#fff!important;color:#147b75!important;font-size:13px!important;line-height:1!important}
.tgs-refine-chip.avoid .tgs-refine-chip-icon{color:#a85a4f!important}
.tgs-refine-chip.brand .tgs-refine-chip-icon,.tgs-refine-chip.interest .tgs-refine-chip-icon{color:#9a7421!important}
.tgs-refine-addrow{display:flex;gap:8px;align-items:center;margin-top:2px}
.tgs-refine-addrow input{flex:1;min-width:0;height:40px;border:1px solid #d7e5e2;border-radius:12px;background:#fff;color:#2f4549;padding:0 12px;font-size:13px;box-shadow:none}
.tgs-refine-addrow input:focus{outline:none;border-color:#8fcfc7;box-shadow:0 0 0 3px rgba(25,184,178,.10)}
.tgs-refine-addrow .tgs-refine-add{flex:0 0 auto;height:40px;border-radius:12px;padding:0 14px}
.tgs-danger-zone{margin-top:18px;padding-top:14px;border-top:1px solid #ead8d4}
.tgs-btn.danger{background:#fff3f1!important;border-color:#d99b91!important;color:#9c4439!important}
.tgs-secondary-widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px;grid-column:1/-1}
.tgs-secondary-widgets>.yz-widget,.tgs-secondary-widgets>.youzify-widget,.tgs-secondary-widgets>.widget{margin:0!important;border-radius:18px!important;overflow:hidden!important}
@media(max-width:640px){
  .tgs-refine-chips{grid-template-columns:1fr}
  .tgs-refine-addrow{align-items:stretch}
  .tgs-refine-addrow input,.tgs-refine-addrow .tgs-refine-add{height:42px}
  .tgs-secondary-widgets{grid-template-columns:1fr}
}


/* v1.0.32 — cumulative refinements from the v1.0.30 base. */
.tgs-bp-signal-add{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid #e7ece9}
.tgs-bp-signal-add input{flex:1;min-width:0;height:40px;border:1px solid #d7e5e2;border-radius:12px;background:#fff;color:#2f4549;padding:0 12px;font-size:13px}
.tgs-bp-signal-add .tgs-bp-btn.small{height:40px;padding:0 14px;white-space:nowrap}
.tgs-bp-people-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.tgs-bp-person-card{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:13px;border:1px solid #e7e0d3;border-radius:18px;background:#fffdf8;box-shadow:0 8px 24px rgba(34,70,69,.05)}
.tgs-bp-person-photo{width:72px;height:72px;border-radius:18px;overflow:hidden;background:#e8f5f2;display:grid;place-items:center;color:#176f6b;font-size:28px;font-weight:850}
.tgs-bp-person-photo img{width:100%;height:100%;object-fit:cover}
.tgs-bp-person-edit{min-width:0}.tgs-bp-formgrid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tgs-bp-formgrid.compact .tgs-bp-field{margin:0}
.tgs-bp-person-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.tgs-bp-person-actions .ghost{background:#f3faf8;color:#176f6b}
.tgs-bp-person-delete{grid-column:1/-1;text-align:right}.tgs-bp-danger-link{border:0;background:transparent;color:#aa554a;font-size:12px;font-weight:750;cursor:pointer;padding:3px 0}
.tgs-bp-people-addgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tgs-bp-people-addgrid>form{padding:14px;border:1px solid #e7e0d3;border-radius:18px;background:#fbfaf5}.tgs-bp-people-addgrid h4{margin:0 0 4px;color:#27494c}.tgs-bp-people-addgrid p{margin:0 0 12px;color:#728286;font-size:12px}
.tgs-secondary-widgets{margin-top:18px;padding-top:2px}.tgs-secondary-widgets>h3{margin:0 0 10px;color:#27494c;font-size:18px}.tgs-secondary-widgets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tgs-secondary-widgets-grid>.yz-widget,.tgs-secondary-widgets-grid>.youzify-widget,.tgs-secondary-widgets-grid>.widget{display:block!important;position:relative!important;float:none!important;width:auto!important;margin:0!important;border-radius:18px!important;overflow:hidden!important;background:#fffdf8!important;border:1px solid #e7e0d3!important;box-shadow:0 8px 24px rgba(34,70,69,.05)!important}
@media(max-width:760px){.tgs-bp-people-cards,.tgs-bp-people-addgrid,.tgs-secondary-widgets-grid{grid-template-columns:1fr}.tgs-bp-person-card{grid-template-columns:58px minmax(0,1fr)}.tgs-bp-person-photo{width:58px;height:58px;border-radius:15px}.tgs-bp-formgrid.compact{grid-template-columns:1fr}.tgs-bp-signal-add{align-items:stretch}.tgs-bp-signal-add input,.tgs-bp-signal-add .tgs-bp-btn.small{height:42px}}

/* v1.0.31 — Refine cards use one visual list plus one simple add field. */
.tgs-refine-group{display:flex;flex-direction:column;gap:10px}
.tgs-refine-grouphead{margin-bottom:0}
.tgs-refine-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tgs-refine-chip{width:100%;min-width:0;border-radius:12px!important;padding:8px 8px 8px 10px!important;justify-content:flex-start!important}
.tgs-refine-chip>span{min-width:0;flex:1;overflow-wrap:anywhere}
.tgs-refine-chip-icon{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;flex:0 0 22px!important;border-radius:50%!important;background:#fff!important;color:#147b75!important;font-size:13px!important;line-height:1!important}
.tgs-refine-chip.avoid .tgs-refine-chip-icon{color:#a85a4f!important}
.tgs-refine-chip.brand .tgs-refine-chip-icon,.tgs-refine-chip.interest .tgs-refine-chip-icon{color:#9a7421!important}
.tgs-refine-addrow{display:flex;gap:8px;align-items:center;margin-top:2px}
.tgs-refine-addrow input{flex:1;min-width:0;height:40px;border:1px solid #d7e5e2;border-radius:12px;background:#fff;color:#2f4549;padding:0 12px;font-size:13px;box-shadow:none}
.tgs-refine-addrow input:focus{outline:none;border-color:#8fcfc7;box-shadow:0 0 0 3px rgba(25,184,178,.10)}
.tgs-refine-addrow .tgs-refine-add{flex:0 0 auto;height:40px;border-radius:12px;padding:0 14px}
@media(max-width:640px){
  .tgs-refine-chips{grid-template-columns:1fr}
  .tgs-refine-addrow{align-items:stretch}
  .tgs-refine-addrow input{height:42px}
  .tgs-refine-addrow .tgs-refine-add{height:42px}
}

@media(max-width:760px){.tgs-overview-saved{display:block!important;grid-column:1/-1!important;width:100%!important;visibility:visible!important}.tgs-overview-faves{display:grid!important;grid-template-columns:1fr!important}}


/* v1.0.33 — full-width secondary profile widgets and read-only linked-member shopping views. */
.tgs-secondary-widgets{display:block!important;width:100%!important;margin-top:18px!important;grid-column:1/-1!important}
.tgs-secondary-widgets>h3{margin:0 0 10px!important;color:#27494c!important;font-size:18px!important}
.tgs-secondary-widgets-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important}
.tgs-secondary-widgets-grid>.tgs-secondary-profile-widget,.tgs-secondary-widgets-grid>.yz-widget,.tgs-secondary-widgets-grid>.youzify-widget,.tgs-secondary-widgets-grid>.widget{grid-column:1/-1!important;width:100%!important;max-width:none!important;min-width:0!important;float:none!important;margin:0!important;display:block!important;border-radius:18px!important;overflow:hidden!important;background:#fffdf8!important;border:1px solid #e7e0d3!important;box-shadow:0 8px 24px rgba(34,70,69,.05)!important}
.tgs-secondary-widgets-grid :is(.swiper,.swiper-container,.owl-carousel,.slideshow,[class*="slider"],[class*="slideshow"]){max-width:100%!important;width:100%!important}

/* v1.0.34 loading and social-link reliability */
.tgsapp-loading-rich{display:grid;gap:14px;align-content:center;min-height:150px}
.tgs-loading-title{font-size:20px;font-weight:800;color:var(--tgs-text);letter-spacing:-.02em}
.tgs-loading-note{font-size:14px;color:var(--tgs-muted)}
.tgs-loading-track{height:12px;border-radius:999px;background:#e7efed;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(25,184,178,.12)}
.tgs-loading-track span{display:block;height:100%;width:38%;border-radius:999px;background:linear-gradient(90deg,var(--tgs-primary),#5fd5ce,var(--tgs-gold));animation:tgsLoaderSweep 1.15s ease-in-out infinite}
@keyframes tgsLoaderSweep{0%{transform:translateX(-115%)}100%{transform:translateX(300%)}}
.tgs-profile-sociallinks{display:flex;flex-wrap:wrap;gap:10px;margin-top:9px}
.tgs-profile-sociallink{display:inline-flex;align-items:center;gap:7px;text-decoration:none!important;color:#147a7a;font-weight:700;font-size:15px}
.tgs-socialicon{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;background:#e8faf8;color:#147a7a;font-size:13px;font-weight:900}

/* v1.0.35 giftRows repair: no visual changes */

/* v1.0.36 My People profile-builder refresh */
.tgs-overview-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.tgs-bp-people-list-modern{display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 18px}
.tgs-bp-person-row-modern{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid #e9e0d2;border-radius:18px;background:linear-gradient(135deg,#fffdf8 0%,#fbfaf5 100%);box-shadow:0 10px 26px rgba(34,70,69,.055)}
.tgs-bp-person-row-modern.is-linked{border-left:4px solid #38beb6}
.tgs-bp-person-row-modern.is-private{border-left:4px solid #efb154}
.tgs-bp-person-photo-modern{width:68px;height:68px;border-radius:50%;overflow:hidden;background:#e7f6f3;display:grid;place-items:center;color:#15736f;font-weight:850;font-size:24px;box-shadow:0 4px 14px rgba(31,102,98,.12)}
.tgs-bp-person-photo-modern img{width:100%;height:100%;object-fit:cover}
.tgs-bp-person-summary{min-width:0}
.tgs-bp-person-name{font-size:18px;font-weight:850;color:#21383b;line-height:1.1}
.tgs-bp-person-meta{margin-top:4px;font-size:13px;color:#5d7074;font-weight:700}
.tgs-bp-person-type{margin-top:5px;font-size:12px;color:#75878a}
.tgs-bp-person-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tgs-bp-person-edit-drawer{position:relative}
.tgs-bp-person-edit-drawer>summary{list-style:none;cursor:pointer}
.tgs-bp-person-edit-drawer>summary::-webkit-details-marker{display:none}
.tgs-bp-person-drawer-body{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(560px,78vw);padding:16px;border:1px solid #e6ddcf;border-radius:18px;background:#fffdf8;box-shadow:0 18px 44px rgba(35,66,67,.16)}
.tgs-bp-person-drawer-body .tgs-bp-formgrid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tgs-bp-photo-field{grid-column:1/-1}
.tgs-bp-person-delete{margin-top:8px;text-align:left}
.tgs-bp-danger-link{font-size:12px!important;color:#9f514a!important;background:#fff5f2!important;border:1px solid #f0d3cc!important;border-radius:10px!important;padding:7px 10px!important}
.tgs-bp-people-builder{display:grid;gap:10px;margin-top:8px;padding-top:16px;border-top:1px solid #ece3d7}
.tgs-bp-people-builder-head h4{margin:0;color:#27484b;font-size:18px}.tgs-bp-people-builder-head p{margin:3px 0 4px;color:#718286;font-size:12px}
.tgs-bp-add-drawer{border:1px solid #e6dfd3;border-radius:16px;background:#fffdf8;overflow:hidden}
.tgs-bp-add-drawer>summary{display:flex;gap:12px;align-items:center;padding:13px 15px;cursor:pointer;list-style:none}
.tgs-bp-add-drawer>summary::-webkit-details-marker{display:none}
.tgs-bp-add-drawer>summary:hover{background:#f7fbf9}
.tgs-bp-add-icon{width:34px;height:34px;border-radius:12px;background:#e4f6f2;color:#15736f;display:grid;place-items:center;font-weight:900;font-size:18px;flex:0 0 auto}
.tgs-bp-add-drawer>summary strong{display:block;color:#27484b;font-size:14px}.tgs-bp-add-drawer>summary small{display:block;color:#7d8c8f;font-size:11px;margin-top:2px}
.tgs-bp-add-drawer-body{padding:0 15px 15px;border-top:1px solid #eee7db}
.tgs-bp-add-drawer-body .tgs-bp-formgrid{padding-top:14px}
@media(max-width:760px){
  .tgs-bp-person-row-modern{grid-template-columns:56px minmax(0,1fr);align-items:start}
  .tgs-bp-person-photo-modern{width:56px;height:56px}
  .tgs-bp-person-row-actions{grid-column:1/-1;justify-content:flex-start}
  .tgs-bp-person-drawer-body{position:fixed;left:12px;right:12px;top:12vh;width:auto;max-height:76vh;overflow:auto}
  .tgs-bp-person-drawer-body .tgs-bp-formgrid.compact{grid-template-columns:1fr}
  .tgs-overview-profile-actions{margin-left:0}
}

/* 1.0.37 Wishlist */
.tgs-wishlist-quick{position:absolute;top:58px;right:10px;z-index:6;border:1px solid #d8c997;background:rgba(255,251,239,.96);color:#8b6811;border-radius:999px;padding:7px 10px;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 5px 14px rgba(29,43,50,.10)}
.tgs-wishlist-main{min-height:720px}.tgs-wishlist-actions{display:flex;justify-content:flex-end;margin:6px 0 18px}.tgs-wishlist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tgs-wishlist-card{display:grid;grid-template-columns:120px 1fr;gap:16px;border:1px solid #e8dfcd;border-radius:22px;background:linear-gradient(145deg,#fff,#fffaf0);padding:15px;box-shadow:0 10px 26px rgba(39,55,60,.08);min-width:0}.tgs-wishlist-card.most-wanted{border-color:#dfbd58;box-shadow:0 12px 28px rgba(190,143,28,.12)}.tgs-wishlist-image{height:120px;border-radius:17px;background:#f4f3ed;display:grid;place-items:center;overflow:hidden;font-size:34px}.tgs-wishlist-image img{width:100%;height:100%;object-fit:contain;background:#fff}.tgs-wishlist-body{min-width:0}.tgs-wishlist-body h3{font-size:18px;line-height:1.25;margin:8px 0}.tgs-wishlist-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--tgs-muted);font-weight:750}.tgs-most-wanted{color:#9b6c00;background:#fff1b9;padding:4px 8px;border-radius:999px}.tgs-wishlist-meta{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0 10px}.tgs-wishlist-meta span{background:#f1faf8;border:1px solid #d9ebe7;color:#426268;border-radius:999px;padding:5px 8px;font-size:13px}.tgs-wishlist-owner-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.tgs-wish-claim{margin-top:10px;padding:9px 10px;border-radius:12px;font-size:13px;font-weight:750}.tgs-wish-claim.mine{background:#e9f9f4;color:#17685f}.tgs-wish-claim.taken{background:#f2f1ed;color:#6c6f72}.tgs-wish-claim button{border:0;background:transparent;text-decoration:underline;color:inherit;font-weight:800;cursor:pointer;margin-left:6px}.tgs-wishlist-modal{width:min(820px,96vw)}
.tgs-overview-wishlist{grid-column:1/-1}.tgs-overview-wishlist-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tgs-overview-wish{display:grid;grid-template-columns:62px 1fr;gap:10px;align-items:center;padding:10px;border:1px solid #e7e0d3;border-radius:16px;background:#fff;color:inherit;text-decoration:none;min-width:0}.tgs-overview-wish img,.tgs-overview-wish-placeholder{width:62px;height:62px;border-radius:12px;object-fit:contain;background:#f6f4ee;display:grid;place-items:center}.tgs-overview-wish strong{display:block;font-size:14px;line-height:1.25}.tgs-overview-wish small{display:block;margin-top:4px;color:#78838a;font-size:12px}
@media(max-width:1100px){.tgs-wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tgs-overview-wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.tgs-wishlist-grid,.tgs-overview-wishlist-grid{grid-template-columns:1fr}.tgs-wishlist-card{grid-template-columns:90px 1fr}.tgs-wishlist-image{height:90px}.tgs-wishlist-quick{top:56px;right:8px}}

/* 1.0.38 profile actions + activity media */
.tgs-overview-profile-actions-three{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(360px,100%);margin-left:auto}
.tgs-profile-action{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 12px;border-radius:14px;text-decoration:none!important;font-size:13px;font-weight:800;line-height:1;background:#f2faf8;border:1px solid #d1e9e4;color:#235e5d;box-shadow:0 5px 14px rgba(38,74,75,.07);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.tgs-profile-action:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(38,74,75,.12)}
.tgs-profile-action span{font-size:16px;line-height:1}.tgs-profile-action.refine{background:#eef9f6}.tgs-profile-action.avatar{background:#fff8e9;border-color:#ecdcae;color:#6c5924}.tgs-profile-action.cover{background:#f7f2e8;border-color:#e3d8c3;color:#555148}
.tgs-overview-activity-media{grid-column:1/-1!important}.tgs-activity-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.tgs-activity-photo-grid a{display:block;aspect-ratio:1/1;border-radius:15px;overflow:hidden;background:#f4f1e9;border:1px solid #e6dfd2}.tgs-activity-photo-grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease}.tgs-activity-photo-grid a:hover img{transform:scale(1.035)}
.tgs-activity-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tgs-activity-video-grid video{width:100%;max-height:320px;border-radius:16px;background:#172025;display:block}
@media(max-width:820px){.tgs-overview-profile-actions-three{margin-left:0;width:100%}.tgs-activity-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.tgs-overview-profile-actions-three{grid-template-columns:1fr}.tgs-activity-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tgs-activity-video-grid{grid-template-columns:1fr}}

/* 1.0.39 functional app hubs */
.tgs-hub-main .tgs-mainbody{padding-top:28px}
.tgs-hub-title{display:flex;align-items:center;justify-content:space-between;gap:18px}
.tgs-hub-filters{margin:18px 0 22px}
.tgs-people-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tgs-people-hub-card{background:linear-gradient(145deg,#fffdfa,#f7fcfb);border:1px solid #eadfcb;border-radius:20px;padding:18px;box-shadow:0 10px 26px rgba(33,52,53,.06);display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0}
.tgs-people-hub-ident{display:flex;align-items:center;gap:14px;min-width:0}.tgs-people-hub-ident h3{margin:0 0 3px;font-size:18px}.tgs-people-hub-ident p{margin:0 0 7px;color:#687879}.tgs-people-hub-avatar{width:62px;height:62px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#dff5f2;font-weight:800;flex:0 0 auto}.tgs-people-hub-avatar img{width:100%;height:100%;object-fit:cover}.tgs-person-kind{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf8f6;color:#1e6f6a;font-size:12px;font-weight:700}.tgs-people-hub-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tgs-occasion-person{display:flex;align-items:center;gap:12px;margin:16px 0 20px;padding:12px 14px;background:#fffaf0;border:1px solid #eadfc8;border-radius:16px;width:max-content;max-width:100%}.tgs-occasion-person div{display:flex;flex-direction:column}.tgs-occasion-person span{font-size:12px;color:#758080}.tgs-occasion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tgs-occasion-card{appearance:none;border:1px solid #eadfcb;background:linear-gradient(145deg,#fffefb,#f5fbfa);border-radius:20px;padding:22px 18px;min-height:145px;text-align:left;cursor:pointer;box-shadow:0 8px 22px rgba(33,52,53,.05);transition:.18s ease;display:flex;flex-direction:column;gap:8px}.tgs-occasion-card:hover{transform:translateY(-2px);border-color:#39bfb5;box-shadow:0 12px 28px rgba(33,52,53,.09)}.tgs-occasion-card:disabled{opacity:.5;cursor:not-allowed;transform:none}.tgs-occasion-card>span{font-size:30px}.tgs-occasion-card strong{font-size:17px;color:#18363a}.tgs-occasion-card small{color:#718083}
@media(max-width:900px){.tgs-people-hub-grid{grid-template-columns:1fr}.tgs-occasion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tgs-people-hub-card{align-items:flex-start;flex-direction:column}.tgs-people-hub-actions{justify-content:flex-start}}
@media(max-width:560px){.tgs-hub-title{align-items:flex-start;flex-direction:column}.tgs-occasion-grid{grid-template-columns:1fr}.tgs-people-hub-actions{width:100%}.tgs-people-hub-actions .tgs-btn{flex:1}}


/* 1.0.40 profile/social polish */
.tgs-overview-person .tgs-overview-profile-actions-three{grid-column:1/-1!important;width:100%!important;max-width:none!important;margin:10px 0 0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.tgs-overview-person .tgs-profile-action{min-width:0!important;white-space:nowrap!important;padding:9px 8px!important;font-size:11px!important;letter-spacing:-.01em!important}
.tgs-profile-image-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #ece3d7}.tgs-profile-image-actions .image-action{display:inline-flex;align-items:center;gap:7px}.tgs-profile-image-actions .image-action span{font-size:16px}.tgs-profile-image-actions .avatar{background:#eaf8f5!important;border-color:#cfe9e4!important}.tgs-profile-image-actions .cover{background:#fff7e8!important;border-color:#ecd9ae!important;color:#655325!important}
body.tgs-profile-themed .tgs-profile-widget-media{display:none!important}
.tgs-social-sidebar-widgets{display:grid;gap:14px;margin:14px 0}.tgs-social-sidecard{background:#fffdf8;border:1px solid #e7dfd2;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(34,70,69,.05);padding:15px}.tgs-social-sidehead{display:flex;align-items:center;gap:9px;margin:-15px -15px 13px;padding:13px 15px;border-top:3px solid #2ebcb1;border-bottom:1px solid #eee5d8;background:linear-gradient(90deg,#f5fbfa,#fff9ec)}.tgs-social-sidehead span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#edf7f5}.tgs-social-sidehead h3{margin:0!important;font-size:14px!important;color:#506468!important}.tgs-social-mini-list{display:grid;gap:9px}.tgs-social-mini-list a{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;align-items:center;text-decoration:none!important;color:#31575a!important}.tgs-social-mini-list img,.tgs-social-placeholder{width:38px;height:38px;border-radius:10px;object-fit:cover;background:#eef5f3;display:grid;place-items:center;font-weight:800}.tgs-social-mini-list strong{font-size:12.5px}.tgs-social-empty{margin:5px 0 10px;color:#7c898d;font-size:12px;font-style:italic}.tgs-social-more{display:inline-flex;margin-top:10px;font-size:11.5px;font-weight:800;color:#147c76!important;text-decoration:none!important}.tgs-social-friend-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.tgs-social-friend-grid a{text-decoration:none!important;text-align:center;min-width:0}.tgs-social-friend-grid img{width:48px;height:48px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 4px}.tgs-social-friend-grid span{display:block;font-size:10px;color:#526568;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgs-activity-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.tgs-activity-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tgs-overview-activity-media .tgs-overview-sectionhead>a{font-size:12px;font-weight:800;color:#147c76;text-decoration:none}
.tgs-people-hub-grid{grid-template-columns:1fr!important}.tgs-people-hub-card{padding:18px 20px!important;align-items:center!important}.tgs-people-hub-copy{min-width:0}.tgs-people-hub-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tgs-people-hub-top h3{margin:0!important}.tgs-people-hub-meta{margin:5px 0!important;font-size:13px!important;color:#5f7175!important}.tgs-people-hub-location{display:inline-flex;margin:1px 0 5px;padding:4px 8px;border-radius:999px;background:#fff5dc;color:#6e5a29;font-size:11px;font-weight:800}.tgs-people-hub-copy small{display:block;color:#849093;font-size:11.5px}.tgs-people-hub-avatar{width:74px!important;height:74px!important}
@media(max-width:760px){.tgs-overview-person .tgs-overview-profile-actions-three{grid-template-columns:1fr!important}.tgs-social-friend-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.tgs-activity-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tgs-activity-video-grid{grid-template-columns:1fr!important}.tgs-people-hub-card{align-items:flex-start!important}}

/* 1.0.41 cumulative profile/gallery/mobile/admin polish */
.tgs-people-hub-bio{margin:7px 0 6px!important;color:#425b60!important;font-size:13px!important;line-height:1.45!important;max-width:680px}
.tgs-gallery-count{font-size:12px;font-weight:800;color:#718083;background:#f5f8f7;border:1px solid #e1e9e6;border-radius:999px;padding:5px 9px}
.tgs-gallery-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #ebe4d8}
.tgs-gallery-pager button{appearance:none;border:1px solid #cfe4df;background:#eef8f6;color:#1f6865;border-radius:12px;padding:8px 12px;font-weight:800;cursor:pointer}
.tgs-gallery-pager button:disabled{opacity:.4;cursor:default}
.tgs-gallery-pager span{min-width:92px;text-align:center;color:#647477;font-size:12px;font-weight:800}
.tgs-mobile-nav-toggle{display:none}
.tgs-brandmark img,.tgs-mobile-nav-icon img{width:100%;height:100%;object-fit:cover;display:block}

@media(max-width:980px){
  .tgs-topgrid{position:relative!important;display:block!important;min-height:0!important;padding-top:62px}
  .tgs-mobile-nav-toggle{display:flex;position:absolute;top:10px;left:12px;z-index:60;align-items:center;gap:8px;border:1px solid #d6e7e3;background:linear-gradient(135deg,#fffaf0,#edf9f7);border-radius:16px;padding:7px 10px;box-shadow:0 7px 20px rgba(31,70,71,.12);cursor:pointer;color:#24585a}
  .tgs-mobile-nav-icon{width:38px;height:38px;border-radius:11px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,var(--tgs-primary),#55d1ca);color:#fff;font-size:20px;box-shadow:0 5px 12px rgba(25,184,178,.2)}
  .tgs-mobile-nav-chevron{font-size:18px;font-weight:900;line-height:1;transition:transform .16s ease}
  .tgs-mobile-nav-toggle.is-open .tgs-mobile-nav-chevron{transform:rotate(180deg)}
  .tgs-side{display:none!important;position:absolute;top:60px;left:10px;right:10px;z-index:55;max-height:calc(100vh - 78px);overflow:auto;border:1px solid #dfe7e3!important;border-radius:20px!important;box-shadow:0 20px 45px rgba(23,54,58,.2);padding:18px 14px!important}
  .tgs-side.is-mobile-open{display:flex!important}
  .tgs-side .tgs-brand{padding-bottom:16px}
  .tgs-main{min-width:0}
}
/* Readable three-action owner controls in the profile card. */
.tgs-overview-person .tgs-overview-profile-actions-three{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.tgs-overview-person .tgs-overview-profile-actions-three .tgs-profile-action{font-size:12.5px!important;white-space:normal!important;line-height:1.2!important;padding:9px 10px!important;min-height:44px!important}
.tgs-overview-person .tgs-overview-profile-actions-three .tgs-profile-action.refine{grid-column:1/-1!important}
@media(max-width:520px){.tgs-overview-person .tgs-overview-profile-actions-three{grid-template-columns:1fr!important}.tgs-overview-person .tgs-overview-profile-actions-three .tgs-profile-action.refine{grid-column:auto!important}}

/* v1.0.42 — recognizable mobile profile-menu trigger using the admin-uploaded TGS icon. */
@media(max-width:900px){
  .tgs-profile-mobile-menu-toggle{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
    min-width:58px!important;height:46px!important;padding:4px 8px!important;border:0!important;border-radius:14px!important;
    background:#fffaf0!important;color:#6f603f!important;box-shadow:0 2px 8px rgba(55,55,45,.08)!important;
    text-decoration:none!important;overflow:visible!important;
  }
  .tgs-profile-mobile-menu-toggle>.tgs-profile-mobile-original-icon{display:none!important}
  .tgs-profile-mobile-menu-icon{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:10px!important;background:#fff!important;font-size:20px!important;line-height:1!important}
  .tgs-profile-mobile-menu-icon img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
  .tgs-profile-mobile-menu-chevron{display:inline-block!important;font-size:22px!important;line-height:1!important;font-weight:900!important;color:#7d725e!important;transform:translateY(-1px)!important}
}

/* v1.0.43 — cohesive Gift Profile labels, working confidence fill, modal media viewer. */
.tgs-bp-meter{position:relative!important;height:10px!important;background:#dde6e3!important;border:1px solid #cad8d4!important;border-radius:999px!important;overflow:hidden!important}
.tgs-bp-meter .tgs-bp-meter-fill{display:block!important;height:100%!important;min-width:3px;border-radius:999px!important;background:linear-gradient(90deg,#19b8b2,#d5a72c)!important;box-shadow:0 0 8px rgba(25,184,178,.22)}
.tgs-confidence-overallbar .tgs-confidence-fill{display:block!important;height:100%!important;min-width:3px!important;border-radius:999px!important;background:linear-gradient(90deg,#19b8b2,#d5a72c)!important}

/* Make right-sidebar headings read like real section titles. */
body.tgs-profile-themed :is(.yz-sidebar,.youzify-sidebar,.yz-right-sidebar,.youzify-right-sidebar) :is(.yz-widget-title,.youzify-widget-title,.widget-title,.yz-widget-head h3,.youzify-widget-head h3,.yz-widget-head h4,.youzify-widget-head h4),
.tgs-social-sidehead h3{
  color:#111!important;
  font-size:17px!important;
  line-height:1.2!important;
  font-weight:800!important;
}

/* Photo/video thumbnails stay in-page and open a modal viewer. */
.tgs-gallery-open{appearance:none;border:0!important;padding:0!important;margin:0!important;background:transparent!important;display:block;width:100%;position:relative;cursor:zoom-in;border-radius:14px;overflow:hidden;box-shadow:none!important}
.tgs-gallery-open img,.tgs-gallery-open video{display:block;width:100%;height:100%;object-fit:cover;margin:0!important;border-radius:14px!important}
.tgs-gallery-video{cursor:pointer;background:#111!important}
.tgs-gallery-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.68);color:#fff;font-size:18px;padding-left:3px;box-shadow:0 5px 18px rgba(0,0,0,.3);pointer-events:none}
body.tgs-lightbox-open{overflow:hidden!important}
.tgs-media-lightbox{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:24px}
.tgs-media-lightbox-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(14,20,22,.86);cursor:zoom-out}
.tgs-media-lightbox-panel{position:relative;z-index:1;display:grid;place-items:center;max-width:min(1100px,94vw);max-height:92vh}
.tgs-media-lightbox-panel>img,.tgs-media-lightbox-panel>video{display:block;max-width:min(1100px,94vw);max-height:88vh;width:auto;height:auto;border-radius:16px;background:#000;box-shadow:0 24px 70px rgba(0,0,0,.42)}
.tgs-media-lightbox-close{position:absolute;z-index:2;right:-14px;top:-14px;width:44px;height:44px;border:2px solid rgba(255,255,255,.75)!important;border-radius:50%!important;background:#fff!important;color:#172225!important;font-size:30px!important;line-height:1!important;font-weight:500!important;display:grid!important;place-items:center!important;cursor:pointer!important;box-shadow:0 8px 24px rgba(0,0,0,.25)!important;padding:0!important}
@media(max-width:640px){.tgs-media-lightbox{padding:12px}.tgs-media-lightbox-panel>img,.tgs-media-lightbox-panel>video{max-width:94vw;max-height:82vh}.tgs-media-lightbox-close{right:2px;top:-50px}}

/* v1.0.44 — Gift Lists & Registries + mobile/profile action polish */
.tgs-mobile-nav-label,.tgs-profile-mobile-menu-label{font-size:13px;font-weight:850;letter-spacing:.01em;color:#315f60;white-space:nowrap}
.tgs-overview-shop-action{grid-column:1/-1;margin-top:8px}
.tgs-overview-shop-action .tgs-profile-action.buy{width:100%;background:linear-gradient(135deg,#eaf8f5,#fff7e7);border-color:#cfe7df;color:#174f50;font-size:13px!important;min-height:44px}

.tgs-gift-lists-main{min-height:720px}.tgs-gift-lists-stack{display:grid;gap:18px}.tgs-gift-list-card{border:1px solid #e6ddcd;border-radius:22px;background:linear-gradient(145deg,#fffefa,#f7fcfb);padding:18px;box-shadow:0 10px 28px rgba(37,59,61,.07)}
.tgs-gift-list-card.is-pool{background:linear-gradient(145deg,#fffaf0,#f2fbf9)}
.tgs-gift-list-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid #eee6d9}.tgs-gift-list-title{display:flex;gap:12px;align-items:flex-start;min-width:0}.tgs-gift-list-title>span{width:42px;height:42px;border-radius:13px;background:#eaf8f5;display:grid;place-items:center;font-size:22px;flex:0 0 auto}.tgs-gift-list-title small{display:block;text-transform:uppercase;letter-spacing:.06em;color:#6e8081;font-weight:800;font-size:10px}.tgs-gift-list-title h2{margin:2px 0 3px!important;font-size:20px!important;color:#1e3b3f}.tgs-gift-list-title p{margin:0;color:#788688;font-size:12px}.tgs-gift-list-owner-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.tgs-gift-list-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.tgs-gift-list-item{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:12px;border:1px solid #e7e1d6;border-radius:17px;background:#fff;min-width:0}.tgs-gift-list-item-image{height:92px;border-radius:13px;background:#f4f1e9;display:grid;place-items:center;overflow:hidden;font-size:26px}.tgs-gift-list-item-image img{width:100%;height:100%;object-fit:contain}.tgs-gift-list-item-body{min-width:0}.tgs-gift-list-item-body h4{margin:0 0 7px;font-size:15px;line-height:1.3;color:#253e42}.tgs-gift-list-item-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.tgs-pool-meter{margin-top:14px;padding:14px;border-radius:16px;background:#eef9f6;border:1px solid #d6ebe6}.tgs-pool-meter>div:first-child{margin-bottom:8px}.tgs-pool-meter strong{font-size:18px;color:#135f5b}.tgs-pool-meter span{color:#617476}.tgs-pool-meter small{display:block;margin-top:7px;color:#7a8788}.tgs-list-quick{position:absolute;right:10px;top:96px;z-index:6;border:1px solid #cfe4df;background:rgba(239,250,247,.97);color:#1d6863;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 5px 14px rgba(29,43,50,.08)}
@media(max-width:900px){.tgs-gift-list-head{flex-direction:column}.tgs-gift-list-owner-actions{justify-content:flex-start}.tgs-gift-list-items{grid-template-columns:1fr}}
@media(max-width:560px){.tgs-gift-list-item{grid-template-columns:74px minmax(0,1fr)}.tgs-gift-list-item-image{height:74px}.tgs-list-quick{top:94px;right:8px}.tgs-mobile-nav-toggle{min-width:126px!important;justify-content:flex-start!important}}

@media(max-width:900px){
  .tgs-profile-mobile-menu-toggle{min-width:118px!important;justify-content:flex-start!important;padding:4px 10px!important}
  .tgs-profile-mobile-menu-label{display:inline-block!important}
  .tgs-profile-mobile-has-right-actions{position:relative!important}
  .tgs-profile-mobile-right-action{float:right!important;margin-left:5px!important}
  .tgs-profile-mobile-right-action.is-first{margin-left:auto!important}
}
.tgs-gift-list-cover{height:140px;margin:-18px -18px 16px;border-radius:22px 22px 0 0;background-size:cover;background-position:center;position:relative;overflow:hidden}
.tgs-gift-list-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,65,67,.05),rgba(17,65,67,.28))}

/* v1.0.45 — navigation placement cleanup */
.tgs-overview-profile-actions-clean{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;margin:10px 0 0!important}
.tgs-overview-profile-actions-clean .tgs-profile-action{min-width:0!important;justify-content:center!important;text-align:center!important}
.tgs-gift-profile-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px}
.tgs-gift-profile-tabs a{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #d9e4e2;border-radius:999px;background:#f5fbfa;color:#245c5b;font-weight:800;text-decoration:none!important}
.tgs-gift-profile-tabs a:hover{background:#dff5f2;color:#153f3e}
#tgs-my-people{order:1}
#tgs-gift-lists-pools{order:2}
#tgs-profile-details{order:3}
.tgs-gift-lists-editor-body{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tgs-gift-lists-editor-body p{margin:0!important;max-width:620px}
@media(max-width:560px){.tgs-overview-profile-actions-clean{grid-template-columns:1fr!important}.tgs-gift-profile-tabs{display:grid;grid-template-columns:1fr}.tgs-gift-profile-tabs a{justify-content:center;border-radius:14px}.tgs-gift-lists-editor-body .tgs-bp-btn{width:100%}}

/* v1.0.46 — keep the main profile header identity-only; navigation/actions live in the left app menu. */

/* v1.0.49 Gift List people + public Ask Shelly */
.tgs-list-people{margin:16px 0;padding:16px;border:1px solid var(--tgs-line);border-radius:18px;background:linear-gradient(145deg,#f5fffd,#fff9ed)}
.tgs-list-people .tgs-sectionhead{align-items:flex-start;gap:14px}.tgs-list-people .tgs-sectionhead p{margin:4px 0 0;color:var(--tgs-muted);font-size:14px}.tgs-list-people-actions{display:flex;gap:8px;flex-wrap:wrap}.tgs-list-people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.tgs-list-person{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dfe8e4;border-radius:14px;background:#fff}.tgs-list-person div{display:grid;gap:2px}.tgs-list-person small{color:var(--tgs-muted)}.tgs-icon-btn{border:0;background:#fff1ec;color:#a94435;border-radius:999px;width:30px;height:30px;font-size:20px;cursor:pointer}.tgs-list-invites{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.tgs-list-invites span{padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #eadfc8;font-size:13px}.tgs-empty.compact{padding:10px 0}

.tgs-ask-shell{max-width:1180px;margin:36px auto 70px;padding:0 18px;font-family:Inter,sans-serif;color:var(--tgs-text)}.tgs-ask-hero{text-align:center;margin-bottom:24px}.tgs-ask-hero>span{font-weight:800;letter-spacing:.12em;color:#b87514;font-size:12px}.tgs-ask-hero h1{font-size:48px;line-height:1.05;margin:8px 0 10px}.tgs-ask-hero p{font-size:18px;color:var(--tgs-muted);margin:0}.tgs-ask-form{background:linear-gradient(145deg,#fff,#fffaf0);border:1px solid #eadfcf;border-radius:26px;padding:24px;box-shadow:0 18px 50px rgba(36,57,50,.08);display:grid;gap:20px}.tgs-ask-recipient,.tgs-ask-more label{display:grid;gap:8px;font-weight:700}.tgs-ask-recipient input,.tgs-ask-more textarea{border:1px solid #d9e3df;border-radius:14px;padding:13px 14px;font:inherit;background:#fff}.tgs-public-group{border:0;padding:0;margin:0}.tgs-public-group legend{font-weight:800;margin-bottom:8px}.tgs-public-chips{display:flex;flex-wrap:wrap;gap:8px}.tgs-public-chips label input{position:absolute;opacity:0;pointer-events:none}.tgs-public-chips label span{display:inline-block;padding:9px 13px;border:1px solid #dbe5e1;border-radius:999px;background:#fff;cursor:pointer;font-size:14px}.tgs-public-chips label input:checked+span{border-color:var(--tgs-primary);background:#eafbf8;color:#145c59;font-weight:800}.tgs-ask-more{border:1px solid #e3dfd4;border-radius:18px;padding:14px;background:#fff}.tgs-ask-more summary{cursor:pointer;font-weight:800}.tgs-ask-more summary span{font-weight:600;color:var(--tgs-muted);margin-left:8px}.tgs-ask-more[open]{display:grid;gap:18px}.tgs-ask-submit{justify-self:start;min-width:180px}.tgs-ask-status{margin:24px 0;padding:20px;border-radius:20px;background:#f3fffd;border:1px solid #d3ece7;display:grid;gap:10px}.tgs-ask-status[hidden],.tgs-ask-results[hidden]{display:none!important}.tgs-ask-results{margin-top:28px}.tgs-ask-results>h2{text-align:center;font-size:30px}.tgs-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tgs-public-result{border:1px solid #e4dfd3;border-radius:20px;background:#fff;padding:15px;box-shadow:0 10px 28px rgba(35,53,48,.07);display:grid;gap:12px}.tgs-public-img{aspect-ratio:1.35/1;border-radius:14px;background:#f6f6f2;overflow:hidden;display:grid;place-items:center;font-size:34px}.tgs-public-img img{width:100%;height:100%;object-fit:contain}.tgs-public-result h3{font-size:18px;margin:0 0 8px}.tgs-public-result p{font-size:14px;color:var(--tgs-muted);line-height:1.5}.tgs-public-result a{font-weight:800;color:var(--tgs-primary-dark)}.tgs-public-rating{font-size:15px;font-weight:700}.tgs-public-rating span{color:#f1b51d;font-size:18px}.tgs-public-signup{margin:24px 0;padding:24px;border-radius:22px;background:linear-gradient(135deg,#e9fbf8,#fff1cf);border:1px solid #d6e8df;text-align:center}.tgs-public-signup h2{margin:0 0 8px;font-size:26px}.tgs-public-signup p{margin:0 auto 16px;max-width:720px;color:#52635f}.tgs-public-more{display:block;margin:22px auto}.tgs-public-moregrid{margin-top:16px}
@media(max-width:760px){.tgs-list-people-grid,.tgs-public-grid{grid-template-columns:1fr}.tgs-ask-hero h1{font-size:38px}.tgs-ask-form{padding:18px}.tgs-list-people .tgs-sectionhead{display:grid}.tgs-list-people-actions{width:100%}.tgs-list-people-actions .tgs-btn{flex:1}}

/* v1.0.50 sharing + invitations */
.tgs-share-btn{border:1px solid #b9deda;background:#edf9f7;color:#126f6b;border-radius:999px;padding:9px 13px;font-weight:700;cursor:pointer;white-space:nowrap}.tgs-share-btn:hover{background:#dff3f0}.tgs-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.tgs-list-description{margin-top:8px!important;max-width:720px;color:#4b4b4b!important;line-height:1.45}.tgs-list-invite-row{display:flex!important;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #eee2d4}.tgs-list-invite-actions{display:flex;gap:6px}.tgs-btn.tiny{padding:5px 9px;font-size:12px}.tgs-gift-list-modal textarea{width:100%;border:1px solid #ccdcd9;border-radius:12px;padding:11px 12px;background:#fff;min-height:88px}.tgs-list-people-grid .tgs-list-person{align-items:center}@media(max-width:640px){.tgs-list-invite-row{align-items:flex-start;flex-direction:column}.tgs-card-actions>*{flex:1 1 auto;text-align:center}}

/* v1.0.53: quiet gift-list overview with a single detail pane */
.tgs-lists-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;align-items:stretch}
.tgs-list-summary{display:flex;align-items:center;gap:16px;width:100%;min-height:142px;text-align:left;padding:14px;border:1px solid #e5ded1;border-radius:20px;background:#fffefa;box-shadow:0 5px 18px rgba(23,55,54,.055);color:#263b3a;cursor:pointer;font:inherit;transition:box-shadow .15s,border-color .15s,transform .15s}
.tgs-list-summary:hover,.tgs-list-summary:focus-visible{border-color:#159d94;box-shadow:0 8px 22px rgba(21,100,96,.12);transform:translateY(-1px)}
.tgs-list-summary-photo{flex:0 0 108px;width:108px;height:108px;overflow:hidden;border-radius:14px;background:#e7f2ed;display:flex;justify-content:center;align-items:center}
.tgs-list-summary-photo img{width:100%;height:100%;display:block;object-fit:cover}
.tgs-list-summary-placeholder{font-size:35px}
.tgs-list-summary-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.tgs-list-summary-copy small{color:#277f76;font-size:12px}
.tgs-list-summary-copy strong{font-size:18px;line-height:1.25;color:#273a37}
.tgs-list-summary-desc{color:#566662;font-size:13px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tgs-list-summary-people{font-size:12px;color:#66716e;margin-top:5px}
.tgs-list-summary-arrow{font-size:28px;color:#1b8e87;padding:0 4px}
.tgs-lists-back{margin:0 0 17px}
@media(max-width:560px){.tgs-lists-overview{grid-template-columns:minmax(0,1fr)}.tgs-list-summary{gap:11px;padding:10px;min-height:120px}.tgs-list-summary-photo{flex-basis:88px;width:88px;height:96px}.tgs-list-summary-copy strong{font-size:16px}}

/* v1.0.55 — list destination picker and home collection navigation */
.tgs-collection-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 20px}.tgs-collection-home-card{display:flex;align-items:center;gap:14px;width:100%;border:1px solid #d7e7df;border-radius:17px;background:#fff;padding:18px;text-align:left;cursor:pointer;box-shadow:0 3px 14px #203a3010}.tgs-collection-home-card:hover{border-color:#278779;transform:translateY(-1px)}.tgs-collection-home-card>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:6px}.tgs-collection-home-card strong{font-size:17px;color:#20342f}.tgs-collection-home-card small{font-size:13px;color:#63786f}.tgs-collection-home-image{width:52px;height:52px;border-radius:13px;background:#e7f5ef;display:grid;place-items:center;font-size:27px}.tgs-destination-list{display:grid;gap:8px;margin-top:10px;max-height:250px;overflow:auto}.tgs-destination-option{display:flex;align-items:center;gap:12px;border:1px solid #d9e5df;border-radius:11px;padding:9px;cursor:pointer}.tgs-destination-option>span:last-child{display:flex;flex-direction:column;gap:3px}.tgs-destination-option small{color:#687b70}.tgs-destination-photo{width:45px;height:45px;border-radius:8px;background:#e8f4ed;display:grid;place-items:center;overflow:hidden}.tgs-destination-photo img{width:100%;height:100%;object-fit:cover}.tgs-list-move{border:1px solid #bcd4c9;background:#fff;color:#286456;border-radius:7px;padding:8px 10px;cursor:pointer;margin:5px}.tgs-list-quick{max-width:calc(100% - 10px)}@media(max-width:680px){.tgs-collection-overview{grid-template-columns:1fr}}

/* 1.0.56 — Gift Profile collection thumbnails */
.tgs-bp-collection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 10px}.tgs-bp-collection-heading h4{margin:0;font-size:17px;color:#213e40}.tgs-bp-collection-heading small{color:#678083}.tgs-bp-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tgs-bp-collection-tile{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid #e5dccc;border-radius:15px;background:#fffaf1;text-decoration:none!important;color:#23484a!important;min-width:0}.tgs-bp-collection-tile:hover{border-color:#30a9a4;background:#f5fcfa}.tgs-bp-collection-thumb{flex:none;width:74px;height:74px;border-radius:11px;overflow:hidden;background:#e7f5f2;display:grid;place-items:center;font-size:28px}.tgs-bp-collection-thumb img{width:100%;height:100%;object-fit:cover}.tgs-bp-collection-meta{display:flex;flex-direction:column;gap:3px;min-width:0}.tgs-bp-collection-meta strong{font-size:14px;line-height:1.3}.tgs-bp-collection-meta small{font-size:11px;color:#637b7d}.tgs-bp-collection-meta>span{font-size:12px;color:#556c6e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tgs-bp-collection-empty{font-size:13px;color:#738284;margin:4px 0 14px}@media(max-width:650px){.tgs-bp-collection-grid{grid-template-columns:1fr}}

/* v1.0.57: native accordion-only Gift Profile collection navigation. */
.tgs-bp-editor-stack{display:flex;flex-direction:column}
#tgs-my-people{order:1}
#tgs-gift-lists-pools{order:2}
#tgs-gift-wishlists{order:3}
#tgs-profile-details{order:4}
.tgs-gift-lists-editor-body{display:block}
.tgs-gift-lists-editor-body .tgs-bp-collection-grid{width:100%}

/* v1.0.58 search criteria and individual collection privacy */
.tgs-search-criteria{border:1px solid #d8e4de;background:#f6faf6;border-radius:12px;padding:13px 16px;margin-bottom:16px;color:#233d37}.tgs-search-criteria>strong{display:block;margin-bottom:8px}.tgs-search-criteria>div{display:flex;gap:7px 14px;flex-wrap:wrap;font-size:13px}.tgs-search-criteria span{max-width:100%}.tgs-list-personal-privacy{margin:16px 0}.tgs-list-personal-privacy label{display:block;margin:10px 0;line-height:1.5}.tgs-list-personal-privacy input{accent-color:#268f89;margin-right:8px}

/* Private self-profile clues: no public media URLs or shared people fields. */
.tgs-private-clues{max-width:860px}.tgs-private-clues .tgs-private-field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.tgs-private-clues textarea,.tgs-private-clues input[type=date]{font:inherit;padding:11px 13px;border:1px solid #d8dedb;border-radius:12px;background:#fff;color:#263633;width:100%;box-sizing:border-box}.tgs-private-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px;margin:12px 0}.tgs-private-photo{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#f2f3f2}.tgs-private-photo img{height:100%;width:100%;object-fit:cover}.tgs-private-photo button{position:absolute;top:3px;right:3px;border:0;background:#fff;color:#444;border-radius:50%;width:28px;height:28px;cursor:pointer}
/* v1.0.63: private questionnaire and dates */
.tgs-private-question{margin:9px 0;border:1px solid #dcebe7;border-radius:13px;background:#fff;overflow:hidden}.tgs-private-question>summary{cursor:pointer;padding:13px 15px;font-weight:750;color:#215957}.tgs-private-question>summary small{float:right;color:#69827d;font-weight:500}.tgs-private-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}.tgs-private-option{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 10px;background:#f3faf8;border:1px solid #dbece8;border-radius:10px;cursor:pointer}.tgs-private-option:has(input:checked){background:#daf4ef;border-color:#20a49a}.tgs-private-option input{accent-color:#138d84}.tgs-private-date-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#f4faf8;border-radius:12px;padding:10px;margin:8px 0}.tgs-private-date-row input[type=text]{flex:1;min-width:150px}.tgs-private-clues .tgs-sectionhead{margin-top:25px}@media(max-width:650px){.tgs-private-choice-grid{grid-template-columns:1fr}}

/* Codex v2.0 live, deterministic time display */
.tgs-deadline-label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:10px 0 6px;font-size:13px;color:#176c66}.tgs-deadline-track{height:13px;background:#dceae8;border-radius:99px;overflow:hidden;width:100%}.tgs-deadline-fill{height:100%;width:0%;background:linear-gradient(90deg,#208a81,#58b4a3);border-radius:99px;transition:width 1s linear}.tgs-deadline-fill.is-final{background:#d7993e}
