/*
 * HTML recreations of SCX's AppKit interface for the animated product scenes. Colours are the
 * app's Palette (Sources/SCX/UI/Palette.swift); type is the system font (SF Pro on a Mac);
 * icons are the app's SF Symbols from assets/symbols.
 */

.scene { position: relative; width: 100%; }
.scene > .stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; transform: scale(var(--s, 1)); }

.ax {
  --win: #1f1f1f;
  --head: #2e2e2e;
  --tabbar: #252525;
  --panehead: #292929;
  --pane: #212121;
  --row: #212121;
  --row-alt: #282828;
  --wave-bg: #1a1a1a;
  --box: #3b3b3b;
  --sep: #3d3d3d;
  --fld: #303030;
  --fld-edge: rgba(255, 255, 255, 0.07);
  --txt: #e6e6e6;
  --txt-2: #a8a8a8;
  --txt-3: #6e6e6e;
  --run: #2f8f3a;
  --run-edge: #4cd964;
  --go: #34c759;
  --marker: #f39c38;
  --wave: #1f6fe0;
  --sel: #464646;
  font: 400 12px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-feature-settings: normal;
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  cursor: default;
}
.ax .sym { vertical-align: middle; }
.ax .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }

/* windows */
.win {
  position: absolute;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: var(--win);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16) inset, 0 0 0 1px rgba(0, 0, 0, 0.85), 0 24px 60px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.35);
}
.titlebar { position: relative; flex: none; display: flex; align-items: center; justify-content: center; height: 28px; background: #2b2b2b; border-bottom: 1px solid #000; color: var(--txt-2); font-weight: 600; font-size: 12.5px; }
.titlebar .lights { position: absolute; left: 10px; display: flex; gap: 8px; }
.titlebar .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.3); }
.titlebar .lights i:nth-child(2) { background: #febc2e; }
.titlebar .lights i:nth-child(3) { background: #28c840; }
.titlebar.dim .lights i { background: #4a4a4a; }
.win.pop { opacity: 0; transform: scale(0.94) translateY(8px); transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
.win.pop.show { opacity: 1; transform: none; }
