/* Client results: square controls and unchanged 2:3 photograph canvases. */
#results .section-head{margin-bottom:24px}
#results .rc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start;overflow-anchor:none}
#results .rc-card{min-width:0;padding:16px;background:#212224;border:0;border-radius:0;scroll-margin-top:115px}
#results .rc-card:last-child:nth-child(3n+1){grid-column:2}
#results .rc-story{padding:4px 0 24px}
#results .rc-result-value{display:flex;align-items:baseline;gap:9px;margin:0;color:var(--text);font-size:3rem;font-weight:700;line-height:1.08;letter-spacing:-.06em;text-transform:none;white-space:nowrap}
#results .rc-result-unit{color:#ff986d;font-size:.56em;letter-spacing:-.025em}
#results .rc-result-detail{margin-left:1px;color:#b7b8ba;font-size:.78rem;letter-spacing:0;font-weight:400}
#results .rc-duration{margin:8px 0 0;color:#b7b8ba;font-size:.84rem;line-height:1.4;letter-spacing:0}
#results .rc-missing{color:#828487}
#results .rc-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#results .rc-shot{min-width:0;margin:0}
#results .rc-shot figcaption{margin:0 0 8px;padding:0;color:#b7b8ba;font-size:.68rem;line-height:1.4;font-weight:600;letter-spacing:.075em;text-transform:uppercase}
#results .rc-shot figcaption[data-phase="after"]{color:#ffad87}
#results .rc-card[data-pending="true"] .rc-shot figcaption{color:#b7b8ba}
#results .rc-shot img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;background:transparent;border-radius:0}
#results .rc-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:16px 0 0;padding:0;border:0;border-radius:0;background:transparent}
#results .rc-tab{min-width:0;min-height:44px;padding:10px 8px;border:1px solid #424346;border-radius:0;background:transparent;color:#b7b8ba;font-size:.76rem;font-weight:600;line-height:1.3;transition:background .18s ease,color .18s ease,border-color .18s ease}
#results .rc-tab:hover{border-color:#77797c;color:var(--text);background:#292a2c}
#results .rc-tab[aria-pressed="true"]{border-color:var(--orange);color:#ffad87;background:rgba(255,107,43,.08)}
#results .rc-tab:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
#results .rc-only-view{display:flex;justify-content:center;align-items:center;height:44px;margin-top:16px;color:#a8a9ac;font-size:.76rem}
#results .rc-more-wrap{display:flex;justify-content:center;margin-top:32px;overflow-anchor:none}
#results .rc-more{min-width:260px;max-width:100%;gap:24px;border-radius:0}
#results .rc-more [data-more-symbol]{font-size:1.3rem;line-height:1;color:var(--orange)}
#results .rc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1100px){
  #results .rc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
  #results .rc-card:last-child:nth-child(3n+1),#results .rc-grid:not(.rc-expanded) .rc-card:nth-child(3){grid-column:1/-1;justify-self:center;width:calc((100% - 22px)/2)}
}
@media(max-width:650px){
  #results .rc-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  #results .rc-card:last-child:nth-child(3n+1),#results .rc-grid:not(.rc-expanded) .rc-card:nth-child(3){grid-column:auto;width:100%}
  #results .rc-result-value{font-size:2.8rem}
  #results .rc-tab{min-height:44px;font-size:.8rem}
  #results .rc-more{width:100%;min-width:0}
}
@media(max-width:360px){
  #results .rc-card{padding:12px}
  #results .rc-result-value{font-size:2.5rem;gap:7px}
  #results .rc-result-detail{font-size:.72rem}
  #results .rc-pair{gap:6px}
  #results .rc-tabs{gap:6px}
  #results .rc-tab{padding-left:6px;padding-right:6px;font-size:.75rem}
}
@media(prefers-reduced-motion:reduce){#results .rc-tab{transition:none}}

#results .rc-photo-error{margin:12px 0 0;color:#ffad87;font-size:.78rem;line-height:1.5}
#results .rc-card[aria-busy="true"] .rc-tab{cursor:progress}

/* Увеличенный просмотр снимков одного подопечного. */
#results .rc-zoom{display:block;width:100%;min-height:0;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in;transition:none}
#results .rc-zoom:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
#results-gallery{width:calc(100% - 40px);max-width:760px;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:hidden;border:1px solid #393b3e;border-radius:0;background:#141517;color:var(--text);box-shadow:0 24px 100px #000a}
#results-gallery::backdrop{background:#070809e6;backdrop-filter:blur(8px)}
#results-gallery [hidden]{display:none!important}
#results-gallery button{min-height:0;color:var(--text);font-weight:600;touch-action:manipulation}
#results-gallery .rg-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid #2b2d30}
#results-gallery .rg-kicker{margin:0;color:#ff986d;font-size:.65rem;letter-spacing:.14em;text-transform:uppercase}
#results-gallery .rg-title{margin:4px 0 0;color:var(--text);font-size:.95rem;font-weight:600;line-height:1.4}
#results-gallery .rg-close{display:flex;align-items:center;justify-content:center;gap:10px;width:auto;min-width:44px;min-height:44px;padding:9px 13px;border:1px solid #3b3d40;border-radius:0;background:#25272a;font-size:.75rem}
#results-gallery .rg-close [aria-hidden]{font-size:1.5rem;line-height:1}
#results-gallery .rg-canvas{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;height:clamp(240px,calc(100dvh - 260px),900px);padding:12px 0;background:#08090a;touch-action:pan-y pinch-zoom;user-select:none}
#results-gallery .rg-arrow{position:relative;z-index:1;display:grid;place-items:center;justify-self:center;width:44px;height:44px;padding:0;border:1px solid #414347;border-radius:0;background:#1b1d20;font-size:1.7rem;line-height:1}
#results-gallery .rg-arrow:hover,#results-gallery .rg-close:hover{background:#36383c}
#results-gallery .rg-arrow:focus-visible,#results-gallery .rg-close:focus-visible,#results-gallery .rg-thumb:focus-visible,#results-gallery .rg-retry:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
#results-gallery .rg-frame{grid-column:2;grid-row:1;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden}
#results-gallery .rg-image{display:block;width:100%;height:100%;object-fit:contain}
#results-gallery .rg-prev{grid-column:1;grid-row:1}
#results-gallery .rg-next{grid-column:3;grid-row:1}
#results-gallery .rg-loading,#results-gallery .rg-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;margin:0;padding:24px 58px;color:#c5c7ca;text-align:center;font-size:.85rem}
#results-gallery .rg-error p{margin:0}
#results-gallery .rg-retry{width:auto;min-height:44px;padding:10px 16px;border:1px solid #61646a;border-radius:0;background:#25272a;font-size:.8rem}
#results-gallery .rg-footer{padding:15px 24px 17px}
#results-gallery .rg-caption{display:flex;align-items:center;justify-content:space-between;gap:14px}
#results-gallery .rg-label{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#results-gallery .rg-tag{padding:5px 10px;background:#303235;color:var(--text);font-size:.68rem;font-weight:600;line-height:1.5;letter-spacing:.075em;text-transform:uppercase}
#results-gallery .rg-tag[data-phase="after"]{background:var(--orange);color:#101112}
#results-gallery .rg-detail{color:#d3d5d7;font-size:.8rem}
#results-gallery .rg-count{white-space:nowrap;color:#b8bbbe;font-size:.8rem;font-variant-numeric:tabular-nums}
#results-gallery .rg-thumbs{display:flex;justify-content:center;gap:9px;margin-top:15px}
#results-gallery .rg-thumb{flex:0 1 44px;width:auto;min-width:0;height:62px;padding:2px;border:2px solid transparent;border-radius:0;background:#08090a;opacity:.52}
#results-gallery .rg-thumb[aria-pressed="true"]{border-color:var(--orange);opacity:1}
#results-gallery .rg-thumb:hover{opacity:1}
#results-gallery .rg-thumb img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:600px){
  #results-gallery{width:calc(100% - 16px)}
  #results-gallery .rg-header{padding:10px 12px}
  #results-gallery .rg-close{padding:9px}
  #results-gallery .rg-close-label{display:none}
  #results-gallery .rg-canvas{display:block;height:min(calc(100dvh - 230px),640px);min-height:200px;padding:8px 0}
  #results-gallery .rg-arrow{position:absolute;top:50%;margin-top:-22px;background:#141518cc;border-color:#5b5e63}
  #results-gallery .rg-prev{left:7px}
  #results-gallery .rg-next{right:7px}
  #results-gallery .rg-footer{padding:12px 13px 13px}
  #results-gallery .rg-label{gap:8px}
  #results-gallery .rg-detail{font-size:.72rem}
  #results-gallery .rg-thumbs{gap:6px;margin-top:12px}
  #results-gallery .rg-thumb{height:54px}
}
@media(max-height:580px){
  #results-gallery .rg-header{padding:6px 12px}
  #results-gallery .rg-canvas{height:calc(100dvh - 170px);min-height:90px}
  #results-gallery .rg-footer{padding:7px 12px}
  #results-gallery .rg-thumbs{margin-top:7px}
  #results-gallery .rg-thumb{height:44px}
}
@media(prefers-reduced-motion:no-preference){
  #results-gallery .rg-thumb,#results-gallery .rg-arrow,#results-gallery .rg-close{transition:opacity .15s,background .15s,border-color .15s}
}
