/* v41 "simple by default": three steps (Room, Lights, Check) with the tools each one needs, and an Advanced switch.
   The look stays close to the plan tool's instrument style: hairlines, monospaced numbers, one amber primary action per step. */

/* the switch, in the header row, in both modes */
.pl .pl-adv { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; background: none; border: 0; padding: 6px 2px 6px 8px; color: var(--devmute); font: 500 12.5px var(--sans); cursor: pointer; white-space: nowrap; }
.pl .pl-adv:hover { color: var(--devtxt); }
.pl .pl-adv-k { position: relative; width: 26px; height: 14px; border-radius: 7px; border: 1px solid var(--devline2, #4a4943); background: transparent; transition: background .15s, border-color .15s; flex: none; }
.pl .pl-adv-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--devmute); transition: transform .15s, background .15s; }
.pl .pl-adv[aria-checked="true"] { color: var(--devtxt); }
.pl .pl-adv[aria-checked="true"] .pl-adv-k { background: rgba(245, 146, 43, .18); border-color: var(--sig); }
.pl .pl-adv[aria-checked="true"] .pl-adv-k::after { transform: translateX(12px); background: var(--sig); }
.pl .pl-adv:focus-visible, .pl-flow button:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }

/* the step bar (simple mode only) */
.pl-flow { display: none; }
.pl.pl-simple .pl-flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--devline); background: #111110; min-height: 46px; }
.pl-flow-steps { display: flex; border-right: 1px solid var(--devline); }
.pl-flow-steps button { display: flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--devmute); font: 500 13.5px var(--sans); letter-spacing: -.005em; padding: 0 14px; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.pl-flow-steps button i { font: 400 10.5px var(--mono); font-style: normal; color: var(--devmute); opacity: .8; }
.pl-flow-steps button + button { border-left: 1px solid var(--devline); }
.pl-flow-steps button:hover { color: var(--devtxt); }
.pl-flow-steps button[aria-selected="true"] { color: var(--devtxt); box-shadow: inset 0 -2px 0 var(--sig); }
.pl-flow-steps button[aria-selected="true"] i { color: var(--sig); opacity: 1; }
.pl-flow-tools { display: flex; align-items: center; gap: 2px; padding: 6px 8px; flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pl-flow-tools::-webkit-scrollbar { display: none; }
.pl-flow-tools button { flex: none; background: none; border: 0; color: #cfcdc8; font: 400 13px var(--sans); padding: 6px 8px; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.pl-flow-tools .pl-fl-b:hover { color: var(--devtxt); background: rgba(255, 255, 255, .05); }
.pl-flow-tools .pl-fl-b[aria-pressed="true"] { color: var(--sig); box-shadow: inset 0 -1px 0 var(--sig); border-radius: 0; }
.pl-flow-tools .pl-fl-p { background: var(--sig); color: #17140f; font-weight: 600; padding: 6px 13px; margin-right: 6px; }
.pl-flow-tools .pl-fl-p:hover { filter: brightness(1.07); }
.pl-flow-tools .pl-fl-p[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(245, 146, 43, .35); }
.pl-flow-icons { display: flex; align-items: center; gap: 0; padding: 0 6px; border-left: 1px solid var(--devline); }
.pl-flow-icons button { width: 28px; height: 28px; background: none; border: 0; border-radius: 3px; color: var(--devmute); font: 400 15px/1 var(--sans); cursor: pointer; }
.pl-flow-icons button:hover:not(:disabled) { color: var(--devtxt); background: rgba(255, 255, 255, .06); }
.pl-flow-icons button:disabled { opacity: .35; cursor: default; }
.pl-flow-rep { background: none; border: 0; border-left: 1px solid var(--devline); color: var(--devtxt); font: 500 13px var(--sans); padding: 0 14px; cursor: pointer; }
.pl-flow-rep:hover { color: var(--sig); }

/* simple mode hides the expert rows and tabs; a tab picked by the tour or a link is always shown */
.pl.pl-simple .pl-tools, .pl.pl-simple .pl-vbar, .pl.pl-simple #pl-ws { display: none !important; }
.pl.pl-simple .pl-steps [data-pstep]:not([data-pstep="room"]):not([data-pstep="lums"]):not([data-pstep="results"]):not([aria-selected="true"]) { display: none; }
.pl.pl-simple .pl-steps [data-pstep] i { display: none; } /* the 01–07 numbers belong to the full list */

.pl.pl-simple .pl-guide { top: calc(var(--lb-flowh, 46px) + 14px); }

@media (max-width: 760px) {
  .pl.pl-simple .pl-flow { display: grid; grid-template-columns: 1fr auto; }
  .pl-flow-steps { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--devline); }
  .pl-flow-steps button { flex: 1; justify-content: center; padding: 12px 6px; }
  .pl-flow-tools { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; padding: 6px 8px; border-bottom: 1px solid var(--devline); scrollbar-width: none; }
  .pl-flow-icons { border-left: 0; padding: 4px 6px; }
  .pl-flow-rep { padding: 10px 14px; }
}

/* ---------- v41.1 "fully intuitive" (simple mode only) ---------- */
/* the side panel follows the step bar: no second row of tabs, unless the tour or a link opened a tab outside the three steps */
.pl.pl-simple:not(.pl-xtab) .pl-steps { display: none !important; }
/* one Import: the step bar's "Import a plan" (it opens the same file picker); the header copy is for Advanced */
.pl.pl-simple .dev-head .pl-open { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; }
/* results: the per-row target editors fold behind one "Adjust targets" control */
.pl.pl-simple .pl-rt-fold:not(.pl-adj-open) tr.pl-adjr { display: none; }
.pl.pl-simple .pl-adjt { display: inline-block; margin: 8px 0 4px; font-size: 12.5px; color: var(--devmute); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.pl.pl-simple .pl-adjt:hover { color: var(--devtxt); }
.pl.pl-simple .pl-adjt[aria-expanded="true"] { color: var(--devtxt); }
.pl.pl-simple .pl-adjt:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }

@media (max-width: 760px) {
  /* header: title and project on their own lines, then Import · Close plan · Advanced on one row */
  .pl.pl-simple .dev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
  .pl.pl-simple .dev-head #pl-title { flex: 1 1 100%; }
  .pl.pl-simple .dev-head #pl-msg:empty { display: none; }
  .pl.pl-simple .dev-head #pl-proj { flex: 1 1 100%; max-width: none; }
  .pl.pl-simple .dev-head #pl-new { flex: none; padding: 7px 11px; min-height: 0; }
  .pl.pl-simple .dev-head .pl-adv { margin-left: auto; padding-right: 0; }
  /* the headline number gets its own line so its label stays on one line */
  .pl.pl-simple [data-pp="results"] .lead-ns .lead-n:first-child { flex: 1 0 100%; grid-column: 1 / -1; }
  .pl.pl-simple [data-pp="results"] .lead-ns .lead-n:first-child span { white-space: nowrap; }
  /* a compact checks table */
  .pl.pl-simple .pl-rt th, .pl.pl-simple .pl-rt td { padding-top: 6px; padding-bottom: 6px; }
  .pl.pl-simple .pl-rt td:first-child { font-size: 12.5px; }
}
/* v41.1: with a room ready, the side panel's trace/pick/suggest buttons wait for "Edit room" too */
.pl.pl-simple:not(.pl-editroom) .pl-room-acts { display: none; }
/* v41.1: review verdict rows keep their capitals (Ēm, Uo, UGR, Ra); only the column heads are small */
.pl-vd-t tbody th { text-transform: none; }
@media (max-width: 760px) { .pl.pl-simple .lead-ns { grid-template-columns: 1fr 1fr; } .pl.pl-simple [data-pp="results"] .lead-n span { white-space: nowrap; } }
/* v41.1: the first-visit "three steps" card lives beside the plan, never over it (placed by plan33.js placeGuide) */
.pl-guide.pl-guide-in { position: static; left: auto; right: auto; top: auto; max-width: none; box-shadow: none; z-index: auto; margin: 14px 16px 0; }
.pl.pl-simple .pl-guide.pl-guide-in { top: auto; }
.pl-guide-short { display: none; }
.pl-guide.pl-guide-strip { margin: 0; border-width: 0 0 1px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.pl-guide.pl-guide-strip .pl-guide-k, .pl-guide.pl-guide-strip ol, .pl-guide.pl-guide-strip .pl-guide-acts small { display: none; }
.pl-guide.pl-guide-strip .pl-guide-short { display: block; flex: 1; margin: 0; font-size: 12.5px; line-height: 1.4; color: #dcdad4; }
.pl-guide.pl-guide-strip .pl-guide-acts { margin: 0; flex: none; flex-wrap: nowrap; align-items: center; gap: 8px; }
.pl-guide.pl-guide-strip .pl-guide-acts .pbtn { margin-top: 0; padding: 6px 10px; }
