/* R1159 — concise blue gallery overview and gap-free gallery card actions. */
html body #root .clientGalleryIntro.pb1159Intro{
 display:block!important;overflow:hidden!important;
 border:1px solid #2b56d9!important;border-radius:22px!important;
 background:linear-gradient(135deg,#3568fb 0%,#315be9 55%,#2748bd 100%)!important;
 box-shadow:0 12px 30px rgba(49,94,251,.14)!important;
}
html body #root .pb1159Intro>summary{
 display:block!important;list-style:none!important;cursor:pointer!important;
 padding:15px 18px!important;margin:0!important;
 background:linear-gradient(135deg,#3568fb 0%,#315be9 55%,#2748bd 100%)!important;
 color:#fff!important;border:0!important;border-radius:0!important;
 text-align:right!important;
}
html body #root .pb1159Intro>summary::-webkit-details-marker{display:none!important}
html body #root .pb1159Intro>summary::marker{content:""!important}
html body #root .pb1159Intro>summary strong{
 display:block!important;font:850 16px/1.5 Vazirmatn,Tahoma,sans-serif!important;
 color:#fff!important;margin:0 0 5px!important;
}
html body #root .pb1159Intro .pb1159IntroPreview{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 font:600 12.5px/1.85 Vazirmatn,Tahoma,sans-serif!important;
 color:#eef4ff!important;max-width:100%!important;
}
html body #root .pb1159Intro .pb1159IntroMore,
html body #root .pb1159Intro .pb1159IntroLess{
 display:block!important;width:max-content!important;max-width:100%!important;
 margin-top:6px!important;color:#fff!important;
 font:800 12px/1.7 Vazirmatn,Tahoma,sans-serif!important;
 opacity:.96!important;
}
html body #root .pb1159Intro[open] .pb1159IntroMore,
html body #root .pb1159Intro:not([open]) .pb1159IntroLess{display:none!important}
html body #root .pb1159Intro>.clientGalleryIntroHeader{
 display:block!important;margin:0!important;padding:0 18px 14px!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;color:#fff!important;
}
html body #root .pb1159Intro .clientGalleryIntroCopy{margin:0!important;max-width:100%!important}
html body #root .pb1159Intro .clientGalleryIntroCopy p{
 margin:6px 0!important;color:#f2f6ff!important;
 font:600 13px/1.9 Vazirmatn,Tahoma,sans-serif!important;
}
html body #root .pb1159Intro .pb1159IntroCosts{border-top:1px solid #ffffff40;padding-top:9px!important}
html body #root .pb1159Intro .clientGalleryIntroFacts{display:none!important}
/* Every card action occupies a complete slot. Four actions use one row;
   five or six actions (e.g. delete/renew) share complete rows. */
html body #root .clientGalleryCardActions{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:6px!important;align-items:stretch!important;margin:0!important;padding:0!important;
}
html body #root .clientGalleryCardActions>button{
 grid-column:span 1!important;min-width:0!important;width:100%!important;max-width:none!important;
 height:auto!important;min-height:41px!important;padding:7px 6px!important;margin:0!important;
 white-space:normal!important;box-sizing:border-box!important;
}
html body #root .clientGalleryCardActions:has(>button:nth-child(1):last-child){grid-template-columns:1fr!important}
html body #root .clientGalleryCardActions:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body #root .clientGalleryCardActions:has(>button:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body #root .clientGalleryCardActions:has(>button:nth-child(5)){
 grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
html body #root .clientGalleryCardActions:has(>button:nth-child(5))>button{grid-column:span 2!important}
html body #root .clientGalleryCardActions:has(>button:nth-child(5):last-child)>button:nth-child(n+4){grid-column:span 3!important}
@media(max-width:820px){
 html body #root .pb1159Intro>summary{padding:13px 15px!important}
 html body #root .pb1159Intro>summary strong{font-size:15px!important}
 html body #root .pb1159Intro .pb1159IntroPreview{
  -webkit-line-clamp:3!important;font-size:12px!important;line-height:1.8!important;
 }
 html body #root .pb1159Intro>.clientGalleryIntroHeader{padding:0 15px 13px!important}
 html body #root .pb1159Intro .clientGalleryIntroCopy p{font-size:12.5px!important}
 html body #root .clientGalleryCardActions,
 html body #root .clientGalleryCardActions:has(>button:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #root .clientGalleryCardActions>button,
 html body #root .clientGalleryCardActions:has(>button:nth-child(5))>button{
  grid-column:span 1!important;min-height:43px!important;height:auto!important;
  padding:7px 4px!important;font-size:11.5px!important;
 }
 html body #root .clientGalleryCardActions>button:last-child:nth-child(odd),
 html body #root .clientGalleryCardActions:has(>button:nth-child(5):last-child)>button:last-child{
  grid-column:1/-1!important;
 }
}

/* R1160: three actions on top (including compact trash) and two equal-width actions below. */
html body #root .clientGalleryCardActions.pb1160GalleryActions:has(>button:nth-child(5):last-child){
 display:grid!important;
 grid-template-columns:repeat(14,minmax(0,1fr))!important;
 gap:6px!important;
 align-items:stretch!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions:has(>button:nth-child(5):last-child)>button{
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-width:0!important;width:100%!important;max-width:none!important;
 min-height:43px!important;height:auto!important;padding:7px 4px!important;
 box-sizing:border-box!important;line-height:1.35!important;white-space:normal!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions:has(>button:nth-child(5):last-child)>button:nth-child(-n+2){
 grid-column:span 6!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions:has(>button:nth-child(5):last-child)>button:nth-child(3){
 grid-column:span 2!important;
 padding:0!important;background:#fff1f2!important;color:#be123c!important;
 border:1px solid #fecdd3!important;border-radius:10px!important;box-shadow:none!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions:has(>button:nth-child(5):last-child)>button:nth-child(n+4){
 grid-column:span 7!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions .pb1160GalleryDelete svg{
 display:block!important;width:18px!important;height:18px!important;
 flex:none!important;pointer-events:none!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions .pb1160GalleryDelete:focus-visible{
 outline:2px solid #e11d48!important;outline-offset:2px!important;
}
@media(max-width:820px){
 html body #root .clientGalleryCardActions.pb1160GalleryActions:has(>button:nth-child(5):last-child)>button{
  font-size:11.5px!important;min-height:43px!important;
 }
}

/* R1161: fixed two-row gallery card; no extra text delete button or half-empty row. */
html body #root .clientGalleryCardActions.pb1160GalleryActions:has(>.pb1161GalleryTopRow){
 display:flex!important;flex-direction:column!important;gap:6px!important;
 width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryTopRow,
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryBottomRow{
 display:grid!important;width:100%!important;min-width:0!important;
 gap:6px!important;align-items:stretch!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryTopRow{
 grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryBottomRow{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryTopRow>button,
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryBottomRow>button{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 height:auto!important;min-height:43px!important;margin:0!important;padding:7px 5px!important;
 box-sizing:border-box!important;white-space:normal!important;
 text-align:center!important;font-size:11.5px!important;line-height:1.45!important;
 grid-column:auto!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryTopRow>.pb1160GalleryDelete{
 width:42px!important;min-width:42px!important;min-height:43px!important;
 padding:0!important;box-shadow:none!important;
 background:#fff1f2!important;color:#be123c!important;
 border:1px solid #fecdd3!important;border-radius:10px!important;
}
html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryTopRow>.pb1160GalleryDelete svg{
 width:18px!important;height:18px!important;display:block!important;pointer-events:none!important;
}
@media(max-width:820px){
 html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryTopRow{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px!important;
 }
 html body #root .clientGalleryCardActions.pb1160GalleryActions>.pb1161GalleryTopRow>.pb1160GalleryDelete{
  width:40px!important;min-width:40px!important;
 }
}
