/* Shared dialog shell and the developer regulations panel, all entry points. */
@layer sellect-theme {
 html#shellDemo[data-sellect-theme] .ds-dialog {border:0!important;border-radius:var(--sl-radius-dialog,28px)!important;box-shadow:0 18px 60px rgb(15 19 22 / 18%)!important;overflow:hidden!important}
 html#shellDemo[data-sellect-theme] :is(#dsDeveloperDialog,#dsApartmentDialog,#dsCatalogDialog,#dsRegulationDialog).ds-drawer {
  inset:8px 8px 8px auto!important;margin:0!important;width:min(680px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:var(--sl-radius-dialog,28px)!important;
 }
 html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-head {position:relative!important;align-items:flex-start!important;padding:22px 64px 20px 22px!important;gap:14px!important}
 html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-head>div {min-width:0}
 html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-head h2 {font-size:22px!important;line-height:29px!important;overflow-wrap:anywhere}
 html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-head>.ds-icon-button[data-ds-close] {position:absolute!important;top:16px!important;right:16px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:7px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--sl-text-muted)!important}
 html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-head>.ds-icon-button[data-ds-close]:hover {background:#F0F2F5!important;color:var(--sl-graphite)!important}
 html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-body {padding:0 22px 22px!important;scrollbar-width:thin;scrollbar-color:#B6C7EB transparent}
 html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-foot {padding:16px 22px 22px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context {gap:14px!important;margin-bottom:20px!important;padding:12px!important;background:#F4F5F7;border-radius:18px}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context>img {width:76px!important;height:64px!important;border-radius:12px!important;object-fit:cover}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context>div {min-width:0;gap:5px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context small {line-height:19px;overflow-wrap:anywhere}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission {padding:16px!important;border-radius:18px!important;background:#F4F5F7!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission>div {gap:12px!important;flex-wrap:wrap}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission strong {font-size:23px!important;line-height:30px!important;color:var(--sl-graphite)!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission p {font-size:13px!important;line-height:20px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-section {margin-top:24px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-section+.fp-reg-section {margin-top:32px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-section h3 {margin-bottom:12px!important;font-size:16px!important;line-height:22px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-contacts {gap:8px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-contact {padding:12px!important;gap:6px 12px!important;background:#F4F5F7;border:0!important;border-radius:16px}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-phone button {border-radius:10px!important;background:transparent!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-phone button:hover {background:#E9EDF3!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog :is(.fp-reg-phone a,.fp-reg-contact-extra a) {color:var(--sl-accent-ink)!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-site {display:flex!important;align-items:center;box-sizing:border-box;width:100%;min-height:44px;gap:10px!important;margin-top:12px!important;padding:11px 16px!important;border-radius:var(--sl-radius-control,20px)!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-site>span {flex:1}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-site:hover {background:#F4F5F7}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-broker {width:100%;justify-content:space-between;box-sizing:border-box;min-height:44px;padding:11px 16px!important;border-radius:var(--sl-radius-control,20px)!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-broker>span {flex:1}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-files {gap:8px!important;margin-top:12px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-file {padding:12px 14px!important;border-radius:18px!important;gap:12px!important;min-height:72px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-file .ex-pdf-mark {width:24px!important;height:26px!important;color:#CB254D!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-file>span {overflow-wrap:anywhere;gap:4px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-file strong {font-size:14px;line-height:20px}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-file small {font-size:12px;line-height:18px}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-file>svg:last-child {color:var(--sl-text-muted)!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-materials>.ds-resource {width:100%!important;min-width:0!important;min-height:72px!important;padding:12px 14px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog.ds-drawer {width:min(560px,calc(100vw - 16px))!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context {display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:12px 20px!important;padding:0!important;background:transparent!important;border-radius:0!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context>.fp-reg-identity {display:flex!important;align-items:center!important;gap:16px!important;min-width:0}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-identity>img {width:88px;height:80px;object-fit:cover;border-radius:12px;flex:none}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-identity>div {display:grid;gap:6px;min-width:0}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-complex-title {font-size:18px;line-height:24px;font-weight:600;overflow-wrap:anywhere}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-class {font-size:12px;line-height:18px;color:var(--sl-text-muted)}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission {padding:0!important;background:transparent!important;border-radius:0!important;max-width:128px;text-align:right}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission>div {display:flex!important;flex-direction:column;align-items:flex-end!important;gap:4px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission span {font-size:12px!important;line-height:18px!important}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission strong {font-size:26px!important;line-height:32px!important;white-space:normal!important;overflow-wrap:anywhere}
 html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission-note {grid-column:1/-1;margin:0!important;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere;color:var(--sl-text-muted)}
 @media(max-width:600px) {
  html#shellDemo[data-sellect-theme] :is(#dsDeveloperDialog,#dsApartmentDialog,#dsCatalogDialog,#dsRegulationDialog).ds-drawer {inset:6px 6px 6px auto!important;width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:22px!important}
  html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-head {padding:18px 56px 18px 16px!important}
  html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-head h2 {font-size:20px!important;line-height:27px!important}
  html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-body {padding:0 16px 18px!important}
  html#shellDemo[data-sellect-theme] .ds-dialog .ds-dialog-foot {padding:14px 16px 18px!important}
  html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-identity>img {width:64px;height:72px}
  html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context {column-gap:12px!important}
  html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-regulation-context>.fp-reg-identity {gap:12px!important}
  html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-complex-title {font-size:16px;line-height:22px}
  html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-commission {max-width:112px}
  html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-contact {grid-template-columns:minmax(0,1fr)!important}
  html#shellDemo[data-sellect-theme] #dsRegulationDialog .fp-reg-phone {font-size:14px!important;gap:8px!important}
 }
}

/* Selection review in the collection creator. */
@layer sellect-theme {
 html#shellDemo[data-sellect-theme] #dsCreateDialog .fp-create-tabs {
  width:100%!important;max-width:100%!important;gap:24px!important;padding:0!important;
  background:transparent!important;border:0!important;border-bottom:1px solid var(--sl-border)!important;border-radius:0!important;
 }
 html#shellDemo[data-sellect-theme] #dsCreateDialog .fp-create-tabs .ds-tab {
  height:44px!important;min-height:44px!important;padding:0 0 12px!important;margin:0 0 -1px!important;
  border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;
  background:transparent!important;color:var(--sl-text-muted)!important;box-shadow:none!important;
  font-size:14px!important;
 }
 html#shellDemo[data-sellect-theme] #dsCreateDialog .fp-create-tabs .ds-tab[aria-selected=true] {
  color:var(--sl-accent-ink)!important;border-bottom-color:var(--sl-accent)!important;font-weight:600!important;
 }
 html#shellDemo[data-sellect-theme] #dsCreateDialog .fp-create-tabs .ds-tab:hover {color:var(--sl-graphite)!important;}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-existing-list {
  max-height:min(300px,32dvh);min-height:0;overflow-y:auto;overflow-x:hidden;
  grid-auto-rows:max-content;overscroll-behavior-y:contain;scrollbar-gutter:stable;
  scrollbar-width:thin;scrollbar-color:#B6C7EB transparent;padding-right:6px;
 }
 @media(max-width:600px){
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-existing-list {max-height:min(240px,28dvh);}
 }
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-list {display:grid;gap:10px;padding:0;background:transparent!important;border:0;border-radius:0;overflow:visible;}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row {
  position:relative;display:grid;grid-template-columns:60px minmax(0,1fr) auto!important;align-items:center;gap:14px!important;overflow:hidden;
  padding:12px 80px 12px 12px!important;background:var(--sl-surface,#fff)!important;border:1px solid var(--sl-border)!important;border-radius:16px;
 }
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row>img,
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row>.ds-row-placeholder {
  width:60px;height:64px;grid-row:auto;object-fit:contain;border-radius:8px;background:#fff;
 }
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-copy {display:grid;gap:5px;min-width:0;}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-copy strong {font-size:14px;line-height:20px;font-weight:600;overflow-wrap:anywhere;}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row small {font-size:12px;line-height:18px;font-weight:400;color:var(--sl-text-muted);}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-price {display:grid;gap:4px;grid-column:auto!important;grid-row:auto!important;text-align:right;white-space:nowrap;}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-price strong {font-size:15px;line-height:21px;font-weight:600;font-variant-numeric:tabular-nums;}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row [data-ds-unstage] {
  position:absolute;inset:0 0 0 auto;display:grid;place-items:center;grid-column:auto!important;grid-row:auto!important;width:52px!important;height:100%!important;min-width:52px!important;min-height:44px!important;
  padding:12px!important;border:0!important;border-radius:0!important;background:var(--sl-page-bg,#f5f6f8)!important;color:var(--sl-text-muted)!important;cursor:pointer;
 }
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row [data-ds-unstage] .ds-icon {width:21px!important;height:21px!important;min-width:21px;stroke-width:1.7!important;}
 html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row [data-ds-unstage]:hover {color:var(--sl-danger,#b24b46)!important;background:#FFF1F2!important;}
 @media(max-width:600px){
  html#shellDemo[data-sellect-theme] #dsCreateDialog .fp-create-tabs {gap:20px!important;}
  html#shellDemo[data-sellect-theme] #dsCreateDialog .fp-create-tabs .ds-tab {font-size:13px!important;}
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row {grid-template-columns:48px minmax(0,1fr)!important;gap:8px 10px!important;padding:10px 76px 10px 10px!important;}
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row>img,
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row>.ds-row-placeholder {width:48px;height:60px;grid-row:1/3;}
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-copy {grid-column:2;grid-row:1;gap:2px;}
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-price {grid-column:2!important;grid-row:2!important;text-align:left;gap:1px;}
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-price strong {font-size:14px;line-height:20px;}
  html#shellDemo[data-sellect-theme] #dsCreateDialog .ds-selected-row [data-ds-unstage] {grid-column:auto!important;grid-row:auto!important;}
 }
}
