/* Existing theme tokens keep the search inside the Штаб workspace. */
.cat-page .cat-page-hdr{padding:16px 22px 12px;border-bottom:0}
.cat-page .cat-page-title{margin:0;color:var(--txt-hi);font:650 20px/1.35 var(--font-ui);letter-spacing:-.02em}
.smart-search{width:100%;min-width:0;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 22px 28px;color:var(--txt);font:14px/1.55 var(--font-ui)}
.smart-search-form,.smart-search-results{width:100%;max-width:980px;margin-inline:auto;min-width:0}
.smart-search-label{display:block;font-size:23px;font-weight:650;line-height:1.35;letter-spacing:-.025em;color:var(--txt-hi)}
.smart-search-intro{max-width:660px;margin:8px 0 16px;color:var(--txt-lo);font-size:14px;line-height:1.6}
.smart-search-composer{padding:2px;border:1px solid var(--steel-hi);border-radius:12px;background:var(--bg2);transition:border-color .15s}
.smart-search-composer:focus-within{border-color:var(--gold)}
.smart-search-composer textarea{display:block;width:100%;max-width:100%;min-height:84px;resize:vertical;max-height:210px;box-sizing:border-box;border:0;border-radius:10px;outline:0;padding:13px 14px 8px;background:transparent;color:var(--txt-hi);font:15px/1.6 var(--font-ui)}
.smart-search-composer textarea::placeholder{color:var(--txt-lo);opacity:1}
.smart-search-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 9px 9px 14px}
.smart-search-compose-footer>span{color:var(--txt-lo);font-size:12px}
.smart-search button{cursor:pointer;font-family:var(--font-ui)}
.smart-search button:disabled{cursor:default;opacity:.55}
.smart-search-submit{display:flex;align-items:center;justify-content:center;gap:16px;min-height:44px;border:0;border-radius:8px;padding:11px 18px;background:var(--gold);color:var(--on-accent,#14171d);font-size:13px;font-weight:650;line-height:1.4;white-space:nowrap}
.smart-search-submit:hover:not(:disabled){filter:brightness(1.08)}
.smart-search-examples{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:var(--txt-lo)}
.smart-search-examples button{min-height:32px;padding:5px 0;border:0;background:transparent;color:var(--txt);font-size:12px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--steel-hi)}
.smart-search-examples button:hover{color:var(--gold)}
.smart-search-results{margin-top:24px}
.smart-search-start{max-width:550px;padding:18px 0 0}
.smart-search-start h2,.smart-search-result-heading h2{margin:0;color:var(--txt-hi);font-size:16px;font-weight:650;line-height:1.5;letter-spacing:-.01em}
.smart-search-start p{margin:7px 0 0;color:var(--txt-lo);font-size:14px;line-height:1.7}
.smart-search-progress{display:flex;align-items:center;gap:12px;padding:18px;background:var(--bg2);border-radius:10px;min-width:0}
.smart-search-progress strong{display:block;color:var(--txt-hi);font-size:14px;font-weight:600}
.smart-search-progress p{margin:3px 0 0;color:var(--txt-lo);font-size:12px}
.smart-search-progress button{margin-left:auto;flex:none;background:transparent;border:0;color:var(--txt);font-size:13px;min-height:44px;padding:8px}
.smart-search-progress-dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--gold);animation:smart-search-pulse 1.5s ease-in-out infinite}
@keyframes smart-search-pulse{50%{opacity:.3}}
.smart-search-error{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;border-radius:8px;background:var(--bg2);color:var(--txt-hi)}
.smart-search-error p{margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.smart-search-error button{min-height:40px;border:0;background:transparent;color:var(--gold);font-size:13px;flex:none}
.smart-search-notice{margin:0 0 14px;color:var(--txt-lo);font-size:13px}
.smart-search-criteria{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.smart-search-criteria>span{font-size:12px;color:var(--txt-lo);margin-right:2px}
.smart-search-criteria button{display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 10px;border:1px solid var(--steel-hi);border-radius:6px;color:var(--txt-hi);background:var(--bg2);font-size:12px;line-height:1.4;max-width:100%;overflow-wrap:anywhere;text-align:left}
.smart-search-criteria button .ui-icon{flex:none;color:var(--txt-lo)}
.smart-search-criteria button:hover{border-color:var(--gold)}
.smart-search-questions{margin:0 0 18px;font-size:13px;color:var(--txt-lo)}
.smart-search-questions summary{cursor:pointer;min-height:32px;line-height:32px;width:fit-content;max-width:100%}
.smart-search-questions ul{padding-left:20px;margin:4px 0 0;line-height:1.7}
.smart-search-result-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:18px 0 12px}
.smart-search-result-heading>span{color:var(--txt-lo);font-size:13px;flex:none;font-variant-numeric:tabular-nums}
.smart-search-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.smart-candidate{display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px;background:var(--bg2);border:1px solid var(--steel-hi);border-radius:10px}
.smart-candidate-head{display:flex;align-items:center;gap:11px;min-width:0}
.smart-candidate-avatar{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--surface-raised);color:var(--txt-hi);font-size:18px;font-weight:600}
.smart-candidate-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.smart-candidate-identity{flex:1;min-width:0}
.smart-candidate-identity h3{margin:0;color:var(--txt-hi);font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.smart-candidate-identity p{margin:3px 0 0;color:var(--txt-lo);font-size:12px;overflow-wrap:anywhere}
.smart-candidate-rating{text-align:right;max-width:100px;flex:none;font-size:14px;color:var(--txt-hi);font-variant-numeric:tabular-nums}
.smart-candidate-rating small{display:block;color:var(--txt-lo);font-size:11px;line-height:1.5}
.smart-candidate-skills{margin:0;color:var(--txt);font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.smart-candidate-reasons{list-style:none;margin:0;padding:0;color:var(--txt);font-size:13px;line-height:1.6}
.smart-candidate-reasons li{display:flex;gap:8px;align-items:baseline;overflow-wrap:anywhere}
.smart-candidate-reasons li>span{color:var(--gold);flex:none}
.smart-candidate-missing,.smart-candidate-unconfirmed{margin:0;color:var(--txt-lo);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.smart-candidate-work{display:flex;align-items:baseline;gap:7px;color:var(--txt-lo);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.smart-candidate-work .ui-icon{flex:none;align-self:flex-start;margin-top:3px}
.smart-candidate-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:auto;padding-top:2px}
.smart-candidate-rate{font-size:13px;font-weight:600;color:var(--txt-hi);font-variant-numeric:tabular-nums}
.smart-candidate-footer button{display:flex;align-items:center;gap:10px;min-height:36px;border:0;padding:5px 0;background:transparent;color:var(--gold);font-size:12px;font-weight:600}
.smart-search-empty,.smart-search-result-note{margin:14px 0 0;color:var(--txt-lo);font-size:13px;line-height:1.65}
@media(max-width:800px){.smart-search-candidates{grid-template-columns:minmax(0,1fr)}.smart-search{padding:20px}.smart-search-tabs{padding-inline:20px}}
@media(max-width:480px){
  .cat-page .cat-page-hdr{padding:14px 16px 10px}.cat-page .cat-page-title{font-size:18px}.smart-search-tabs{padding:0 16px 10px}.smart-search-tabs button{min-height:44px;padding:9px 12px}
  .smart-search{padding:18px 16px 24px;scrollbar-gutter:auto}.smart-search-label{font-size:20px}.smart-search-intro{font-size:13px;margin-bottom:12px}.smart-search-composer textarea{font-size:16px;min-height:112px;padding:10px 11px 6px;resize:none}.smart-search-compose-footer{padding:5px 7px 7px;gap:6px}.smart-search-compose-footer>span{display:none}.smart-search-submit{width:100%;justify-content:space-between;padding-inline:14px}.smart-search-examples{gap:1px 12px}.smart-search-examples>span{display:none}.smart-search-examples button{min-height:44px;font-size:12px}.smart-search-results{margin-top:18px}.smart-search-start{padding-top:8px}
  .smart-search-criteria button{min-height:44px}.smart-search-criteria>span{flex-basis:100%}.smart-search-questions summary{min-height:44px;line-height:44px}.smart-search-progress{align-items:flex-start;padding:14px;gap:10px}.smart-search-progress-dot{margin-top:7px}.smart-search-progress button{align-self:center}.smart-search-progress strong{font-size:13px}.smart-search-progress p{display:none}.smart-search-error{flex-wrap:wrap}.smart-search-error p{flex-basis:100%}.smart-search-error button{padding:0;min-height:44px}
  .smart-candidate{padding:15px;gap:10px}.smart-candidate-head{gap:9px}.smart-candidate-avatar{width:40px;height:40px}.smart-candidate-identity h3{font-size:15px}.smart-candidate-rating{max-width:77px}.smart-candidate-footer{gap:4px 12px}.smart-candidate-footer button{min-height:44px;font-size:13px}.smart-search-result-heading h2{font-size:15px}
}
@media(prefers-reduced-motion:reduce){.smart-search-progress-dot{animation:none}.smart-search-composer{transition:none}}

.smart-profile-error{margin:44px 20px 24px;padding:16px;border-radius:8px;background:var(--surface-raised);color:var(--txt);font:14px/1.6 var(--font-ui)}
.smart-profile-error p{margin:0 0 8px}.smart-profile-error button{min-height:44px;border:0;background:transparent;color:var(--gold);font:600 13px var(--font-ui);cursor:pointer}

@media(pointer:coarse){.smart-search-tabs button,.smart-search-examples button,.smart-search-criteria button,.smart-candidate-footer button,.smart-search-error button,.smart-search-progress button{min-height:44px}}

.smart-search-disclosure{margin:8px 0 0;color:var(--txt-lo);font-size:12px;line-height:1.5}

/* A completed query yields the first screen to the candidates. Editing restores the full composer. */
.smart-search.has-results{padding-top:18px}
.smart-search.has-results .smart-search-label{font-size:18px}
.smart-search.has-results .smart-search-intro,.smart-search.has-results .smart-search-examples{display:none}
.smart-search.has-results .smart-search-composer{margin-top:10px}
.smart-search.has-results .smart-search-composer textarea{min-height:58px;height:58px;max-height:90px;padding-block:9px 5px}
.smart-search.has-results .smart-search-results{margin-top:16px}
.smart-search.has-results .smart-search-result-heading{margin-top:12px}
@media(max-width:480px){
  .smart-search.has-results{padding-top:12px}
  .smart-search.has-results .smart-search-label{font-size:17px}
  .smart-search.has-results .smart-search-composer{margin-top:8px}
  .smart-search.has-results .smart-search-composer textarea{min-height:54px;height:54px;max-height:54px;font-size:16px;line-height:1.35;padding-block:7px 3px}
  .smart-search.has-results .smart-search-compose-footer{padding-block:3px 5px}
  .smart-search.has-results .smart-search-submit{min-height:44px;padding-block:8px}
  .smart-search.has-results .smart-search-results{margin-top:12px}
  .smart-search.has-results .smart-search-criteria{gap:5px;margin-bottom:6px}
  .smart-search.has-results .smart-search-criteria>span{display:none}
  .smart-search.has-results .smart-search-questions{margin-bottom:8px}
  .smart-search.has-results .smart-search-questions summary{min-height:44px;line-height:44px}
  .smart-search.has-results .smart-search-result-heading{margin-top:10px;margin-bottom:10px}
}

@media(max-width:480px){
  .smart-search.has-results .smart-search-criteria{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;padding:2px 2px 7px;scrollbar-width:thin}
  .smart-search.has-results .smart-search-criteria button{flex:none;max-width:none;white-space:nowrap;min-height:44px}
}

/* Unified performers slide: one query, one directory, people and crews together. */
.performers-page .cat-page-hdr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 24px;min-height:66px}
.performers-page .cat-page-title{min-width:0;margin:0;font-size:21px;letter-spacing:-.02em}
.performers-page .cat-page-hdr .catalog-modal-close{position:static;display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:var(--surface-raised);color:var(--txt);transform:none}
.performers-page .cat-page-hdr .catalog-modal-close:hover{color:var(--txt-hi);background:var(--steel)}
.smart-search.is-unified{padding:8px 24px 24px}
.smart-search.is-unified .smart-search-label{font-size:14px;font-weight:600;letter-spacing:0}
.smart-search.is-unified .smart-search-composer{margin-top:7px}
.smart-search.is-unified .smart-search-composer textarea{font-size:15px;min-height:58px;height:58px;max-height:120px;padding:10px 13px 5px;line-height:1.45}
.smart-search.is-unified .smart-search-compose-footer{padding:3px 8px 7px 13px}
.smart-search.is-unified .smart-search-submit{min-height:44px;padding:9px 16px;gap:14px}
.smart-search.is-unified .smart-search-disclosure{margin-top:7px;font-size:11px}
.smart-search.is-unified .smart-search-results{margin-top:16px}
.smart-search.is-unified .smart-search-criteria{flex-wrap:wrap;overflow:visible;max-width:100%;padding:0;margin-bottom:8px}
.smart-search.is-unified .smart-search-criteria button{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
.smart-search.is-unified .smart-search-questions{margin-bottom:6px}
.smart-search.is-unified .smart-search-questions summary{min-height:44px;line-height:44px}
.smart-search-reset{min-height:44px;margin:0 0 8px;padding:6px 0;border:0;background:transparent;color:var(--gold);font-size:12px}
.performers-directory{min-width:0}
.performers-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-width:0;margin-bottom:12px;align-items:start}
.performers-name-search{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid var(--steel-hi);border-radius:8px;background:var(--bg2);padding:0 11px;min-height:44px}
.performers-name-search .ui-icon{flex:none;color:var(--txt-lo)}
.performers-name-search:focus-within{border-color:var(--gold)}
.performers-name-search input{min-width:0;width:100%;height:40px;padding:0;border:0;outline:0;background:transparent;color:var(--txt-hi);font:14px var(--font-ui)}
.performers-name-search input::placeholder{color:var(--txt-lo)}
.performers-filters{min-width:0}
.performers-filters summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--steel-hi);border-radius:8px;background:var(--bg2);cursor:pointer;font-size:13px;color:var(--txt);list-style:none}
.performers-filters summary::-webkit-details-marker{display:none}
.performers-filters[open]{grid-column:1 / -1}
.performers-filters[open] summary{width:fit-content}
.performers-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0 0}
.performers-filter-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;color:var(--txt-lo);font-size:12px}
.performers-filter-fields select{width:100%;min-width:0;min-height:44px;border:1px solid var(--steel-hi);border-radius:7px;padding:8px 10px;background:var(--bg2);color:var(--txt);font:13px var(--font-ui)}
.performers-kind{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 14px;min-width:0}
.performers-kind button{min-height:44px;min-width:0;padding:8px 13px;border:0;border-radius:7px;background:transparent;color:var(--txt-lo);font:600 13px var(--font-ui);cursor:pointer}
.performers-kind button[aria-pressed=true]{background:var(--surface-raised);color:var(--txt-hi)}
.performers-kind button:focus-visible,.performers-filters summary:focus-visible,.performers-filter-fields select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.performers-groups{display:grid;gap:20px;grid-template-columns:minmax(0,1fr);align-items:start;min-width:0}
.performers-groups.is-mixed{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.performers-group{min-width:0}
.performers-group-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px;min-width:0}
.performers-group-heading h2{margin:0;color:var(--txt-hi);font-size:15px;font-weight:650;line-height:1.4}
.performers-group-heading>span{color:var(--txt-lo);font-size:12px;font-variant-numeric:tabular-nums;flex:none}
.performers-groups.is-mixed .smart-search-candidates{grid-template-columns:minmax(0,1fr)}
.performers-loading,.performers-limit{color:var(--txt-lo);font-size:13px;line-height:1.6;margin:14px 0}
.performers-empty{padding:14px 0 22px;min-width:0}
.performers-empty h2{font-size:16px;font-weight:600;color:var(--txt-hi);margin:0 0 6px}
.performers-empty p{color:var(--txt-lo);font-size:13px;line-height:1.6;margin:0}
.performers-error{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;margin-bottom:12px;border-radius:8px;background:var(--bg2);color:var(--txt);font-size:13px}
.performers-error p{margin:0;min-width:0}
.performers-error button{border:0;min-height:44px;background:transparent;color:var(--gold);font-size:13px}
.smart-candidate-availability{margin:0;color:var(--txt-lo);font-size:12px;line-height:1.5}
@media(max-width:800px){.performers-groups.is-mixed{grid-template-columns:minmax(0,1fr);gap:22px}}
@media(max-width:480px){
  .performers-page .cat-page-hdr{padding:10px 16px 6px;min-height:58px}.performers-page .cat-page-title{font-size:19px}
  .smart-search.is-unified,.smart-search.is-unified.has-results{padding:6px 16px 20px}
  .smart-search.is-unified .smart-search-composer textarea{font-size:16px;min-height:62px;height:62px;max-height:110px;padding:8px 11px 4px;line-height:1.4}
  .smart-search.is-unified .smart-search-submit{min-height:44px;padding-block:10px}
  .smart-search.is-unified .smart-search-results{margin-top:14px}
  .smart-search.is-unified .smart-search-criteria{flex-wrap:wrap;overflow:visible;padding:0;gap:5px}
  .smart-search.is-unified .smart-search-criteria button{flex:0 1 auto;max-width:100%;white-space:normal;min-height:44px}
  .smart-search.is-unified .smart-search-questions summary{min-height:44px;line-height:44px}
  .performers-name-search{padding-inline:9px;min-height:44px}.performers-name-search input{font-size:16px;height:42px}
  .performers-filters summary{min-height:44px;padding-inline:10px}.performers-filters summary>span{display:none}
  .performers-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.performers-filter-fields label:last-child{grid-column:1 / -1}.performers-filter-fields select{font-size:14px;min-height:44px}
  .performers-kind{gap:3px;margin-bottom:12px}.performers-kind button{min-height:44px;padding-inline:11px;font-size:13px}
  .smart-search-reset{min-height:44px}.performers-error button{min-height:44px}
}
.performers-filter-note{margin:0 0 12px;color:var(--txt-lo);font-size:12px;line-height:1.55}
/* Keep candidates first; the full interpreted brief remains one disclosure away. */
.smart-search-condition-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 10px;min-width:0}
.smart-search-conditions{flex:1;min-width:0;font-size:13px;color:var(--txt)}
.smart-search-conditions>summary{min-height:44px;line-height:44px;cursor:pointer;width:fit-content;max-width:100%;color:var(--txt-hi);overflow-wrap:anywhere}
.smart-search-condition-bar>.smart-search-reset{flex:none;min-height:44px;margin:0;padding:6px 0;white-space:nowrap}
.smart-search-conditions:not([open])>.smart-search-criteria,.smart-search-conditions:not([open])>.smart-search-questions{display:none}
.smart-search-conditions[open]>.smart-search-criteria{padding-top:6px}
.performers-filters:not([open])>.performers-filter-fields{display:none}
@media(pointer:coarse){.smart-search.is-unified .smart-search-submit,.performers-name-search,.performers-filters summary,.performers-filter-fields select,.performers-kind button,.smart-search-reset,.smart-search-options summary{min-height:44px}}

/* Contact is the direct next step; profile stays available beside it. */
.smart-candidate-footer{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.smart-candidate-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;min-width:0}
.smart-candidate-actions .smart-candidate-profile{flex:0 1 auto;min-height:44px;max-width:100%;font-size:12px;color:var(--txt-lo);overflow-wrap:anywhere;text-align:left}
.smart-candidate-actions .smart-candidate-profile:hover:not(:disabled){color:var(--txt-hi)}
.smart-candidate-actions .smart-candidate-contact{display:flex;justify-content:center;align-items:center;gap:7px;flex:none;min-height:44px;padding:10px 13px;border:0;border-radius:7px;background:var(--gold);color:var(--on-accent);font:600 13px/1.4 var(--font-ui)}
.smart-candidate-actions .smart-candidate-contact .ui-icon{flex:none}
.smart-candidate-actions .smart-candidate-contact:hover:not(:disabled){filter:brightness(1.06)}
.smart-candidate-actions button:disabled{opacity:.5;cursor:default}
.smart-candidate-contact-progress{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--txt-lo);font-size:12px}
.smart-candidate-contact-progress button{min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--txt);font:600 12px var(--font-ui)}
.smart-candidate-contact-error{margin:0;color:var(--txt);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:480px){.smart-candidate-actions{gap:6px 10px}.smart-candidate-actions .smart-candidate-profile{font-size:12px}.smart-candidate-actions .smart-candidate-contact{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.smart-candidate-actions .smart-candidate-contact{transition:none}}
