/* how the lab sits inside the website (on top of the generated lab.css) */
#ictlab { background: transparent; overflow: visible; line-height: 1.6; }
#ictlab [hidden] { display: none !important; }
#ictlab a.btn, #ictlab a.tab { text-decoration: none; }
#ictlab a.tab:focus-visible, #ictlab .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#ictlab .tab { transform: none; }
#ictlab a.tab:hover { transform: translateY(-3px); }
#ictlab .tab .lock { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--accent); }
#ictlab .tab .lock svg, #ictlab .ict-lock > svg { width: 14px; height: 14px; }
#ictlab .ict-lock { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 20px; border-radius: var(--r-xl); background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair-strong); }
#ictlab .ict-lock > svg { width: 40px; height: 40px; color: var(--accent); }
#ictlab .ict-lock p { color: var(--ink-muted); max-width: 32rem; margin: 0; }
#ictlab .ict-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#ictlab .ict-fail { color: var(--bad); }
#ictlab .ict-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-subtle); min-height: 120px; justify-content: center; }
#ictlab .ict-sec { margin-block: 40px 0; }
#ictlab .ict-sec h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
#ictlab .ict-sec > p { color: var(--ink-subtle); margin: 0 0 20px; }
#ictlab .ict-end { margin-block: 40px 56px; }
#ictlab .feat > .ict-lock { align-content: center; }
#ictlab .ict-sec > .feat, #ictlab .ict-sec > h2 + .feat { margin-top: 18px; }

/* progress, daily challenge, leaderboard */
#ictlab .ict-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
#ictlab .ict-stats div { padding: 14px 16px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair); }
#ictlab .ict-stats dt { font-size: 12.5px; color: var(--ink-subtle); }
#ictlab .ict-stats dd { margin: 0; font-size: 24px; font-weight: 700; }
#ictlab .ict-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
#ictlab fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
#ictlab legend { font-weight: 600; font-size: 17px; margin-bottom: 12px; }
#ictlab .ict-opts { display: grid; gap: 8px; }
#ictlab .ict-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: var(--r-md); background: var(--s2); box-shadow: inset 0 0 0 1px var(--hair-strong); cursor: pointer; overflow-wrap: anywhere; }
#ictlab .ict-opt input { width: 18px; height: 18px; min-height: 0; flex: 0 0 auto; padding: 0; }
#ictlab .ict-opt small { margin-left: auto; color: var(--ok); white-space: nowrap; }
#ictlab fieldset:disabled .ict-opt { cursor: default; }
#ictlab .ict-opt.ok { box-shadow: inset 0 0 0 2px var(--ok); }
#ictlab .ict-opt.no { box-shadow: inset 0 0 0 2px var(--bad); }
#ictlab .ict-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#ictlab .ict-verdict { font-weight: 600; margin: 0; }
#ictlab .ict-verdict.ok { color: var(--ok); }
#ictlab .ict-verdict.no { color: var(--bad); }
#ictlab .ict-hint { color: var(--ink-subtle); font-size: 13.5px; margin: 8px 0 0; }
#ictlab .ict-board { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
#ictlab .ict-board li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: var(--r-md); background: var(--s2); }
#ictlab .ict-board li.me { box-shadow: inset 0 0 0 2px var(--primary-hover); }
#ictlab .ict-board .rk { width: 24px; text-align: center; color: var(--accent); font-weight: 700; }
#ictlab .ict-board .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ictlab .ict-badge-h { margin: 24px 0 10px; }
#ictlab .ict-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#ictlab .ict-badges li { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-subtle); }
#ictlab .ict-badges li svg { width: 22px; height: 22px; }
#ictlab .ict-badges li.on { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
#ictlab .ict-badges li.on svg { color: var(--accent); }
#ictlab .ict-badges small { font-size: 12px; color: var(--ink-subtle); }
@media (max-width: 640px) { #ictlab .ict-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* actions under a tool */
#ictlab .ict-bar { margin-top: 16px; display: grid; gap: 8px; }
#ictlab .ict-bar__row { display: flex; flex-wrap: wrap; gap: 8px; }
#ictlab .ict-bar .ds-btn { min-height: 44px; }
#ictlab .ict-bar__note { margin: 0; min-height: 20px; font-size: 14px; color: var(--ink-muted); }
#ictlab .ict-bar__panel form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
#ictlab .ict-bar__panel form label { flex: 1 1 220px; }
#ictlab .ict-bar__panel ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
#ictlab .ict-bar__panel li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#ictlab .ict-bar__panel li span { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
#ictlab [data-reply] { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
@media print {
  .lx-hdr, footer, .ds-phero, .lx-appnav, .lx-help, .lx-salespop, #ictlab .ict-bar, #ictlab .ict-actions { display: none !important; }
}

/* free PDF for a number */
#ictlab .ict-gift { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: center; }
#ictlab .ict-gift form { display: grid; gap: 12px; }
#ictlab .ict-gift p { color: var(--ink-muted); margin: 0; }
#ictlab .ict-gift .ds-btn { min-height: 44px; }

/* section headings as in the lab sample: small eyebrow, then a heading with one coloured part */
#ictlab .ict-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .4px; color: var(--accent); }
#ictlab .ict-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
#ictlab .ict-sec .ict-eyebrow + h2 { margin-top: 10px; }
#ictlab .ict-sec h2 em { font-style: normal; color: var(--accent); }
