/* GTA67 Hub – Warsztat (car workshop with 3D preview) */
.ws { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-4); align-items: start; }
@media (max-width: 1000px) { .ws { grid-template-columns: 1fr; } }

.ws-stage {
  position: relative; aspect-ratio: 16 / 10; min-height: 360px; border: 1px solid var(--line);
  border-radius: var(--radius, 6px); overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #1c1c21 0%, #0a0a0c 70%);
  box-shadow: var(--depth);
}
.ws-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.ws-stage canvas:active { cursor: grabbing; }
.ws-hud { position: absolute; inset: var(--s-3) var(--s-3) auto; display: flex; justify-content: space-between; gap: var(--s-2); pointer-events: none; }
.ws-hud > * { pointer-events: auto; }
.ws-car-title { font-family: var(--font-head); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: var(--track-caps); text-shadow: 0 2px 12px #000; }
.ws-car-title small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--muted); letter-spacing: var(--track-label); }
.ws-tools { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ws-tools .btn { backdrop-filter: blur(6px); background: rgba(10, 10, 12, 0.6); }
.ws-tools .btn.on { border-color: var(--accent); color: #fff; }
.ws-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s-5); color: var(--text-2); }

.ws-panel { display: flex; flex-direction: column; gap: var(--s-3); }
.ws-box { border: 1px solid var(--line); border-radius: var(--radius, 6px); background: var(--panel); box-shadow: var(--depth); padding: var(--s-4); }
.ws-box h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: var(--track-caps); font-size: var(--fs-h4); margin: 0 0 var(--s-3); }

.ws-cars { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-1); }
.ws-car-btn { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel-2); color: var(--text-2); font-size: var(--fs-sm); cursor: pointer; }
.ws-car-btn.on { border-color: var(--accent); color: #fff; background: rgba(229, 57, 110, 0.12); }
.ws-car-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-3); }
.ws-tab { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-caps); cursor: pointer; }
.ws-tab.on { background: var(--plate); color: #0a0a0b; border-color: var(--plate); }
.ws-tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }

.ws-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 360px; overflow-y: auto; padding-right: 2px; }
.ws-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; font-size: var(--fs-sm); }
.ws-item:hover { border-color: var(--line-hard); }
.ws-item.on { border-color: var(--accent); background: rgba(229, 57, 110, 0.1); }
.ws-item .sw { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-hard); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.35); }
.ws-item .lbl { flex: 1; min-width: 0; line-height: 1.15; }
.ws-item .lbl small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.ws-item .lbl small.own { color: var(--cash); }

.ws-sum { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-size: var(--fs-h4); text-transform: uppercase; }
.ws-sum b { color: var(--cash); font-size: var(--fs-h3); }
.ws-save { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.ws-save .input { flex: 1; min-width: 0; }

.ws-builds { display: flex; flex-direction: column; gap: 6px; }
.ws-build { display: flex; align-items: center; gap: var(--s-2); padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); }
.ws-build.on { border-color: var(--accent); }
.ws-build .info { flex: 1; min-width: 0; cursor: pointer; }
.ws-build .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-build .info small { color: var(--muted); font-size: var(--fs-xs); }
.ws-build .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-hard); }
.ws-note { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }
