/* Tour of the controls (tour.html): a working copy of the Best Light window, with an explainer beside it. */

.tour-page { --win: #161718; --win-ink: #f2f3f4; --win-muted: #a7acb2; --win-line: #34373b;
  --app-ground: #e6e8ea; --app-line: #d3d6da; --pencil: #d4302a; --ring: #4d6bff; --blue: #2747d6; }

.tour-head { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 28px; display: grid; gap: 16px; }
.tour-head h1 { font: 800 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--display); letter-spacing: -.04em; }
.tour-lede { max-width: 54ch; font-size: 19px; line-height: 1.5; color: var(--muted); }
.tour-views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tour-views button { font: 650 15px/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--hairline);
  background: var(--sheet); color: var(--ink); cursor: pointer; }
.tour-views button:hover { background: var(--hover); }
.tour-views button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.tour { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid;
  grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }

/* The window */
.t-window { min-width: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--app-ground);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 24px 60px rgba(22, 23, 24, .22); font: 14px/1.4 var(--sans); color: #161718; }
.t-window button { font: inherit; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--app-line); background: #fff; color: #161718; cursor: pointer; }
.t-window button:hover { background: #f1f2f4; }
.t-window button:disabled { opacity: .45; cursor: default; background: #fff; }
.t-titlebar { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; background: var(--win); }
.t-lights { position: absolute; left: 14px; display: flex; gap: 8px; }
.t-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.t-lights i + i { background: #febc2e; } .t-lights i + i + i { background: #28c840; }
.t-wintabs { display: flex; padding: 2px; border-radius: 7px; background: #2a2c2f; }
.t-window .t-wintab { border: 0; padding: 4px 14px; border-radius: 5px; background: transparent; color: var(--win-ink); font-size: 13px; }
.t-window .t-wintab:hover { background: #3a3d41; }
.t-window .t-wintab[aria-pressed="true"] { background: #5b6066; }

/* Adjust My Look */
.t-appbar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; background: var(--win); color: var(--win-ink); border-top: 1px solid #26292c; }
.t-appbar strong { font-size: 16px; }
.t-grow { flex: 1; }
.t-window .t-appbar button { background: transparent; color: var(--win-ink); border-color: var(--win-line); }
.t-window .t-appbar button:hover { background: #24272a; }
.t-window .t-appbar .t-save { background: var(--pencil); border-color: var(--pencil); color: #fff; font-weight: 650; }
.t-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; padding: 16px; align-items: start; }
.t-stage { display: grid; gap: 10px; min-width: 0; }
.t-proof { position: relative; background: #fff; padding: 14px; box-shadow: 0 1px 2px rgba(22,23,24,.08), 0 8px 24px rgba(22,23,24,.08); }
.t-badge { position: absolute; z-index: 3; top: 22px; left: 22px; padding: 2px 8px; border-radius: 6px; background: rgba(22,23,24,.78); color: #fff; font-size: 12px; font-weight: 650; }
.t-showing { position: absolute; z-index: 3; top: 22px; right: 22px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; }
.t-showing:empty { display: none; }
.t-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.t-frame.is-spot { cursor: crosshair; }
.t-zoomer { position: absolute; inset: 0; transform-origin: 50% 46%; transition: transform .3s; }
.t-zoomer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.t-marks { position: absolute; inset: 0; pointer-events: none; }
.t-mark { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid var(--ring); border-radius: 50%;
  font-size: 13px; font-weight: 800; color: var(--ring); line-height: 22px; text-indent: 30px; white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.t-under { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.t-seg { display: inline-flex; }
.t-window .t-seg button { border-radius: 0; margin-left: -1px; padding: 6px 10px; font-size: 13px; }
.t-window .t-seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.t-window .t-seg button:last-child { border-radius: 0 8px 8px 0; }
.t-window .t-seg button[aria-pressed="true"], .t-window [aria-pressed="true"]#t-viewsimple, .t-window [aria-pressed="true"]#t-viewall { background: #161718; color: #fff; border-color: #161718; }
.t-moment { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 160px; }
.t-moment input { flex: 1; }
.t-window #t-compare.is-on { background: #161718; color: #fff; }
.t-fixes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px; background: #fff; border-radius: 10px; }
.t-fixes strong { width: 100%; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #5b6066; }
.t-window .t-tool[aria-pressed="true"] { border-color: var(--pencil); color: var(--pencil); background: #f6e3e1; font-weight: 650; }
.t-sizer { display: inline-flex; align-items: center; gap: 8px; }
.t-sizer input { width: 90px; }
.t-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.t-panel { display: grid; gap: 10px; background: #fff; border-radius: 10px; padding: 12px; }
.t-viewtabs { display: grid; grid-template-columns: 1fr 1fr; }
.t-window .t-viewtabs button:first-child { border-radius: 8px 0 0 8px; }
.t-window .t-viewtabs button:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.t-controls { max-height: 560px; overflow: auto; }
.t-controls details { border-top: 1px solid #eceef0; }
.t-controls details:first-child { border-top: 0; }
.t-controls summary { padding: 9px 2px; font-weight: 650; cursor: pointer; }
.t-controls.is-simple summary { display: none; }
.t-controls.is-simple details { border: 0; }
.t-controls.is-simple .t-row:not(.is-everyday) { display: none; }
.t-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 6px 8px; border-radius: 8px; cursor: pointer; }
.t-row:hover { background: #f5f6f7; }
.t-row.is-explained, .t-window .is-explained { box-shadow: 0 0 0 2px var(--blue); }
.t-name { grid-column: 1 / -1; font-size: 13px; }
.t-row input[type=range] { width: 100%; }
.t-val { font-size: 12px; color: #5b6066; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.t-row select { grid-column: 1 / -1; font: inherit; padding: 5px; border-radius: 7px; border: 1px solid var(--app-line); }
.t-swatches { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.t-window .t-swatch { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--app-line); }
.t-window .t-swatch.is-auto { width: auto; border-radius: 15px; padding: 0 10px; font-size: 12px; background: #fff; }
.t-window .t-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #161718; }
.t-row input[type=range], .t-moment input, .t-sizer input { accent-color: #161718; }
.t-window .t-reset { justify-self: start; }

/* All together / Just this one, and the preview note (tour-only, so outside the app's own look) */
.t-mixrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px dashed #b9bdc2; border-radius: 10px; }
.t-note { flex: 1; min-width: 200px; font-size: 13px; color: #5b6066; }
.t-colorpick { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.t-window .t-colorpick input[type=color] { width: 44px; height: 30px; padding: 2px; border: 1px solid var(--app-line); border-radius: 7px; background: #fff; cursor: pointer; }
.t-window .t-colorpick input[type=color]:disabled { opacity: .4; cursor: default; }
.t-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* Live Video */
.t-live { background: #111213; color: #f2f3f4; }
.t-livebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #26292c; }
.t-livebadge { font-size: 12px; font-weight: 700; letter-spacing: .06em; background: var(--pencil); border-radius: 5px; padding: 2px 7px; cursor: pointer; }
.t-live:has(.is-plain) .t-livebadge { background: #5b6066; }
.t-callnote { flex: 1; min-width: 200px; color: #a7acb2; cursor: pointer; }
.t-callnote b { color: #f2f3f4; font-weight: 600; }
.t-speed { color: #a7acb2; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; }
.t-window .t-red { background: var(--pencil); border-color: var(--pencil); color: #fff; font-weight: 600; }
.t-window .t-red:hover { background: #b9271f; }
.t-window .t-plain { background: transparent; color: #f2f3f4; border-color: #5b6066; font-weight: 600; }
.t-window .t-plain:hover { background: #24272a; }
.t-livestage { position: relative; padding: 16px; }
.t-livestage img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; cursor: crosshair; }
.t-slowtip { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: min(520px, 86%); background: rgba(17,18,19,.94);
  border: 1px solid #f0b429; border-radius: 12px; padding: 14px 16px; }
.t-slowtip p { margin: 0 0 12px; } .t-slowtip b { color: #f0b429; }
.t-slowtip div { display: flex; gap: 8px; flex-wrap: wrap; }
.t-livefoot { padding: 0 16px 12px; color: #a7acb2; font-size: 13px; text-align: center; cursor: pointer; }
.t-extra { padding: 0 16px 16px; text-align: center; }
.t-window .t-link { border: 0; background: none; color: #8fa5ff; text-decoration: underline; padding: 0; }
.t-window .t-link:hover { background: none; color: #fff; }
.t-liveoff { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 120px 24px; }
.t-liveoff h2 { font-size: 24px; }
.t-liveoff p { color: #a7acb2; max-width: 44ch; }
.t-liveoff div { display: flex; gap: 8px; }

/* Menu bar */
.t-menuview { min-height: 520px; background: linear-gradient(160deg, #3d5a80, #98c1d9); }
.t-menubar { display: flex; align-items: center; gap: 14px; height: 30px; padding: 0 14px; background: rgba(240, 240, 242, .82); }
.t-window .t-menuicon { display: grid; place-items: center; padding: 2px 6px; border: 0; background: rgba(0,0,0,.12); border-radius: 5px; }
.t-clock { font-size: 13px; font-weight: 500; }
.t-menu { list-style: none; margin: 4px 0 0 auto; padding: 5px; width: min(360px, calc(100% - 28px)); margin-right: 48px;
  background: rgba(246, 246, 248, .96); border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 12px 32px rgba(0,0,0,.25); }
.t-window .t-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 5px 10px; border-radius: 5px; }
.t-window .t-menu button:hover, .t-window .t-menu button.is-explained { background: #2f6ee6; color: #fff; box-shadow: none; }
.t-menustate { display: block; padding: 5px 10px; color: #8a8d91; cursor: pointer; }
.t-sep { height: 1px; margin: 5px 10px; background: rgba(0,0,0,.12); }

.t-toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 9px; background: rgba(22,23,24,.9);
  color: #fff; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90%; text-align: center; }
.t-toast.is-on { opacity: 1; }

/* Explainer */
.t-explain { position: sticky; top: 88px; display: grid; gap: 10px; padding: 22px; border-radius: 14px; background: #111213; color: #fff; }
.t-ex-group { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8fa5ff; }
.t-explain h2 { font: 800 24px/1.15 var(--display); letter-spacing: -.02em; }
.t-explain p { line-height: 1.5; }
.t-ex-tip { padding-top: 10px; border-top: 1px solid #2e3134; color: rgba(255,255,255,.82); }

.tour-next { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter) 112px; display: grid; gap: 14px; justify-items: start; }
.tour-next h2 { font: 800 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.1 var(--display); letter-spacing: -.03em; }
.tour-next p { color: var(--muted); font-size: 18px; }
.tour-next p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.tour-help { font-weight: 600; color: var(--ink); }

@media (max-width: 1080px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .t-explain { position: sticky; bottom: 12px; top: auto; order: 2; z-index: 5; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
}
@media (max-width: 760px) {
  .t-body { grid-template-columns: 1fr; padding: 10px; }
  .t-controls { max-height: none; }
  .t-appbar strong { display: none; }
  .t-appbar { height: auto; padding: 8px 10px; flex-wrap: wrap; justify-content: flex-end; }
  .t-under { gap: 8px; }
  .t-moment { order: 3; width: 100%; }
  .t-livebar { padding: 10px; }
  .t-callnote { min-width: 0; flex-basis: 100%; }
  .t-window .t-appbar button { padding: 6px 8px; font-size: 12px; }
  .t-explain { padding: 12px 14px; gap: 4px; max-height: 30vh; overflow: auto; font-size: 15px; }
  .t-explain h2 { font-size: 18px; }
  .t-ex-group { display: none; }
  .t-ex-tip { padding-top: 6px; }
  .t-menu { margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .t-zoomer, .t-toast { transition: none; } }
