/* 3D owner styles (plan.md section 4). Loaded after styles.css. */

/* The anatomy panel replaces the buttons on the body. */
#spots { display: none; }

/* ---------- body panel (left of the Body view) ----------
   Same look as the Today panel on the right: a plain heading, then simple rows.
   Status is the dot color (green OK, amber Watch, red Act); only rows that need a look get a word. */
.anatomy { position: absolute; left: 40px; top: 32px; width: 280px; }
.anatomy .t-label { margin: 0 0 12px; }

.an-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.an-tab {
  padding: 10px 0; font: 600 14px var(--cond); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); transition: background .3s, color .3s;
}
.an-tab + .an-tab { border-left: 1px solid var(--ink); }
.an-tab:hover { background: var(--white); }
.an-tab.on { background: var(--ink); color: var(--white); }
.an-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.an-grid { display: none; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.an-grid.on { display: grid; animation: anIn .4s var(--ease) both; }
@keyframes anIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Picture of the part, name underneath */
.an-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px 10px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 55%, transparent);
  transition: border-color .25s, background .25s;
}
.an-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .35s var(--ease); }
.an-tile span { font: 500 15px var(--sans); }
.an-tile:hover, .an-tile:focus-visible { border-color: var(--ink); background: var(--white); outline: none; }
.an-tile:hover img, .an-tile:focus-visible img { transform: scale(1.05); }
.an-tile.no-data { cursor: pointer; }
.an-tile.no-data.on { border-color: var(--ink); background: var(--white); }
.an-tile small { font: 400 11px var(--sans); color: var(--soft); margin: -3px 0 -6px; white-space: nowrap; }

/* "Highlight" switch next to the panel title: organs that need a look show through the skin. */
.an-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.anatomy .an-head .t-label { margin: 0; }
.an-switch { display: flex; align-items: center; gap: 8px; font: 600 13px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.an-switch i { position: relative; width: 28px; height: 16px; border: 1px solid var(--ink); background: var(--white); transition: background .25s; }
.an-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: var(--ink); transition: transform .25s var(--ease), background .25s; }
.an-switch[aria-checked="true"] { color: var(--ink); }
.an-switch[aria-checked="true"] i { background: var(--ink); }
.an-switch[aria-checked="true"] i::after { background: var(--white); transform: translateX(12px); }
.an-switch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
