#cab-tender-create-review { min-width: 0; }
.cabinet-content:has(#cab-tender-create-review.active) { min-width: 0; }
#tenderCreateReviewNav.active { background: var(--accent) !important; }
/* Switch selection backgrounds immediately; cross-fading shows two selected tabs. */
.cabinet-menu:has(#tenderCreateReviewNav) .cab-menu-item { transition-property: color, transform; }
#cab-tender-create-review h4, #cab-tender-create-review h5, .tcr-modal h5 { margin: 0 0 12px; color: var(--accent2); }
#cab-tender-create-review p, .tcr-modal p { margin: 8px 0 14px; }
.tcr-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tcr-heading > div { min-width: 0; }
.tcr-heading > button { flex-shrink: 0; }
.tcr-muted { color: var(--muted); font-size: 12px; line-height: 1.6; }
.tcr-panel { border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 18px 0 28px; background: var(--panel2); }
.tcr-panel[hidden] { display: none; }
.tcr-owner { padding: 12px 14px; border-left: 3px solid var(--accent2); background: var(--panel); margin: 14px 0 18px; line-height: 1.6; overflow-wrap: anywhere; }
.tcr-owner a, .tcr-item a, .tcr-modal a { color: var(--accent2); }
.tcr-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcr-inline > input { flex: 1; min-width: 120px; }
.tcr-search label, .tcr-modal > label { display: block; color: var(--muted); font-size: 12px; margin: 0 0 7px; }
.tcr-search { max-width: 620px; margin-bottom: 12px; }
#tcrUserQuery, #tcrFilter, #tcrNote { color: var(--text); background: var(--panel-solid); border: 1px solid var(--border); border-radius: 7px; padding: 9px 11px; font: inherit; }
.tcr-checkbox { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 10px; line-height: 1.5; cursor: pointer; }
.tcr-checkbox input { width: 18px; height: 18px; min-height: 18px !important; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.tcr-users { display: flex; flex-direction: column; gap: 7px; max-height: 280px; overflow-y: auto; margin: 10px 0 14px; }
.tcr-user { display: flex !important; justify-content: space-between; text-align: left; gap: 12px; }
.tcr-user strong { overflow-wrap: anywhere; }
.tcr-user span { flex-shrink: 0; color: var(--muted); }
.tcr-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tcr-items { display: grid; gap: 12px; }
.tcr-item { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--panel2); }
.tcr-item strong, .tcr-reason { overflow-wrap: anywhere; }
.tcr-status { color: var(--warning); font-size: 11px; white-space: nowrap; }
.tcr-item dl, .tcr-modal dl { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 6px 16px; font-size: 12px; margin: 12px 0 16px; line-height: 1.6; }
.tcr-item dt, .tcr-modal dt { color: var(--muted); font-weight: normal; }
.tcr-item dd, .tcr-modal dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tcr-id { font-family: ui-monospace, monospace; font-size: 11px; }
.tcr-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.tcr-error, .tcr-danger { color: var(--danger) !important; }
.tcr-warning { color: var(--warning); }
.tcr-modal { max-width: 760px !important; width: calc(100% - 24px); }
.tcr-modal textarea { display: block; width: 100%; resize: vertical; min-height: 90px; box-sizing: border-box; }
.tcr-modal [hidden] { display: none !important; }
.tcr-technical { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 18px; }
.tcr-technical summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.tcr-notes { max-height: 240px; overflow-y: auto; }
.tcr-notes p { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--border); padding-left: 10px; }
.tcr-notes small { color: var(--muted); }
.tcr-actions { flex-wrap: wrap; }
[id^="tcr"][role="status"]:empty { display: none; }
@media (max-width: 650px) {
  .tcr-heading { flex-wrap: wrap; gap: 8px; }
  .tcr-panel { padding: 14px; }
  .tcr-item dl, .tcr-modal dl { grid-template-columns: 1fr; gap: 2px; }
  .tcr-item dd, .tcr-modal dd { margin-bottom: 8px; }
  .tcr-filter { width: 100%; }
  .tcr-filter select { flex: 1; }
  .tcr-actions > button { flex: 1 1 100%; white-space: normal; }
  #tenderCreateReviewNav { width: auto !important; }
}
