/* /tint-simulator.html — picture on the left (on top, sticky, on phones), controls on the right */
.ts-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.ts-stage { position: sticky; top: calc(var(--space-6) + 64px); }
.ts-view { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2px; }
.ts-view button, .ts-seg button, .ts-shades button, .ts-films button { appearance: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ts-view button { min-height: 44px; background: var(--surface); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); font: 600 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.ts-view button[aria-selected="true"] { color: var(--ink); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--redline), inset 0 -3px 0 var(--redline); }
.ts-canvas { background: #141012; box-shadow: inset 0 0 0 1px var(--line); }
.ts-canvas svg { display: block; width: 100%; height: auto; }
.ts-canvas:empty { aspect-ratio: 1344 / 496; }   /* holds the place while the first photo loads */
.ts-disclaimer { margin: var(--space-2) 0 0; }
.ts-controls { display: grid; gap: var(--space-5); }
.ts-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-3); }
.ts-group legend { padding: 0; margin-bottom: var(--space-2); }
.ts-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ts-seg button, .ts-shades button { min-height: 44px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font: 600 13px/16px var(--font-sans); }
.ts-shades { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.ts-shades button { font-family: var(--font-mono); }
.ts-seg button[aria-pressed="true"], .ts-shades button[aria-pressed="true"], .ts-films button[aria-pressed="true"] { background: rgba(225, 14, 43, .16); box-shadow: inset 0 0 0 2px var(--redline); }
.ts-films { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ts-films button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; min-height: 56px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ts-films b { font: 800 18px/20px var(--font-display); text-transform: uppercase; }
.ts-films small { font-size: 12px; color: var(--ink-muted); }
.ts-colors { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ts-colors button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; }
.ts-colors button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--redline); }
.ts-view button:focus-visible, .ts-seg button:focus-visible, .ts-shades button:focus-visible, .ts-films button:focus-visible, .ts-colors button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ts-strip { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.ts-strip input { width: 22px; height: 22px; accent-color: var(--redline); }
.ts-table { width: 100%; border-collapse: collapse; font: 500 14px/20px var(--font-mono); }
.ts-table caption { text-align: left; padding-bottom: var(--space-2); }
.ts-table th, .ts-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ts-table thead th { font: 600 10px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); white-space: normal; vertical-align: bottom; }
.ts-table tbody th { text-align: left; color: var(--ink); }
.ts-facts p { margin: var(--space-2) 0 0; }
.ts-law { padding: var(--space-4); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ts-law ul { list-style: none; margin: var(--space-2) 0; padding: 0; display: grid; gap: var(--space-2); }
.ts-law li { padding-left: 14px; border-left: 3px solid var(--ok); font-size: 14px; line-height: 20px; }
.ts-law li.ts-law--warn { border-left-color: #ffb547; }
.ts-law p { margin: 0; }
.ts-cta { margin: 0; }
@media (max-width: 900px) {
  .ts-layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .ts-stage { top: 64px; z-index: 5; background: var(--bg); padding-top: var(--space-2); margin: 0 calc(var(--space-4) * -1); padding-left: var(--space-4); padding-right: var(--space-4); box-shadow: 0 8px 12px -10px #000; }
  .ts-disclaimer { display: none; }
}
@media (max-width: 420px) { .ts-seg { grid-template-columns: repeat(2, 1fr); } }
