#cards.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;grid-auto-rows:1fr}
#cards>article,#exclusiveCards>article{scroll-margin-top:20px}
.portfolio-entry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #dededb;border-radius:999px;background:#f4f4f2;color:#343432;text-decoration:none;font-size:16px;font-weight:650}
.portfolio-entry[hidden]{display:none!important}.portfolio-entry:focus-visible{outline:3px solid #ac4900;outline-offset:3px}
#cards.cards.list-view{display:grid;grid-template-columns:minmax(0,1fr)}
#cards .card.compact-request{background:#fff!important;border-color:#e3e3e0!important}
#cards .card.compact-request::before{display:none!important}
.request-full{display:grid!important;gap:16px}
.request-full .cr-heading h3{font-size:1.4rem;line-height:1.3;margin:0}
.cr-full-district{grid-column:1/-1;font-size:1rem;overflow-wrap:anywhere;color:#5c5c59}
.request-full .cr-budget{padding:12px 16px}
.request-full .cr-meta{flex-wrap:wrap}
.cr-description h4{font-size:1rem;margin:0 0 8px}
.request-full .cr-description p{font-size:1rem!important;white-space:pre-wrap;margin:0!important}
.cr-full-owner{font-size:1rem;overflow-wrap:anywhere}
.cr-full-tools{display:flex;gap:8px;flex-wrap:wrap}
.request-full :is(.actions,.cr-full-tools) button{border-radius:999px!important}
@media(max-width:900px){#cards.cards{grid-template-columns:minmax(0,1fr)}}
#cards .card.compact-request{display:grid!important;grid-template-rows:5rem 3.6rem 2rem 2.6rem 1.4rem 2.8rem 2rem;gap:7px;height:25rem;padding:18px 20px!important;border-radius:20px!important;min-width:0;align-content:start}
#cards .compact-request>*{min-width:0;margin:0!important}
.cr-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;align-content:start}
#cards .cr-heading h3{font-size:1.22rem;line-height:1.25;margin:0;font-weight:800}
.cr-district{grid-column:1/-1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#5c5c59;font-size:1rem;line-height:1.3}
.cr-availability{font-size:.875rem;line-height:1.3;padding:5px 10px;border-radius:999px;align-self:start;background:#f2f2f0;color:#585853;white-space:nowrap}
.cr-availability.active{background:#eaf8f1;color:#18774b}.cr-availability.expiring{background:#fff1de;color:#8c4b00}
.cr-budget{display:flex;flex-direction:column;justify-content:center;background:#f6f6f4;border-radius:12px;padding:8px 12px}
.cr-caption{font-size:.875rem;color:#676761;line-height:1.3}
.cr-budget strong{font-size:clamp(1.1rem,1.5vw,1.45rem);line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cr-short-budget{display:none}
.cr-meta{display:flex;gap:14px;align-items:center;font-size:1rem;line-height:1.25}.cr-meta span:first-child{font-weight:700;white-space:nowrap}
.cr-progress{display:flex;flex-wrap:wrap;gap:5px;align-content:center;font-size:.875rem;line-height:1.2}
.cr-stage{padding:5px 8px;background:#f1f1ef;border-radius:999px}.cr-positive{background:#eaf8f1;color:#166b47}
.cr-owner{font-size:.875rem;color:#666660;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cards .cr-actions{display:flex;align-items:stretch;gap:8px}#cards .cr-actions button{font-size:1rem;line-height:1.2;min-height:42px;padding:9px 15px;border-radius:999px}
.cr-tools{display:flex;gap:8px;align-items:center;font-size:.875rem;color:#666660;min-width:0}
#cards .cr-tools button{min-width:0;flex:0 1 auto;white-space:normal}
#cards .cr-tools button,#cards .cr-progress button{font-size:.875rem;line-height:1.2;padding:6px 10px;border-radius:999px;margin:0;min-height:32px}
.request-info-dialog{width:min(800px,94vw);max-height:90dvh;padding:22px!important;border-radius:22px;overflow:auto}
.request-info-dialog>*{padding-left:0;padding-right:0}.request-info-dialog .cr-dialog-head h2{padding:0}
.request-info-dialog .card{padding:18px!important;overflow:visible}
#cards .compact-request button{border-radius:999px!important}
.cr-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.cr-dialog-head h2{font-size:1.3rem;margin:0}.cr-dialog-head button{border-radius:999px;min-height:44px}
.request-info-dialog .card p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem}.request-info-dialog .card .sub{overflow-wrap:anywhere}
@media(min-width:1000px){
 #cards.cards.list-view{grid-auto-rows:1fr}
 #cards.cards.list-view .compact-request{grid-template-columns:minmax(160px,1.2fr) minmax(200px,1.25fr) minmax(140px,1fr) minmax(230px,1.1fr);grid-template-rows:3.6rem 2rem 1.5rem;height:10rem;column-gap:14px;padding:14px 18px!important}
 #cards.list-view .cr-heading{grid-column:1;grid-row:1/3;display:flex;flex-direction:column}.cr-heading .cr-availability{justify-self:end}
 #cards.list-view .cr-heading h3{font-size:1.1rem}#cards.list-view .cr-availability{order:3;align-self:start}
 #cards.list-view .cr-budget{grid-column:2;grid-row:1}#cards.list-view .cr-budget strong{font-size:1.05rem}
 #cards.list-view .cr-full-budget{display:none}#cards.list-view .cr-short-budget{display:inline}
 #cards.list-view .cr-meta{grid-column:2;grid-row:2;font-size:.9rem}
 #cards.list-view .cr-progress{grid-column:3;grid-row:1/3;align-content:start}
 #cards.list-view .cr-owner{grid-column:1/4;grid-row:3}
 #cards.list-view .cr-actions{grid-column:4;grid-row:1;align-items:start}#cards.list-view .cr-actions button{font-size:.9rem;padding:10px 12px}
 #cards.list-view .cr-tools{grid-column:4;grid-row:2/4;flex-wrap:wrap;align-content:start}
}
@media(max-width:600px){#cards .card.compact-request{padding:16px;height:28rem;grid-template-rows:5.5rem 4.5rem 3rem 3.5rem 1.5rem 2.8rem 2.5rem}.cr-heading{grid-template-columns:1fr}.cr-heading .cr-availability{grid-column:1;grid-row:2;justify-self:start}.cr-district{grid-row:3;-webkit-line-clamp:1}.cr-budget strong{font-size:1.1rem}#cards .cr-actions button{font-size:.95rem;padding:9px 12px}.cr-meta{font-size:.95rem}}
@media(prefers-reduced-motion:reduce){.compact-request *{transition:none!important}}
/* Contract objects: same 10rem row rhythm as demand, complete content in the dialog. */
#exclusiveCards.list-view{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px}
#exclusiveCards.list-view .compact-exclusive{display:grid!important;grid-template-columns:minmax(180px,1.3fr) minmax(160px,1fr) minmax(180px,1.2fr) 170px;grid-template-rows:3.6rem 2rem 1.5rem;gap:7px 16px;height:10rem;padding:14px 18px!important;border:1px solid #e3e3e0!important;border-radius:20px!important;background:#fff!important;align-items:center;min-width:0}
#exclusiveCards.list-view .compact-exclusive::before{display:none!important}
#exclusiveCards.list-view .compact-exclusive>*{min-width:0;margin:0!important}
#exclusiveCards .ce-title{grid-column:1;grid-row:1/3}
#exclusiveCards .ce-title h3{font-size:1.1rem;line-height:1.25;margin:0 0 6px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#exclusiveCards .ce-title>div{font-size:.9rem;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#exclusiveCards .ce-price{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:8px}
#exclusiveCards .ce-price strong{font-size:1.15rem;line-height:1.3}
#exclusiveCards .ce-price span{font-size:1rem}
#exclusiveCards .ce-address{grid-column:3;grid-row:1/3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:1rem;line-height:1.35}
#exclusiveCards .ce-owner{grid-column:1/4;grid-row:3;font-size:.875rem;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#exclusiveCards .ce-details{grid-column:4;grid-row:1;align-self:start}
#exclusiveCards.list-view .compact-exclusive>.actions{grid-column:4;grid-row:2/4;display:flex;align-self:start}
#exclusiveCards .compact-exclusive button{border-radius:999px!important;min-height:40px;font-size:.9rem;padding:9px 14px;white-space:normal}
.filters :is(#fo,#exo)[hidden]{display:none!important}
.filters:has(#exo[hidden]),#requestsPage>.filters:has(#fo[hidden]){grid-template-columns:minmax(160px,1.5fr) repeat(4,minmax(100px,1fr)) auto}
@media(max-width:1000px){
 #exclusiveCards.list-view .compact-exclusive{grid-template-columns:minmax(0,1fr) minmax(120px,.7fr);grid-template-rows:auto auto auto auto;height:auto;min-height:180px}
 #exclusiveCards .ce-title{grid-column:1;grid-row:1}#exclusiveCards .ce-price{grid-column:2;grid-row:1}
 #exclusiveCards .ce-address{grid-column:1/-1;grid-row:2}#exclusiveCards .ce-owner{grid-column:1/-1;grid-row:3}
 #exclusiveCards .ce-details{grid-column:1;grid-row:4;justify-self:start}#exclusiveCards.list-view .compact-exclusive>.actions{grid-column:2;grid-row:4}
 .filters:has(#exo[hidden]),#requestsPage>.filters:has(#fo[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
}
