/* SPDX-License-Identifier: Apache-2.0 */
/* quantum.o2io.com.tr site bar on top of the studio. Uses the studio tokens from ../styles.css. */

html[lang="tr"] [lang="en"], html[lang="en"] [lang="tr"], html[lang]:not([lang="tr"]) [lang="tr"] { display: none !important; }

.sitebar {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 8px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sitebar a { color: var(--muted); text-decoration: none; }
.sitebar a:hover { color: var(--text); }
.sitebar-brand {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font: 600 13px/1.2 var(--mono); color: var(--text) !important;
}
.sitebar-brand svg { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.2; }
.sitebar-links {
  display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto;
  overflow-x: auto; scrollbar-width: thin; white-space: nowrap;
}
.sitebar-links a { padding: 6px 10px; border-radius: var(--radius); }
.sitebar-links a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.sitebar-links .sitebar-cta { margin-left: auto; color: var(--accent); border: 1px solid var(--line-strong); }

.foot a { color: inherit; }
.foot a:hover { color: var(--text); }

/* v5.1: one header, two distinct workspaces. Hidden tabs never consume a cell. */
[hidden] { display: none !important; }
body[data-workspace="business"] .research-only { display: none !important; }
.top { flex-wrap: wrap; gap: 12px; }
.brand-name { color: var(--text); text-decoration: none; }
.brand-name small { font-size: 11px; color: var(--muted); }
.workspace-toggle { margin-left: auto; max-width: 100%; }
.workspace-toggle button { white-space: normal; min-height: 42px; }
.tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric b, .metric small, input[type="number"], .num, .tabular-nums, time, code { font-variant-numeric: tabular-nums; }
.studio-site-links { margin: 20px 24px; color: var(--muted); }
.studio-site-links summary { cursor: pointer; }
.footer-site-nav { padding-top: 16px; }
.footer-site-nav .sitebar-links { flex-wrap: wrap; white-space: normal; }
.footer-site-nav svg { max-width: 24px; }
.hardware-evidence, .marble-orders, .marble-output { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.hardware-evidence p { margin: 14px 0; overflow-wrap: anywhere; }
.marble-svg { display: block; width: 100%; height: auto; max-height: 65vh; margin: 16px 0; }
.marble-svg [role="button"] { cursor: pointer; }
.marble-svg [role="button"]:focus rect, .marble-svg [role="button"]:hover rect { stroke: #102b24; stroke-width: 1.5; }
.marble-orders table { min-width: 550px; }
.marble-orders input { width: 100%; min-width: 60px; max-width: 180px; padding: 6px; }
.marble-orders input[type="checkbox"] { min-width: 20px; width: 20px; height: 20px; }
.drop-zone { border: 1px dashed var(--line-strong); padding: 12px; border-radius: var(--radius); }
.dragging { border-color: var(--accent); background: var(--panel-2); }
input[type="file"] { width: 100%; max-width: 100%; font-size: 12px; }
.stop-windows { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stop-windows label { display: grid; gap: 3px; min-width: 0; font-size: 11px; color: var(--muted); }
.stop-windows input { min-width: 0; width: 100%; padding: 4px; font-size: 12px; }
.stop-card .row-del { grid-column: 4; grid-row: 1; }
.marble-output .drivers-head { flex-wrap: wrap; }
.marble-output .field { margin: 0; min-width: 0; }
.marble-output .btn-row { flex-wrap: wrap; }
.stage, .controls, .grid2 > *, .btn-row, .hardware-evidence code { min-width: 0; }
@media (max-width: 760px) {
  .top { padding: 12px 14px; }
  .workspace-toggle { order: 3; width: 100%; margin: 0; }
  .workspace-toggle button { flex: 1; font-size: 12px; }
  .top-actions { margin-left: auto; }
  .brand-name small { display: block; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
  .tab { font-size: 12px; }
  .marble-orders, .marble-output, .hardware-evidence { padding: 12px; }
  .marble-output .btn { flex: 1 1 130px; white-space: normal; }
}

@media (max-width: 720px) {
  .sitebar { flex-wrap: wrap; gap: 6px; padding: 8px 14px; }
  .sitebar-links { flex-basis: 100%; }
  .sitebar-links .sitebar-cta { margin-left: 0; }
}

.hardware-comparison { min-width: 1080px; }
.hardware-comparison small { display: block; color: var(--muted); }
.hardware-comparison code { overflow-wrap: anywhere; }

/* Factory-floor additions follow the existing instrument-panel tokens. */
.factory-profile { padding: 14px 24px; border-bottom: 1px solid var(--line); min-width: 0; font-variant-numeric: tabular-nums; }
.factory-profile .btn-row { flex-wrap: wrap; }
.factory-profile .btn { min-height: 44px; white-space: normal; text-align: center; }
.factory-profile .hint { margin: 8px 0 0; overflow-wrap: anywhere; }
.profile-import { position: relative; cursor: pointer; overflow: hidden; }
.profile-import input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-import:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.slab-photo-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 14px; min-width: 0; }
.slab-photo-controls .field { flex: 1 1 220px; max-width: 100%; }
.slab-photo-controls .btn { min-height: 44px; white-space: normal; }
#marbleLayout { touch-action: none; user-select: none; }
#marbleLayout .marble-svg, #marbleLayout .marble-svg [role="button"] { cursor: crosshair; }
.marble-svg.has-photo g rect { fill-opacity: .62; }
.btn.whatsapp-dispatch { width: 100%; min-height: 44px; white-space: normal; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .factory-profile { padding: 12px 14px; }
  .factory-profile .btn { flex: 1 1 140px; }
}

.lang-select { background: var(--panel, #111820); color: var(--ink, #e8eef4); border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: 6px; padding: 5px 8px; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 138px; }
