/* Developer cards and the project popup use the approved shared theme. */
@layer sellect-theme {
  html#shellDemo .ds-developer-card .ds-dev-content {padding:24px!important;gap:20px!important}
  html#shellDemo .ds-developer-card .ds-dev-identity {padding-right:36px!important}
  html#shellDemo .ds-developer-card>.ds-heart {top:20px!important;right:20px!important;width:32px!important;height:32px!important;min-width:32px!important;padding:6px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important}
  html#shellDemo .ds-developer-card>.ds-heart:hover {background:#F0F2F5!important}
  html#shellDemo .ds-developer-card .ds-action[data-ds-developer-complexes] {background:var(--sl-graphite,#232A30)!important;color:#fff!important;border-color:transparent!important;border-radius:var(--sl-radius-control,20px)!important;min-height:44px!important;height:auto!important;white-space:normal!important;text-align:center!important;line-height:18px!important;padding:12px!important;font-size:13px!important}
  html#shellDemo .ds-developer-card .ds-action[data-ds-developer-complexes]:hover {background:var(--sl-graphite-hover,#161C21)!important}
  html#shellDemo #dsDeveloperDialog.ds-dialog.ds-drawer {inset:16px 16px 16px auto!important;margin:0!important;width:min(780px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:calc(100dvh - 32px)!important;max-height:calc(100dvh - 32px)!important;border-radius:var(--sl-radius-dialog,28px)!important}
  html#shellDemo #dsDeveloperDialog .ds-dialog-head {align-items:center!important;padding:24px!important;gap:18px!important}
  html#shellDemo #dsDeveloperDialog .ds-dialog-head>.ds-icon-button {width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:14px!important;background:#F3F4F6!important}
  html#shellDemo #dsDeveloperDialog .ds-dialog-head>.ds-icon-button svg {width:24px!important;height:24px!important}
  html#shellDemo #dsDeveloperDialog .fp-object-heading {min-width:0!important}
  html#shellDemo #dsDeveloperDialog h2 {overflow-wrap:anywhere}
  html#shellDemo #dsDeveloperDialog .ds-dialog-body {scrollbar-color:#B6C7EB transparent!important;scrollbar-width:thin!important}
  html#shellDemo #dsDeveloperDialog .ds-dialog-body::-webkit-scrollbar {width:6px}
  html#shellDemo #dsDeveloperDialog .ds-dialog-body::-webkit-scrollbar-thumb {background:#B6C7EB;border-radius:6px}
  html#shellDemo #dsDeveloperDialog .fp-developer-metrics {border-radius:20px!important;padding:20px!important;background:#F3F5F7!important}
  html#shellDemo #dsDeveloperDialog .fp-section-heading>span {display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:28px;padding:3px 10px;border-radius:12px!important;background:#EBF0FC!important;color:#516A9B!important;font-size:13px;font-weight:600}
  html#shellDemo #dsDeveloperDialog .dev-complex-list {display:grid;gap:12px;margin-top:16px}
  html#shellDemo #dsDeveloperDialog .dev-complex-card {display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:start;gap:16px;padding:16px;background:#F4F5F7;color:var(--sl-graphite,#232A30);border:0;border-radius:20px;text-decoration:none;transition:background 120ms}
  html#shellDemo #dsDeveloperDialog .dev-complex-card:hover {background:#EDF0F5}
  html#shellDemo #dsDeveloperDialog :is(.dev-complex-card>img,.dev-complex-placeholder) {width:104px;height:104px;object-fit:cover;border-radius:14px;display:grid;place-items:center;background:#E8EDF2}
  html#shellDemo #dsDeveloperDialog .dev-complex-copy {display:grid;gap:7px;min-width:0}
  html#shellDemo #dsDeveloperDialog .dev-complex-copy>strong {font-size:17px;line-height:23px;font-weight:600;overflow-wrap:anywhere;color:var(--sl-graphite,#232A30)!important}
  html#shellDemo #dsDeveloperDialog .dev-complex-address {font-size:12px;line-height:18px;color:var(--sl-text-muted,#646B73)}
  html#shellDemo #dsDeveloperDialog .dev-complex-tags {display:flex;flex-wrap:wrap;gap:5px 8px;color:#727C86;font-size:11px;line-height:17px}
  html#shellDemo #dsDeveloperDialog .dev-complex-tags>span+span::before {content:'·';padding-right:8px;color:#A6AEB5}
  html#shellDemo #dsDeveloperDialog .dev-complex-actions {display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;align-self:stretch;gap:18px;min-width:148px}
  html#shellDemo #dsDeveloperDialog .dev-complex-price {font-size:20px;line-height:26px;font-weight:600;white-space:nowrap;letter-spacing:-.025em}
  html#shellDemo #dsDeveloperDialog .dev-lots-button {display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 15px;border-radius:12px;background:var(--sl-graphite,#232A30);color:#fff;font-size:12px;line-height:18px;font-weight:500;white-space:nowrap}
  html#shellDemo #dsDeveloperDialog .dev-complex-card:hover .dev-lots-button {background:var(--sl-graphite-hover,#161C21)}
  html#shellDemo #dsDeveloperDialog .dev-complex-loading {margin-top:16px}
  @media(max-width:600px) {
    html#shellDemo #dsDeveloperDialog.ds-dialog.ds-drawer {inset:8px 8px 8px auto!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:22px!important}
    html#shellDemo #dsDeveloperDialog .ds-dialog-head {padding:18px 16px!important;gap:10px!important}
    html#shellDemo #dsDeveloperDialog .fp-developer-metrics {padding:14px!important;gap:10px!important;border-radius:16px!important}
    html#shellDemo #dsDeveloperDialog .fp-developer-metrics strong {font-size:20px!important}
    html#shellDemo #dsDeveloperDialog .fp-developer-metrics small {font-size:11px!important}
    html#shellDemo #dsDeveloperDialog .dev-complex-card {grid-template-columns:80px minmax(0,1fr);gap:12px;padding:12px;border-radius:16px}
    html#shellDemo #dsDeveloperDialog :is(.dev-complex-card>img,.dev-complex-placeholder) {width:80px;height:90px;border-radius:12px;grid-row:1/3}
    html#shellDemo #dsDeveloperDialog .dev-complex-actions {grid-column:2;flex-direction:row;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
    html#shellDemo #dsDeveloperDialog .dev-complex-price {font-size:18px;line-height:24px}
  }
}

/* Compact project drawer: restore the catalogue action and keep project counts legible. */
@layer sellect-theme {
html#shellDemo #dsDeveloperDialog.ds-dialog.ds-drawer{inset:8px 8px 8px auto!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 #dsDeveloperDialog .ds-dialog-head{position:relative;align-items:flex-start!important;padding:22px 62px 20px 22px!important;gap:14px!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-head>.ds-icon-button{position:absolute!important;top:16px!important;right:16px!important;margin:0!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:7px!important;background:transparent!important;border:0!important;border-radius:50%!important;box-shadow:none!important;color:var(--sl-text-muted)!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-head>.ds-icon-button:hover{background:var(--sl-surface-muted)!important;color:var(--sl-graphite)!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-head>.ds-icon-button svg{width:20px!important;height:20px!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-body{padding:0 22px 20px!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-foot{padding:16px 22px!important;border-top:1px solid var(--sl-border)!important;background:var(--sl-surface)!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-foot .ds-action{width:100%;justify-content:center;min-height:44px;border-radius:var(--sl-radius-control,20px)!important;font-size:14px!important}
html#shellDemo #dsDeveloperDialog .fp-developer-metrics{padding:17px 18px!important}
html#shellDemo #dsDeveloperDialog .fp-developer-metrics small{font-size:12px!important;line-height:1.5!important}
html#shellDemo #dsDeveloperDialog .fp-section-heading>span{display:none!important}
html#shellDemo #dsDeveloperDialog .dev-complex-card{grid-template-columns:92px minmax(0,1fr) 142px;gap:14px;padding:14px;border-radius:20px;background:var(--sl-page-bg)}
html#shellDemo #dsDeveloperDialog :is(.dev-complex-card>img,.dev-complex-placeholder){width:92px;height:104px;border-radius:14px}
html#shellDemo #dsDeveloperDialog .dev-complex-copy{gap:8px}
html#shellDemo #dsDeveloperDialog .dev-complex-copy>strong{font-size:16px;line-height:22px}
html#shellDemo #dsDeveloperDialog .dev-complex-address{font-size:13px;line-height:19px}
html#shellDemo #dsDeveloperDialog .dev-complex-tags{font-size:14px;line-height:21px;color:var(--sl-text-muted);gap:4px 9px}
html#shellDemo #dsDeveloperDialog .dev-complex-tags>span+span::before{padding-right:9px}
html#shellDemo #dsDeveloperDialog .dev-complex-actions{min-width:142px;gap:14px}
html#shellDemo #dsDeveloperDialog .dev-complex-price{font-size:19px;line-height:25px}
html#shellDemo #dsDeveloperDialog .dev-lots-button{display:grid;grid-template-columns:1fr auto 14px;align-items:center;gap:10px;box-sizing:border-box;width:142px;min-width:142px;height:40px;min-height:40px;padding:0 14px;border:1px solid color-mix(in srgb,var(--sl-accent) 36%,var(--sl-border));border-radius:var(--sl-radius-control,20px)!important;background:var(--sl-accent-soft);color:var(--sl-accent-ink);font-size:13px;line-height:18px;font-weight:400;text-align:left}
html#shellDemo #dsDeveloperDialog .dev-lots-button>strong{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:inherit!important}
html#shellDemo #dsDeveloperDialog .dev-lots-button .ds-icon{width:14px;height:14px;color:inherit}
html#shellDemo #dsDeveloperDialog .dev-complex-card:hover .dev-lots-button{background:var(--sl-accent);color:var(--sl-accent-foreground);border-color:var(--sl-accent)}
@media(max-width:600px){
html#shellDemo #dsDeveloperDialog.ds-dialog.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}
html#shellDemo #dsDeveloperDialog .ds-dialog-head{padding:20px 52px 18px 16px!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-head>.ds-icon-button{right:12px!important;top:12px!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-body{padding:0 16px 18px!important}
html#shellDemo #dsDeveloperDialog .ds-dialog-foot{padding:14px 16px!important}
html#shellDemo #dsDeveloperDialog .dev-complex-card{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px}
html#shellDemo #dsDeveloperDialog :is(.dev-complex-card>img,.dev-complex-placeholder){width:76px;height:92px;grid-row:auto}
html#shellDemo #dsDeveloperDialog .dev-complex-actions{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;min-width:0;flex-wrap:nowrap}
html#shellDemo #dsDeveloperDialog .dev-complex-price{font-size:18px}
html#shellDemo #dsDeveloperDialog .dev-lots-button{width:132px;min-width:132px}
}
}

@layer sellect-theme {
  /* A repeated card action should not turn the entire card into a dark stripe. */
  html#shellDemo .ds-developer-card .ds-action[data-ds-developer-complexes] {
    width:100%!important;max-width:100%!important;min-width:0!important;
    align-self:stretch!important;justify-self:stretch!important;margin-inline:0!important;flex:0 0 auto!important;padding-inline:18px!important;
  }
}

/* Quiet project list: photos and typography carry the hierarchy, not filled tiles. */
@layer sellect-theme {
  html#shellDemo #dsDeveloperDialog .dev-complex-list {gap:0;margin-top:6px}
  html#shellDemo #dsDeveloperDialog .dev-complex-card {
    grid-template-columns:108px minmax(0,1fr) 136px;gap:16px;padding:18px 0;
    background:transparent;border:0;border-bottom:1px solid #E8ECF0;border-radius:0;
  }
  html#shellDemo #dsDeveloperDialog .dev-complex-card:last-child {border-bottom:0}
  html#shellDemo #dsDeveloperDialog .dev-complex-card:hover {background:transparent}
  html#shellDemo #dsDeveloperDialog :is(.dev-complex-card>img,.dev-complex-placeholder) {width:108px;height:96px;border-radius:16px}
  html#shellDemo #dsDeveloperDialog .dev-complex-copy {gap:7px;padding-top:1px}
  html#shellDemo #dsDeveloperDialog .dev-complex-copy>strong {font-size:17px;line-height:23px}
  html#shellDemo #dsDeveloperDialog .dev-complex-address {font-size:13px;line-height:19px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  html#shellDemo #dsDeveloperDialog .dev-complex-tags {font-size:13px;line-height:19px;color:#7B8490}
  html#shellDemo #dsDeveloperDialog .dev-complex-actions {min-width:136px;gap:16px}
  html#shellDemo #dsDeveloperDialog .dev-complex-price {font-size:18px;line-height:24px;color:var(--sl-graphite)!important;font-weight:600}
  html#shellDemo #dsDeveloperDialog .dev-lots-button {display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:124px;min-width:124px;height:36px;min-height:36px;padding:0 14px;font-size:12px}
  html#shellDemo #dsDeveloperDialog .dev-lots-button .ds-icon {width:16px;height:16px}
  html#shellDemo #dsDeveloperDialog .ds-dialog-foot {justify-content:center!important;padding:14px 22px!important}
  html#shellDemo #dsDeveloperDialog .ds-dialog-foot .ds-action {width:fit-content!important;max-width:100%;padding-inline:20px!important}
  @media(max-width:600px) {
    html#shellDemo #dsDeveloperDialog .dev-complex-card {grid-template-columns:80px minmax(0,1fr);gap:10px 14px;padding:16px 0}
    html#shellDemo #dsDeveloperDialog :is(.dev-complex-card>img,.dev-complex-placeholder) {width:80px;height:96px;grid-row:1/3;border-radius:14px}
    html#shellDemo #dsDeveloperDialog .dev-complex-actions {grid-column:2;flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
    html#shellDemo #dsDeveloperDialog .dev-complex-price {font-size:17px}
    html#shellDemo #dsDeveloperDialog .dev-lots-button {width:116px;min-width:116px}
  }
}
