/* CAM viewer styles, shared with the classic dashboard */
.cam { --hairline: rgba(255,255,255,.12); --hairline-2: rgba(255,255,255,.18); --ink: #e6e1d8; --paper-raised: #16191d; --copper: #c98545; }
.cam { --cam-line: rgba(255,255,255,.09); position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0d0f12; color: #e6e1d8; border-radius: 8px; overflow: hidden; min-width: 0; }
.cam--loading { min-height: 220px; place-content: center; }
.cam--loading .cam-note { position: static; }
.cam-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px; border-bottom: 1px solid var(--cam-line); }
.cam-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--cam-line); }
.cam-seg button { border: 0; background: transparent; color: #9d978d; padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; }
.cam-seg button[aria-pressed="true"] { background: #ede8df; color: #0d0f12; }
.cam-dims { font-size: 12px; color: #a49d92; }
.cam-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cam-tool { width: 32px; height: 32px; display: grid; place-content: center; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #cfc9bf; cursor: pointer; }
.cam-tool:hover { background: rgba(255,255,255,.1); color: #fff; }
.cam-tool[aria-pressed="true"] { background: #ede8df; color: #0d0f12; border-color: #ede8df; }
.cam-tool svg { width: 16px; height: 16px; }
.cam-tool[data-narrow] { display: none; }
.cam-pct { min-width: 46px; text-align: center; font-size: 12px; color: #cfc9bf; }
.cam-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: clamp(380px, 64vh, 720px); min-height: 0; }
.cam-layers { border-right: 1px solid var(--cam-line); padding: 12px 10px 14px; overflow-y: auto; min-height: 0; }
.cam-h { margin: 0 4px 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8e887e; }
.cam-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 2px 10px; }
.cam-chip { border: 1px solid rgba(255,255,255,.14); background: transparent; color: #cfc9bf; font-size: 12px; padding: 4px 9px; border-radius: 99px; cursor: pointer; }
.cam-chip:hover { border-color: #d4a24c; color: #fff; }
.cam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.cam-list label { display: grid; grid-template-columns: 16px 12px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-items: center;
  padding: 6px 6px; border-radius: 5px; cursor: pointer; }
.cam-list label:hover { background: rgba(255,255,255,.05); }
.cam-list input { grid-row: 1 / 3; width: 15px; height: 15px; margin: 0; accent-color: #d4a24c; }
.cam-sw { grid-row: 1 / 3; width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.cam-ln { font-size: 13.5px; color: #ede8df; line-height: 1.2; }
.cam-list small { grid-column: 3; font-size: 10.5px; color: #7f796f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-list input:not(:checked) ~ .cam-ln { color: #8e887e; }
.cam-list input:not(:checked) ~ .cam-sw { opacity: .35; }
.cam--real .cam-layers { opacity: .4; pointer-events: none; }
.cam--real [aria-label^="View from the bottom"] { visibility: hidden; }
.cam-stage { position: relative; overflow: hidden; cursor: grab; touch-action: none; background: #07080a; outline: none; min-height: 0; }
.cam-stage.is-drag { cursor: grabbing; }
.cam-stage:focus-visible { box-shadow: inset 0 0 0 2px #d4a24c; }
.cam-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cam-coord { position: absolute; left: 10px; bottom: 10px; margin: 0; font-size: 11.5px; color: #b8b2a8; background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 4px; pointer-events: none; }
.cam-note { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; padding: 0 20px; text-align: center; font-size: 12.5px; color: #a49d92; pointer-events: none; }
.cam-note[data-bad] { color: #e7a07e; }
.cam-hint { position: absolute; left: 50%; top: 12px; transform: translate(-50%, -8px); margin: 0; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.72);
  color: #ede8df; font-size: 12.5px; white-space: nowrap; opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none; }
.cam-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.cam-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 9px 12px; border-top: 1px solid var(--cam-line); font-size: 12px; color: #9c958b; }
.cam:fullscreen, .cam--max { border-radius: 0; width: 100vw; height: 100vh; }
.cam--max { position: fixed; inset: 0; z-index: 100; }
.cam:fullscreen .cam-body, .cam--max .cam-body { height: auto; }

.ac-versions { background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 6px; padding: 18px 20px; display: grid; gap: 12px; }
.ac-versions .fld-label { margin-top: 4px; }
.ac-ver { align-items: center; }
.ac-ver[data-active] { box-shadow: inset 3px 0 0 var(--copper); padding-left: 12px !important; }
.ac-list li > .ac-ver-act { display: flex; gap: 8px; flex: none; justify-content: flex-end; align-items: center; }
@media (max-width: 560px) { .ac-ver { flex-direction: column; align-items: stretch !important; } .ac-list li > .ac-ver-act { justify-content: flex-start; flex-wrap: wrap; } }

@media (max-width: 860px) {
  .cam-body { grid-template-columns: 1fr; height: auto; }
  .cam-stage { height: 62vh; min-height: 320px; }
  .cam-layers { display: none; border-right: 0; border-bottom: 1px solid var(--cam-line); max-height: 42vh; }
  .cam--open .cam-layers { display: block; }
  .cam-tool[data-narrow] { display: grid; }
  .cam-tools { margin-left: 0; width: 100%; justify-content: space-between; }
}
