/* New authorized results. The legacy Ozon view remains available. */
.ichat-products .section-heading{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.hosted-workspace .ichat-products>.orch-results{flex:1 1 0;min-height:0;overflow-y:scroll;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:12px}
.hosted-workspace .ichat-products>.orch-results::-webkit-scrollbar{width:12px}
.hosted-workspace .ichat-products>.orch-results::-webkit-scrollbar-track{background:#edf2f0;border-radius:6px}
.hosted-workspace .ichat-products>.orch-results::-webkit-scrollbar-thumb{background:#799b91;border:2px solid #edf2f0;border-radius:6px;min-height:40px}
.hosted-workspace .ichat-products>.orch-results::-webkit-scrollbar-thumb:hover{background:#176d61}
.hosted-workspace .ichat-products>.orch-status{flex-shrink:0;margin:10px 12px}
.orch-refresh{margin-left:auto;font-size:12px;white-space:normal}
.orch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.orch-card{position:relative;min-width:0;display:flex;flex-direction:column;border:1px solid var(--line,#e4e7ee);border-radius:14px;background:#fff;overflow:hidden}
.orch-hide{position:absolute;z-index:1;top:9px;right:9px;width:28px;height:28px;border:0;border-radius:50%;background:#fff;color:#536070;box-shadow:0 1px 6px #0002;font-size:20px;cursor:pointer}
.orch-hide,.ozon-dismiss{display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:0;line-height:1}
.orch-hide::before,.orch-hide::after,.ozon-dismiss::before,.ozon-dismiss::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:1.5px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.orch-hide::after,.ozon-dismiss::after{transform:translate(-50%,-50%) rotate(-45deg)}
.orch-product-link{color:inherit;text-decoration:none;display:flex;flex-direction:column;flex:1;min-width:0}
.orch-product-link:focus-visible,.orch-card button:focus-visible{outline:3px solid #175cf5;outline-offset:-3px}
.orch-visual{position:relative;min-height:80px;display:flex;align-items:center;justify-content:center;background:#f5f6f8;padding:0}
.orch-visual img{display:block;width:100%;height:auto;object-fit:contain}
.orch-no-image{font-size:12px;color:#626c7a;text-align:center}
.orch-number{position:absolute;top:9px;left:9px;right:auto;min-width:29px;height:29px;padding:0 6px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;color:#182846;box-shadow:0 1px 6px #0002;font-weight:700;font-size:14px}
.orch-card-body{padding:2px 12px 3px;overflow-wrap:anywhere}
.orch-price-line{line-height:1.1;margin-bottom:3px}
.orch-price{font-size:20px;color:#087c43}.orch-price-label{font-size:12px;color:#087c43}.orch-price-unknown{font-size:14px;color:#5c6470}
.orch-price-source,.orch-price-limitation{font-size:11px;line-height:1.15;color:#657080;margin:1px 0}
.orch-card h3{font-size:14px;line-height:1.1;font-weight:500;margin:1px 0;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;max-height:4.4em}
.orch-rating{font-size:13px;line-height:1.1;margin:0 0 3px;color:#b65a00}.orch-rating span,.orch-delivery{color:#657080;font-size:12px}
.orch-eligibility{font-size:11px;color:#657080;margin:1px 0;line-height:1.15}.orch-eligibility:empty{display:none}.orch-excluded{color:#b71c1c;font-size:11px}
.orch-card-actions{display:flex;gap:6px;padding:5px 10px 6px;margin-top:auto}.orch-card-actions .btn{padding:6px 7px;font-size:12px;line-height:1.2;flex:1;min-width:0;white-space:normal}
.orch-card-actions [data-orchestrator="details"]{background:#e0f2e3;border-color:#c5e3cb;color:#245d35}
.orch-card-actions [data-orchestrator="pin"]{background:#e1f0fb;border-color:#c7dfef;color:#285775}
.hosted-workspace .ichat-need .need-grid{gap:6px;line-height:1.15}
.hosted-workspace .ichat-need .need-grid dt{line-height:1.1}
.hosted-workspace .ichat-need .need-grid dd{margin:1px 0 0;line-height:1.1}
.orch-details{margin-top:18px;padding:18px;overflow-wrap:anywhere}.orch-details h3{font-size:17px}.orch-details dl>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:10px;padding:6px 0}.orch-details dd{margin:0}.orch-details li{margin:6px 0}
.orch-conflicts{color:#b71c1c;background:#fff0f0;border:1px solid #e7aaaa;padding:12px;border-radius:9px}.orch-provenance{font-size:12px;color:#536070;padding-left:20px}
.orch-source-status,.orch-status{font-size:12px;color:#536070;margin:10px 0}.orch-source-status summary{cursor:pointer}
@media(max-width:1200px){.orch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.orch-grid{gap:8px}.orch-card-body{padding:2px 9px 3px}.orch-price{font-size:17px}.orch-card h3{font-size:12px}.orch-card-actions{padding:4px 7px 5px;gap:4px}.orch-card-actions .btn{font-size:11px;padding:6px 3px}.orch-details dl>div{grid-template-columns:1fr}.orch-refresh{font-size:11px}}
.orch-number.offer-number-verified{background:#d9f3df;color:#000}
.offer-verification{font-size:12px;line-height:1.4;color:#31443b;margin:7px 0;overflow-wrap:anywhere}
.orch-card .offer-verification{line-height:1.15;margin:1px 0}

.orch-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.35}

/* Equal panel title rows; controls remain within the same row. */
.hosted-workspace .ichat-chat>.panel-head,
.hosted-workspace .ichat-products>.section-heading,
.hosted-workspace .ichat-need .need-panel>.section-heading{height:38.4px;min-height:38.4px;box-sizing:border-box;flex:0 0 38.4px;display:flex;flex-wrap:nowrap;align-items:center;padding:0 14px;margin:0;gap:8px;border-bottom:1px solid var(--line)}
.hosted-workspace .ichat-need .need-panel>.section-heading{margin:-14px -14px 12px}
.hosted-workspace .ichat-products>.section-heading .orch-refresh{padding:5px 8px;line-height:1.2;flex-shrink:1}

/* Details stay directly below their own card actions in normal grid flow. */
.orch-grid{align-items:start}
.orch-card>.orch-details{margin:0;min-width:0;padding:12px;border:0;border-top:1px solid var(--line);border-radius:0}
.orch-card>.orch-details h3{display:block;max-height:none;-webkit-line-clamp:unset;font-size:14px}
.orch-details-actions{margin-top:10px}

/* Full source content is loaded for the explicitly opened own card only. */
.orch-description{white-space:pre-wrap;overflow-wrap:anywhere}
.orch-characteristics{margin:10px 0;min-width:0;overflow-wrap:anywhere}
.orch-characteristics>div{padding:5px 0;border-top:1px solid var(--line,#e4e7ee)}
.orch-characteristics dt{font-weight:600;margin:0}
.orch-characteristics dd{white-space:pre-wrap;margin:2px 0 0}

/* Narrow gaps; resizers adjust adjacent panes without touching dialogue state. */
.hosted-workspace .ichat-layout{gap:6px}
.ichat-divider{display:none}
.orch-seller{display:flex;gap:4px;min-width:0;margin:4px 0;font-size:12px;line-height:1.15;white-space:nowrap}
.orch-seller-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:768px){
  .hosted-workspace .ichat-layout{grid-template-columns:minmax(140px,var(--need-width,170px)) 6px minmax(240px,1fr);column-gap:0;row-gap:6px}
  .hosted-workspace .ichat-divider[data-divider="need"]{display:block}
  .hosted-workspace .ichat-divider{position:relative;align-self:stretch;cursor:col-resize;touch-action:none;outline-offset:-2px}
  .ichat-divider::before{content:"";position:absolute;inset:0 -4px;z-index:1}
  .ichat-divider::after{content:"";position:absolute;top:0;bottom:0;left:2px;width:2px;background:#e0e9e5;border-radius:2px}
  .ichat-divider:hover::after,.ichat-divider:focus-visible::after,.resizing-panels .ichat-divider::after{background:#79aa9c}
  .resizing-panels,.resizing-panels *{cursor:col-resize!important;user-select:none!important}
}
@media(min-width:1200px){
  .hosted-workspace .ichat-layout{grid-template-columns:minmax(140px,var(--need-width,170px)) 6px minmax(240px,var(--dialogue-width,.8fr)) 6px minmax(300px,1.8fr)}
  .hosted-workspace .ichat-divider[data-divider="dialogue"]{display:block}
}

.orch-grid>.orch-details{grid-column:1/-1;margin:0;padding:14px;min-width:0}
.orch-description{white-space:pre-wrap;overflow-wrap:anywhere}
.orch-characteristics{margin:10px 0;overflow-wrap:anywhere}
.orch-characteristics dd{white-space:pre-wrap}

/* Eight shared tracks align every field across each visual product row. */
.orch-grid{row-gap:3px;--card-seller-font-size:12px}
.orch-card{display:grid;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);grid-row:span 8;row-gap:3px;align-items:start}
.orch-product-link,.orch-card-body{display:contents}
.orch-visual{grid-row:1;align-self:stretch;min-width:0}
.orch-price-line{grid-row:2;margin:0 12px;min-width:0;line-height:1.1}
.orch-price-line .orch-price-source{margin-top:2px}
.orch-rating-line{grid-row:3;min-height:15px;min-width:0;margin:0 12px}
.orch-rating-line .orch-rating{margin:0;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.orch-card h3{grid-row:4;align-self:start;margin:0 12px;min-width:0;line-height:1.1;-webkit-line-clamp:4;max-height:4.4em}
.orch-seller{grid-row:5;align-self:start;min-height:14px;min-width:0;margin:0 12px;line-height:14px;font-size:var(--card-seller-font-size)}
.orch-date-line{grid-row:6;align-self:start;min-height:13px;min-width:0;margin:0 12px}
.orch-date-line .orch-price-source,.orch-date-line .offer-verification{margin:0;font-size:11px;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.orch-extra-line{grid-row:7;min-width:0;margin:0 12px}
.orch-extra-line .offer-verification,.orch-extra-line .orch-eligibility,.orch-extra-line .orch-excluded{margin:0;line-height:1.15}
.orch-card-actions{grid-row:8;align-self:end;margin:0;padding-top:3px}
.orch-product-link:focus-visible>.orch-visual{outline:3px solid #175cf5;outline-offset:-3px}
@media(max-width:480px){
  .orch-price-line,.orch-rating-line,.orch-card h3,.orch-seller,.orch-date-line,.orch-extra-line{margin-left:9px;margin-right:9px}
}
@media(max-width:767px){.orch-grid>.orch-details .orch-description{font-size:var(--card-seller-font-size)}}

/* Requirement labels/values match the dialogue assistant body at this viewport. */
.hosted-workspace{--requirements-message-font-size:12px}
.hosted-workspace .ichat-need .need-grid dt,
.hosted-workspace .ichat-need .need-grid dd,
.hosted-workspace .ichat-need .need-grid dd a,
.hosted-workspace .ichat-need .need-grid dd span{font-family:var(--sans);font-size:var(--requirements-message-font-size);overflow-wrap:anywhere}
/* Compact only mobile framing; control/content font sizes are preserved. */
@media(max-width:767px){
  .app-shell #sidebar{height:48px;min-height:48px;padding:2px 80px 2px 6px}
  .hosted-workspace:not(.selection-window) .topbar{height:48px;padding:0 6px}
  .hosted-workspace #workspace{padding:6px}
  .hosted-workspace .ichat-chat>.panel-head,
  .hosted-workspace .ichat-products>.section-heading,
  .hosted-workspace .ichat-need .need-panel>.section-heading{height:30.4px;min-height:30.4px;flex:0 0 30.4px;padding:0 10px}
  .hosted-workspace .ichat-need .need-panel>.section-heading{margin-bottom:8px}
}

/* Compact mobile outer gutters; preserve content margins and shared tracks. */
@media(max-width:767px){
  .hosted-workspace .ichat-products>.orch-results{padding:2px}
  .hosted-workspace .orch-grid{column-gap:2px;row-gap:2px}
  .hosted-workspace .orch-card{row-gap:2px}
}
/* All More panel content uses the same font size as dialogue; buttons retain theirs. */
.hosted-workspace .orch-grid>.orch-details>h3,
.hosted-workspace .orch-grid>.orch-details .orch-description,
.hosted-workspace .orch-grid>.orch-details .orch-characteristics,
.hosted-workspace .orch-grid>.orch-details .orch-characteristics dt,
.hosted-workspace .orch-grid>.orch-details .orch-characteristics dd{font-size:12px}

/* Compact label/value and heading/list spacing; preserve column gap and padding. */
.hosted-workspace .orch-grid>.orch-details>h3{margin-bottom:0}
.hosted-workspace .orch-grid>.orch-details .orch-characteristics{margin-top:4px}
.hosted-workspace .orch-grid>.orch-details .orch-characteristics>div{row-gap:2px}
.hosted-workspace .orch-grid>.orch-details .orch-characteristics dd{margin-top:0}

.orch-supplier-info{margin:3px 0;font-size:11px;line-height:1.3;color:var(--muted);overflow-wrap:anywhere}

@media(max-width:1199px){.hosted-workspace .ichat-products{height:85.7142857143dvh}}

/* Accepted Ozon prices retain their update color across cached reloads. */
.orch-card .orch-price.orch-price-updated{color:#b71c1c}

/* Provided requirement values use the same dark green as category links. */
.hosted-workspace .ichat-need .need-known{color:var(--green)}

.orch-number.offer-number-review{background:#ffd54f;color:#182846}

/* Dialogue is 15 percent taller in the stacked layout (65vh × 1.15). */
@media(max-width:1199px){.hosted-workspace .ichat-chat{height:74.75vh}}

/* Immediate card feedback, smooth and clearly visible. */
.orch-number.offer-number-updating{color:#182846;background:#fff;animation:orch-number-updating 2.4s ease-in-out infinite}
@keyframes orch-number-updating{
  0%,100%{background-color:var(--orch-number-from,#fff);box-shadow:0 1px 6px #0002}
  50%{background-color:var(--orch-number-to,#70d48d);box-shadow:0 0 0 3px var(--orch-number-glow,#70d48d66),0 1px 6px #0002}
}
.orch-number.offer-number-rechecked{background:#dceeff;color:#000}
.orch-card.orch-check-odd{--orch-number-from:#d9f3df;--orch-number-to:#75baff;--orch-number-glow:#75baff77}
.orch-card.orch-check-even{--orch-number-from:#dceeff;--orch-number-to:#70d48d;--orch-number-glow:#70d48d77}
@media(prefers-reduced-motion:reduce){.orch-number.offer-number-updating{animation:none;background:var(--orch-number-to,#70d48d)}}

/* Readable refresh notice: mostly visible, with a short smooth pause. */
.hosted-workspace .ichat-products>.section-heading{position:relative}
.selection-update-progress{position:absolute;right:1cm;top:50%;transform:translateY(-50%);margin:0;align-self:center;font-size:14px;line-height:16px;font-weight:600;color:#087c43;white-space:nowrap;pointer-events:none;animation:selection-update-notice 2.8s ease-in-out infinite}
.selection-update-progress[hidden]{display:none}
@keyframes selection-update-notice{0%,70%,100%{opacity:1}80%,88%{opacity:0}}
.ichat-products>.section-heading:has(.selection-update-progress:not([hidden])){justify-content:flex-start;align-items:center}
@media(max-width:767px){.selection-update-progress{font-size:12px;line-height:14px}}
@media(prefers-reduced-motion:reduce){.selection-update-progress{animation:none}}

/* Search is controlled by the current server search state, never by AI prose. */
.hosted-workspace .ichat-chat>.panel-head{position:relative}
.dialogue-search-progress{position:absolute;right:14px;top:4px;font-size:11px;line-height:12px;font-weight:600;color:#087c43;white-space:nowrap;pointer-events:none;animation:selection-update-notice 2.8s ease-in-out infinite}
.dialogue-search-progress[hidden]{display:none}
@media(max-width:767px){.dialogue-search-progress{right:10px;top:3px;font-size:10px;line-height:11px}}
@media(prefers-reduced-motion:reduce){.dialogue-search-progress{animation:none}}

/* Larger, lower and further left only for reply waiting. */
.dialogue-thinking-progress{right:28px;top:8px;font-size:14px;line-height:16px}
@media(max-width:767px){.dialogue-thinking-progress{right:20px;top:6px;font-size:12px;line-height:14px}}
