.palma-pills{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;max-width:100%;padding:3px 0 8px;align-items:center}
.palma-pill{appearance:none;border:0;background:transparent;color:#213b30;font:500 var(--palma-chip-font,12px)/1.3 var(--palma-font-body,'Golos Text',sans-serif);min-height:44px;padding:0;flex-shrink:0;cursor:pointer}
.palma-pill span{display:block;border:1px solid #e4ebe7;background:#f0f5f3;border-radius:30px;padding:7px 13px;white-space:nowrap}
.palma-pill[aria-pressed=true] span{background:#176649;border-color:#176649;color:white}
.palma-pill:focus-visible{outline:2px solid #176649;outline-offset:2px;border-radius:24px}
body.palma-catalog-page .market-workspace>.palma-page-head{margin-bottom:12px}
.market-workspace>.palma-pills{margin:0;padding-bottom:0}
.market-workspace>[data-market-filters]{margin:0 0 4px}
.market-agency-notice{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:12px 16px;margin:8px 0 12px;border:1px solid #d5e2db;border-radius:14px;background:#eaf5ef;font-size:13px;overflow-wrap:anywhere}
.market-agency-notice>span{min-width:0}.market-agency-notice a{color:#176649}.market-agency-notice .editor-button{min-height:44px}
.directory-compact-filters{display:flex;align-items:flex-start;gap:8px;min-width:0}
.directory-filter-pills{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0;flex:1}
.directory-filter-group{display:flex;position:relative;isolation:isolate;flex:none;color:#213b30}
.directory-filter-group:before{content:'';position:absolute;inset:7px 0;background:#f0f5f3;border:1px solid #e4ebe7;border-radius:999px;z-index:-1}
.directory-filter-group.is-active{color:white}.directory-filter-group.is-active:before{background:#176649;border-color:#176649}
body .home-ui .directory-filter-group>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;background:transparent;padding:7px 13px;border-radius:999px;color:inherit;white-space:nowrap;font:500 var(--palma-chip-font,12px)/1.3 var(--palma-font-body,'Golos Text',sans-serif);cursor:pointer}
body .home-ui .directory-filter-group.is-active>button:first-child{padding-right:0}
body .home-ui .directory-filter-group>.directory-filter-clear{width:44px;min-width:44px;padding:0;font-size:20px}
body .home-ui .directory-reset{flex:none;min-height:44px;padding:7px 4px;border:0;background:transparent;color:#176649;font:500 var(--palma-chip-font,12px)/1.3 var(--palma-font-body,'Golos Text',sans-serif);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.directory-compact-filters button:focus-visible{outline:2px solid #176649;outline-offset:-2px}
body .home-ui .market-workspace>.market-result-count{margin:4px 0 12px;padding:0;border:0;border-radius:0;min-height:0;background:transparent;box-shadow:none;font-size:12px;color:#52675a}
.palma-catalog-page .market-workspace .market-catalog-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:stretch}
.market-card--detailed{display:flex;flex-direction:column;min-width:0;border:1px solid #dce6e0;border-radius:18px;background:white;overflow:hidden;transition:box-shadow .15s}
.market-card--detailed:hover{box-shadow:0 6px 20px #143c2910}
.market-card__link{display:flex;flex:1;flex-direction:column;gap:16px;padding:20px;color:inherit;text-decoration:none;min-width:0}
.market-card__link:focus-visible{outline:2px solid #176649;outline-offset:-3px;border-radius:18px}
.market-card__identity{display:flex;gap:14px;align-items:center;min-width:0}
.market-card__avatar{display:grid;place-items:center;width:80px;height:80px;background:#e6f0e9;border-radius:50%;font-size:24px;color:#176649;overflow:hidden;flex-shrink:0}
.market-card__avatar img{width:100%;height:100%;object-fit:cover}
.market-card__copy{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
body:not(.palma-home-page) main .market-card__copy h2{margin:0;font:500 var(--palma-card-title-font,18px)/1.35 var(--palma-font-body,'Golos Text',sans-serif)!important;color:#213b30}
.market-card__role,.market-card__affiliation,.market-card__year{font-size:12px;line-height:1.45;color:#52675a}
.market-card__affiliation{color:#176649}
.market-card__facts{display:grid;gap:11px;margin:0}
.market-card__facts dt{font-size:11px;line-height:1.4;color:#52675a;margin-bottom:3px}
.market-card__facts dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.market-card__more{display:inline-block;white-space:nowrap;font-size:12px;font-weight:500;color:#176649}
.market-card__badges{display:flex;flex-wrap:wrap;gap:6px}
.market-card__badges>span{padding:5px 9px;border-radius:999px;background:#e8f3ed;color:#176649;font-size:11px}
body .home-ui .market-card__address{display:flex;gap:7px;margin:0;font-size:13px;line-height:1.5}
.market-card__address svg{width:16px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}
.market-card__address span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body .home-ui .market-card__stats{margin:auto 0 0;font-size:13px;line-height:1.5;font-weight:500;color:#176649}
.market-card__stats span{color:#52675a;font-weight:400}
.market-card__actions{display:flex;gap:8px;padding:0 20px 20px}
body .home-ui .market-card__actions>.editor-button{flex:1;min-width:0;min-height:44px;padding:10px 8px;font-size:13px;line-height:1.3;text-align:center;justify-content:center}
@media(min-width:768px){.palma-catalog-page .market-workspace .market-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.directory-filter-pills{flex-wrap:wrap;overflow:visible}}
@media(min-width:1280px){.palma-catalog-page .market-workspace .market-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.palma-catalog-page .market-workspace .palma-pill{font-size:11px}.market-card__link{padding:18px;gap:14px}.market-card__avatar{width:76px;height:76px}body .home-ui .market-card__copy h2{font-size:16px}.market-card__role,.market-card__affiliation,.market-card__year{font-size:11px}.market-card__facts dd{font-size:13px}.market-card__actions{padding:0 18px 18px;gap:10px}}

.market-card--reference .market-card__avatar{background:#fff;border-radius:12px}.market-card--reference .market-card__avatar img{object-fit:contain}.market-card__reference-description{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:12px 0;color:#52675a}
.market-card--compact[href^="/agencies/"] .market-card__avatar img{object-fit:contain;background:#fff}
.market-card--join{border:1px dashed #a9cabb;background:#edf5f0}
body .home-ui .market-agency-join{appearance:none;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:16px;width:100%;min-height:260px;padding:24px;border:0;border-radius:18px;background:transparent;color:#213b30;text-align:center;cursor:pointer;font:400 13px/1.5 var(--palma-font-body,'Golos Text',sans-serif)}
.market-agency-join strong{max-width:240px;font-size:18px;line-height:1.35;font-weight:500}.market-agency-join>span:last-child{max-width:240px;color:#52675a}.market-agency-join__plus{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#ffe451;color:#164c3b;font-size:36px;line-height:1}
.market-agency-join:focus-visible{outline:2px solid #176649;outline-offset:-4px}
.market-agency-application{width:calc(100% - 32px);max-width:520px;max-height:85dvh;overflow:auto}.market-agency-application .request-form{display:grid;gap:12px}.market-agency-application .editor-field{margin:0}.market-agency-application .ui-dialog-head h2{font-size:20px}
