/* Interview Lighting Planner (/tools/lighting). Prefix lx-. Uses tools.css (tl-) for the page around it. */
.lx-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: clamp(28px, 4vw, 44px); }
.lx-presets { min-width: 0; }
.lx-presets > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.lx-presets button { display: grid; gap: 4px; text-align: left; padding: 12px 14px; background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; cursor: pointer; transition: border-color 0.2s; }
.lx-presets button b { color: var(--fg); font-weight: 500; font-size: 0.95rem; }
.lx-presets button span { font-size: 0.8rem; line-height: 1.4; }
.lx-presets button:hover { border-color: var(--ember); }
.lx-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(18px, 2.6vw, 36px); align-items: start; }
.lx-left { display: grid; gap: 10px; min-width: 0; }
.lx-right { display: grid; gap: 12px; min-width: 0; position: sticky; top: calc(var(--head-h, 72px) + 16px); }
.lx-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lx-bar .label { margin: 0 6px 0 0; }
.lx-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; background: none; border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 0.82rem; cursor: pointer; }
.lx-bar button:hover { border-color: var(--ember); }
.lx-ico { width: 14px; height: 10px; display: inline-block; background: #ece4d6; border-radius: 1px; }
.lx-ico-panel { width: 11px; } .lx-ico-fresnel { width: 9px; height: 9px; border-radius: 50% 50% 1px 1px; } .lx-ico-tube { height: 4px; width: 16px; border-radius: 2px; }
.lx-ico-practical { width: 10px; height: 10px; border-radius: 50%; background: #f2b25c; } .lx-ico-bounce { background: #fff; height: 4px; } .lx-ico-neg { background: #000; outline: 1px solid #666; height: 4px; }
.lx-planbox { background: #0a0908; border: 1px solid var(--line); }
.lx-plan { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; font-family: var(--mono, monospace); }
.lx-plan:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.lx-grid { stroke: rgba(236,228,214,0.05); stroke-width: 1; } .lx-grid.m { stroke: rgba(236,228,214,0.1); }
.lx-walls { fill: none; stroke: #6d655a; stroke-width: 7; } .lx-w-white { stroke: #d9d2c5; } .lx-w-dark { stroke: #3a352f; }
.lx-dim { fill: rgba(236,228,214,0.45); font-size: 15px; text-anchor: middle; }
.lx-bgpt { fill: none; stroke: rgba(236,228,214,0.35); stroke-dasharray: 3 3; }
.lx-item { cursor: grab; } .lx-item:active { cursor: grabbing; }
.lx-hit { fill: transparent; }
.lx-tag { fill: rgba(236,228,214,0.75); font-size: 13px; text-anchor: middle; pointer-events: none; }
.is-sel > .lx-tag, .is-sel .lx-tag { fill: var(--ember); }
.lx-window line { stroke-width: 12; stroke-linecap: butt; } .lx-window text { fill: rgba(236,228,214,0.8); font-size: 13px; text-anchor: middle; pointer-events: none; }
.lx-window.is-sel line { stroke-width: 16; }
.lx-cam .lx-cambody { fill: #2b2722; stroke: #ece4d6; stroke-width: 2; } .lx-cam .lx-lens { fill: #ece4d6; }
.lx-cam .lx-fov { stroke: rgba(236,228,214,0.28); stroke-width: 1.5; stroke-dasharray: 6 5; fill: none; pointer-events: none; }
.lx-cam.is-view .lx-fov { stroke: rgba(226,104,58,0.65); }
.lx-cam.is-sel .lx-cambody { stroke: var(--ember); }
.lx-light .lx-beam { fill: var(--kc); opacity: 0.1; pointer-events: none; }
.lx-l-box { fill: #2b2722; stroke: #ece4d6; stroke-width: 1.5; } .lx-l-face { fill: var(--kc); }
.lx-l-rays { stroke: var(--kc); stroke-width: 2; stroke-linecap: round; }
.lx-l-bounce { fill: #f4f0e8; stroke: #999; stroke-width: 1; } .lx-l-neg { fill: #000; stroke: #777; stroke-width: 1.5; }
.lx-light.is-off { opacity: 0.4; }
.lx-light.is-sel .lx-l-box, .lx-light.is-sel .lx-l-bounce, .lx-light.is-sel .lx-l-neg { stroke: var(--ember); stroke-width: 2.5; }
.lx-subj .lx-sh { fill: #3a4656; stroke: #ece4d6; stroke-width: 1.5; } .lx-subj .lx-head { fill: #b98d6e; stroke: #ece4d6; stroke-width: 1.5; }
.lx-subj .lx-nose { fill: #ece4d6; } .lx-subj .lx-look { stroke: rgba(236,228,214,0.4); stroke-width: 1.5; stroke-dasharray: 3 3; }
.lx-subj.is-sel .lx-head { stroke: var(--ember); stroke-width: 2.5; }
.lx-turn { fill: var(--ember); stroke: #0a0908; stroke-width: 2; cursor: grab; }
.lx-hint { margin: 0; }
.lx-insp { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.lx-insp > .label { margin: 0; }
.lx-f { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.lx-f > span { font: 500 0.68rem/1.3 var(--mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lx-f > em { grid-column: 2; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.lx-f select, .lx-f input[type=color] { font: inherit; font-size: 0.9rem; color: var(--fg); background: rgba(255,255,255,0.04); border: 1px solid var(--line); padding: 8px 10px; }
.lx-f input[type=color] { width: 64px; height: 36px; padding: 2px; }
.lx-r { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; align-items: center; }
.lx-r input { width: 100%; accent-color: var(--ember); }
.lx-r b { font-weight: 500; font-size: 0.9rem; text-align: right; }
.lx-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.lx-chk { display: inline-flex; gap: 8px; align-items: center; font-size: 0.9rem; } .lx-chk input { accent-color: var(--ember); }
.lx-more { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 10px; }
.lx-more summary { cursor: pointer; font: 500 0.68rem/1 var(--mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.lx-more[open] { gap: 10px; }
.lx-cams { display: flex; gap: 6px; } .lx-cams .label { margin: 0; }
.lx-cams button { padding: 8px 12px; background: none; border: 1px solid var(--line); color: var(--muted); font: 500 0.7rem/1 var(--mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.lx-cams button[aria-pressed="true"] { color: #160f0a; background: var(--ember); border-color: var(--ember); }
.lx-view { position: relative; margin: 0; background: #000; aspect-ratio: 16 / 9; }
.lx-view canvas { display: block; width: 100%; height: 100%; }
.lx-busy { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; font: 500 0.62rem/1 var(--mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; background: rgba(11,10,8,0.7); color: #ece4d6; }
.lx-read { display: grid; gap: 14px; }
.lx-k .label { margin: 0 0 4px; }
.lx-pat { margin: 0 0 4px; font-family: var(--serif, inherit); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.lx-pat em { font-style: italic; color: var(--ember); font-size: 0.8em; }
.lx-ratio { position: relative; height: 26px; margin: 6px 0 4px; border-bottom: 1px solid var(--line); }
.lx-ratio i { position: absolute; left: 0; top: 4px; height: 6px; background: linear-gradient(90deg, #ece4d6, var(--ember)); transition: width 0.3s; }
.lx-ratio span { position: absolute; bottom: 1px; transform: translateX(-50%); font: 500 0.6rem/1 var(--mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lx-facts, .lx-notes { margin: 0; padding: 0; list-style: none; display: grid; }
.lx-facts li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.lx-facts span { font: 500 0.66rem/1.6 var(--mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lx-facts b { font-weight: 500; }
.lx-notes { gap: 8px; } .lx-notes li { padding: 10px 14px; border-left: 2px solid var(--ember); background: rgba(255,255,255,0.03); font-size: 0.9rem; line-height: 1.5; }
.lx-foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); align-items: start; }
.lx-gear .label { margin: 0 0 8px; } .lx-gear ul { margin: 0; padding: 0; list-style: none; display: grid; }
.lx-gear li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.lx-gear li span { color: var(--muted); }
.lx-acts { display: grid; gap: 10px; justify-items: start; }
.lx-printout { display: none; }
@media (max-width: 960px) {
  .lx-presets > div { display: flex; overflow-x: auto; scrollbar-width: none; }
  .lx-presets > div::-webkit-scrollbar { display: none; }
  .lx-presets button { flex: 0 0 210px; }
  .lx-main { grid-template-columns: minmax(0, 1fr); }
  .lx-right { position: static; order: -1; }
  .lx-foot { grid-template-columns: minmax(0, 1fr); }
  .lx-f { grid-template-columns: 92px minmax(0, 1fr); }
}
@media print {
  body.lx-printing > *:not(main), body.lx-printing main > *:not(.tl), body.lx-printing .tl .wrap > *:not(.lx-app), body.lx-printing .lx-app > *:not(.lx-printout) { display: none !important; }
  body.lx-printing { background: #fff; color: #111; }
  body.lx-printing .lx-printout { display: block !important; }
  .lx-printout { font-family: Helvetica, Arial, sans-serif; color: #111; }
  .lx-printout h2 { font-size: 22pt; margin: 0 0 4pt; } .lx-printout h3 { font-size: 12pt; margin: 14pt 0 4pt; }
  .lx-pmeta { margin: 0 0 12pt; color: #444; }
  .lx-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12pt; align-items: start; }
  .lx-pplan svg { width: 100%; height: auto; background: #111; }
  .lx-pview img { width: 100%; }
  .lx-printout ul { margin: 0; padding-left: 14pt; } .lx-printout li { margin: 2pt 0; font-size: 10pt; }
  .lx-pfoot { margin-top: 16pt; font-size: 9pt; color: #555; }
}
@media (prefers-reduced-motion: reduce) { .lx-ratio i { transition: none; } }
.lx-guide { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px clamp(24px, 4vw, 60px); margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.lx-guide h2 { font-family: var(--serif, inherit); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; margin: 6px 0 12px; } .lx-guide h2 em { font-style: italic; color: var(--ember); }
.lx-dl { margin: 0; display: grid; } .lx-dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.lx-dl dt { font-family: var(--serif, inherit); font-size: 1.3rem; } .lx-dl dd { margin: 0; color: var(--muted); line-height: 1.55; } .lx-dl em { display: block; margin-top: 4px; font-style: normal; color: var(--fg); }
@media (max-width: 760px) { .lx-guide { grid-template-columns: minmax(0, 1fr); } .lx-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* the face meter: a small pill in the corner of the camera's view */
.lx-meter { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; max-width: calc(100% - 16px); padding: 5px 10px; background: rgba(14, 13, 11, 0.72); color: #efe7d8; font-size: 0.78rem; border-radius: 999px; }
.lx-meter:empty { display: none; }
.lx-meter span { font: 500 0.6rem/1 var(--mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: #a89f90; }
.lx-meter b { font-weight: 500; } .lx-meter em { font-style: normal; font: 0.68rem/1.4 var(--mono, monospace); color: #a89f90; }
.lx-meter i { display: none; }
@media (max-width: 560px) { .lx-meter em { display: none; } }
.lx-meter.is-ok b { color: #9fd49a; } .lx-meter.is-over b { color: #f0a070; } .lx-meter.is-under b, .lx-meter.is-dark b { color: #9ab4e0; }
.lx-camlab { margin: 14px 0 4px; }

.lx-l-diff { fill: rgba(244, 240, 232, 0.35); stroke: #f4f0e8; stroke-width: 1.5; stroke-dasharray: 4 3; }
.lx-light.is-sel .lx-l-diff { stroke: var(--ember); }
.lx-ico-diff { background: transparent; outline: 1px dashed #ece4d6; height: 6px; } .lx-ico-flag { background: #000; outline: 1px solid #666; height: 4px; width: 10px; }
