/* TBY ADMIN V58.7 — product thumbnails, options and exchanges */
.tby-v587-admin-thumb{width:48px;height:56px;display:grid;place-items:center;object-fit:cover;border-radius:10px;background:#f0f1f1;color:#777;font-size:8px;font-weight:700;line-height:1;text-align:center;flex:0 0 auto}
.tby-v587-product-cell{display:flex;align-items:center;gap:11px;min-width:220px}.tby-v587-product-cell>span{min-width:0}.tby-v587-product-cell strong,.tby-v587-product-cell small{display:block}.tby-v587-product-cell small{margin-top:4px;color:#747474;font-size:10px}
.tby-v587-product-image-preview{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:12px;border:1px solid rgba(0,0,0,.09);border-radius:14px;background:#f7f7f7}.tby-v587-product-image-preview img,.tby-v587-product-image-preview>span{width:82px;height:98px;display:grid;place-items:center;object-fit:cover;border-radius:10px;background:#ededed;color:#777;font-size:9px;font-weight:700;text-align:center;flex:0 0 auto}.tby-v587-product-image-preview strong,.tby-v587-product-image-preview small{display:block}.tby-v587-product-image-preview small{margin-top:5px;color:#666;line-height:1.45}
.tby-v587-product-options .grid-3{margin-top:16px}.tby-v587-option-note{margin:14px 0;text-align:left}.tby-v587-product-sales-link .tby-section-headline{align-items:center}.tby-v4432-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.tby-v587-choice-title{margin:20px 0 10px;font-size:11px;font-weight:750;letter-spacing:.08em;color:#5d5d5d}.tby-v587-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:490px;overflow:auto;padding:2px}
.tby-v587-choice-card{appearance:none;display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid rgba(0,0,0,.1);border-radius:14px;background:#fff;color:#171717;text-align:left;cursor:pointer;transition:border-color .14s,box-shadow .14s,transform .14s}.tby-v587-choice-card:hover{transform:translateY(-1px);box-shadow:0 7px 20px rgba(0,0,0,.07)}.tby-v587-choice-card.is-selected{border-color:#111;box-shadow:0 0 0 2px #111 inset}
.tby-v587-choice-card img,.tby-v587-no-image{width:52px;height:62px;display:grid;place-items:center;object-fit:cover;border-radius:10px;background:#f0f1f1;color:#777;font-size:8px;font-weight:700;text-align:center;flex:0 0 auto}.tby-v587-choice-card>span:last-child{min-width:0}.tby-v587-choice-card strong{display:block;font-size:12px;line-height:1.25}.tby-v587-choice-card small{display:block;margin-top:4px;color:#6d6d6d;font-size:9px;line-height:1.45}
.tby-v587-manual-confirm{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid rgba(0,0,0,.11);border-radius:14px;background:#f5f6f6;cursor:pointer}.tby-v587-manual-confirm input{margin-top:3px}.tby-v587-manual-confirm strong,.tby-v587-manual-confirm small{display:block}.tby-v587-manual-confirm small{margin-top:5px;color:#666;line-height:1.45}.tby-v587-replacement-grid [hidden]{display:none!important}
html[data-theme="dark"] .tby-v587-admin-thumb,html[data-theme="dark"] .tby-v587-product-image-preview,html[data-theme="dark"] .tby-v587-product-image-preview img,html[data-theme="dark"] .tby-v587-product-image-preview>span,html[data-theme="dark"] .tby-v587-choice-card,html[data-theme="dark"] .tby-v587-choice-card img,html[data-theme="dark"] .tby-v587-no-image,html[data-theme="dark"] .tby-v587-manual-confirm{background:#1c1c1c!important;color:#eee!important;border-color:rgba(255,255,255,.14)!important}html[data-theme="dark"] .tby-v587-choice-card.is-selected{border-color:#fff!important;box-shadow:0 0 0 2px #fff inset}html[data-theme="dark"] .tby-v587-product-image-preview small,html[data-theme="dark"] .tby-v587-choice-card small,html[data-theme="dark"] .tby-v587-manual-confirm small{color:#aaa!important}
@media(max-width:1050px){.tby-v587-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.tby-v4432-metrics{grid-template-columns:1fr!important}}@media(max-width:620px){.tby-v587-product-sales-link .tby-section-headline{align-items:flex-start}.tby-v587-choice-grid{grid-template-columns:1fr}.tby-v587-choice-card{min-height:82px}}

/* V58.7.33 — responsive exchange workflow. */
.tby-v587-exchange{overflow:hidden}.tby-v587-exchange .tby-section-headline{gap:12px;flex-wrap:wrap}.tby-v587-exchange .grid-3{grid-template-columns:minmax(190px,1.1fr) minmax(130px,.55fr) minmax(230px,1.15fr);gap:12px}.tby-v587-choice-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px;width:100%;max-width:100%;overflow-x:hidden;align-content:start}.tby-v587-choice-card{width:100%;max-width:100%;min-height:84px;overflow:hidden;align-items:center}.tby-v587-choice-card>span:last-child{display:block;min-width:0;overflow:hidden}.tby-v587-choice-card strong,.tby-v587-choice-card small{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}.tby-v587-choice-card img,.tby-v587-no-image{object-fit:contain;background:#f5f5f5}.tby-v587-replacement-grid{max-height:520px;overscroll-behavior:contain}@media(max-width:980px){.tby-v587-exchange .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.tby-v587-exchange .grid-3>div:last-child{grid-column:1/-1}}@media(max-width:700px){.tby-v587-exchange .grid-3{grid-template-columns:1fr}.tby-v587-exchange .grid-3>div:last-child{grid-column:auto}.tby-v587-choice-grid{grid-template-columns:1fr}.tby-v587-exchange .status-badge{white-space:normal;text-align:left}}

/* V58.7.2 — one optical system for every sidebar icon. */
body.tby-webapp-shell .nav.tby-v44-nav .nav-icon,
body.tby-webapp-shell .sidebar-bottom .nav-icon{width:22px!important;height:22px!important;min-width:22px!important;flex:0 0 22px!important;display:inline-grid!important;place-items:center!important;font-size:0!important;line-height:0!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;color:currentColor!important}
body.tby-webapp-shell .nav.tby-v44-nav .nav-icon>svg,
body.tby-webapp-shell .sidebar-bottom .nav-icon>svg{display:block!important;width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke}
body.tby-webapp-shell .nav.tby-v44-nav .nav-icon>svg *,
body.tby-webapp-shell .sidebar-bottom .nav-icon>svg *{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke}
body.tby-webapp-shell .nav.tby-v44-nav .nav-fallback-icon{display:none!important}
