/* CertAce Network+ performance-based questions: the parts that the CCNA lab shell (lab-app.css) does not have.
   Same "guided split" design: reading column on the left, the work area on the right, fit to the window on a desktop. */
body.pbq-app .bar-np { background: rgba(194, 106, 46, .2); color: var(--praline); }
body.pbq-app .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
body.pbq-app .chip { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255, 225, 190, .24); font: 600 11.5px/18px var(--mono); color: var(--praline); }
.pbq-goals li.part { border-color: rgba(242, 178, 46, .5); background: rgba(242, 178, 46, .06); }
.pbq-goals li.part .mark { border-color: var(--gold); color: var(--gold); }
.pbq-goals li.ok .mark::after { content: none; }
.pbq-goals li small { display: block; grid-column: 2 / 4; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.pbq-goals li.ok small.why { color: #A9DDB7; }
.pbq-goals .mark { font-size: 12px; }
.pbq-goals li:not(.ok) .mark { font: 600 12px/1 var(--mono); color: var(--muted); } .pbq-goals li.no .mark { color: var(--wrong); }
.pbq-goals li:not(.ok) .mark::after { content: none; }
.hosts { width: 100%; border-collapse: collapse; font-size: 13px; } .hosts th { text-align: left; padding: 3px 6px 3px 0; color: var(--praline); font-weight: 700; } .hosts td { text-align: left; padding: 3px 6px 3px 0; color: var(--body); }
/* the list on the left must never hide under the notice at the bottom: a fade says "more below" and the scrollbar stays visible */
body.pbq-app .read { position: relative; }
body.pbq-app .read.more::after { content: ""; position: absolute; left: 0; right: 10px; bottom: 36px; height: 34px; pointer-events: none; background: linear-gradient(180deg, rgba(20, 14, 12, 0), #140E0C 92%); }
body.pbq-app .read-scroll { padding-bottom: 6px; }
body.pbq-app .pbq-goals li { padding: 6px 12px; font-size: 14px; line-height: 19.5px; }
body.pbq-app .noaffil { padding-top: 2px; }

.pbq-work { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(227, 181, 138, .55) rgba(255, 236, 214, .06); }
body.pbq-app .pbq-work:has(.stagebox) { overflow: hidden; }
.dim { color: var(--muted); font-size: 13px; }
.msg { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .25); font-size: 13.5px; line-height: 20px; color: var(--body); flex: none; } .msg b { color: var(--ink); } .msg.bad { border-color: rgba(240, 138, 107, .45); } .msg.ok { border-color: rgba(134, 209, 154, .45); }
/* drag and drop: slots, items, tray */
.slot { display: grid; place-items: center; width: 100%; min-height: 46px; padding: 5px; border: 1.5px dashed rgba(255, 225, 190, .24); border-radius: 10px; background: rgba(255, 236, 214, .04); color: var(--muted); font-weight: 600; font-size: 12px; line-height: 16px; font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.slot[data-over=true] { border-color: var(--gold); background: rgba(242, 178, 46, .12); } .slot.filled { border-style: solid; border-color: var(--praline); background: rgba(227, 181, 138, .12); color: var(--ink); }
.slot.ok { border-color: var(--correct); background: rgba(134, 209, 154, .1); } .slot.bad { border-color: var(--wrong); background: rgba(240, 138, 107, .1); } .slot.hl { outline: 2px solid var(--gold); outline-offset: 2px; }
.tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px dashed rgba(255, 225, 190, .24); border-radius: 12px; min-height: 54px; flex: none; align-items: center; }
.item { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid rgba(255, 225, 190, .24); background: #2B1C14; color: var(--ink); font: 650 13.5px/1 inherit; cursor: grab; touch-action: none; user-select: none; }
.item:hover { border-color: var(--gold); } .item[aria-pressed=true] { border-color: var(--gold); background: rgba(242, 178, 46, .18); box-shadow: 0 0 0 3px rgba(242, 178, 46, .15); }
.item.zl { background: rgba(194, 106, 46, .18); } .item.drag { position: fixed; z-index: 200; pointer-events: none; opacity: .92; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
/* PBQ 1: the diagram scales to the space the work area leaves, the tray and the message stay under it */
.stagebox { flex: 1; min-height: 240px; container-type: size; display: grid; place-items: center; }
.diagram { position: relative; aspect-ratio: 900/620; width: min(100cqw, calc(100cqh * 900 / 620)); background: rgba(0, 0, 0, .28); border: 1px solid var(--glass-line); border-radius: 14px; flex: none; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; } .zone { fill: none; stroke-width: 1.5; stroke-dasharray: 6 6; } .zlabel { font-weight: 700; font-size: 11px; font-family: inherit; letter-spacing: .1em; text-transform: uppercase; }
.node { position: absolute; transform: translate(-50%, -50%); width: 14%; min-width: 96px; text-align: center; } .znode { position: absolute; transform: translate(-50%, -50%); width: 16%; min-width: 118px; } .znode .zt, .jobm { display: none; }
.sid { display: block; margin-bottom: 2px; font: 700 10px var(--mono); color: var(--praline); }
.static { position: absolute; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; font-weight: 600; font-size: 11.5px; line-height: 14px; font-family: inherit; color: var(--body); } .static i { display: block; margin: 0 auto 3px; width: 34px; height: 24px; border: 1.5px solid var(--praline); border-radius: 6px; background: #2B1C14; }
/* PBQ 3: ports and bins */
.mcols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.mcol { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; } .mcol .eyebrow { margin: 0; }
.mrows { display: grid; gap: 5px; } .mrow { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; align-items: center; }
.mname b { font-size: 14px; } .mname small { display: block; color: var(--muted); font-size: 12.5px; line-height: 16px; } .mrow .slot { min-height: 38px; }
.bins { display: grid; gap: 8px; } .bin { display: block; text-align: left; padding: 8px 10px; min-height: 92px; cursor: default; } .bt { display: block; margin-bottom: 6px; font-weight: 700; font-size: 11px; font-family: inherit; letter-spacing: .1em; text-transform: uppercase; color: var(--praline); }
.bc { display: flex; flex-wrap: wrap; gap: 6px; } .chipin { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--praline); background: rgba(227, 181, 138, .12); color: var(--ink); font: 650 12.5px/1 inherit; cursor: pointer; }
.chipin.ok { border-color: var(--correct); background: rgba(134, 209, 154, .1); } .chipin.bad { border-color: var(--wrong); background: rgba(240, 138, 107, .1); }
/* PBQ 2: the rule table */
table.rules { width: 100%; border-collapse: separate; border-spacing: 0 6px; flex: none; } .rules th { font-weight: 700; font-size: 11px; font-family: inherit; letter-spacing: .1em; text-transform: uppercase; color: var(--praline); text-align: left; padding: 0 6px; } .rules td { padding: 0 3px; } .rules .num { width: 30px; text-align: center; font: 700 12px var(--mono); color: var(--muted); }
.rules select, .forms select, .forms input, .lrow select { width: 100%; min-height: 38px; padding: 0 8px; border-radius: 9px; border: 1px solid rgba(255, 225, 190, .24); background: #20150F; color: var(--ink); font-size: 13.5px; }
.rules select.permit { border-color: rgba(134, 209, 154, .6); color: #BDE6C9; } .rules select.deny { border-color: rgba(240, 138, 107, .6); color: #F7BBA9; } .rules tr.hit select { box-shadow: 0 0 0 2px rgba(242, 178, 46, .45); }
.mv { display: flex; gap: 2px; } .mv button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--glass-line); background: transparent; color: var(--muted); cursor: pointer; } .mv button:hover { border-color: var(--gold); color: var(--gold); }
.flows { flex: none; border: 1px solid var(--glass-line); border-radius: 14px; overflow: hidden; } .flows summary { cursor: pointer; padding: 10px 14px; font-weight: 650; color: var(--praline); display: flex; gap: 10px; } #fsum { margin-left: auto; font: 600 12px var(--mono); color: var(--muted); }
.fl { display: grid; grid-template-columns: 24px 1fr 62px 62px; gap: 8px; align-items: center; padding: 6px 14px; border-top: 1px solid var(--glass-line); font: 12.5px/18px var(--mono); color: var(--body); cursor: pointer; } .fl:hover { background: var(--glass); }
.fl .st { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-weight: 800; font-size: 11px; font-family: inherit; } .fl.ok .st { background: var(--correct); color: #0E2A18; } .fl.no .st { background: var(--wrong); color: #3A150B; } .fl .ex { color: var(--muted); } .fl.locked { opacity: .55; }
.pill { padding: 2px 8px; border-radius: 999px; font: 700 11px var(--mono); text-align: center; } .pill.permit { background: rgba(134, 209, 154, .16); color: #BDE6C9; } .pill.deny { background: rgba(240, 138, 107, .16); color: #F7BBA9; }
/* PBQ 4: cases */
.case { padding: 12px 14px; border: 1px solid var(--glass-line); border-radius: 14px; background: rgba(0, 0, 0, .18); } .case h3 { margin: 0 0 4px; font-size: 15px; color: var(--gold); } .case p { margin: 0 0 8px; color: var(--body); font-size: 14px; line-height: 20px; }
.term { margin: 0 0 10px; padding: 10px 12px; overflow: auto; background: #000; color: #E6E1DA; border-radius: 10px; font: 12.5px/18px var(--mono); max-height: 220px; }
.q { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; } .q legend { padding: 0; margin-bottom: 4px; font-weight: 650; font-size: 14px; line-height: 20px; } .q legend i { color: var(--muted); font-weight: 400; }
.opt { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--body); cursor: pointer; } .opt:hover { background: var(--glass); } .opt input { margin-top: 3px; accent-color: #F2B22E; }
/* PBQ 5 and 6 */
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; } .fgroup { padding: 12px 14px; border: 1px solid var(--glass-line); border-radius: 14px; background: rgba(0, 0, 0, .18); } .fgroup h3 { margin: 0 0 8px; font-size: 14px; color: var(--praline); }
.frow { display: grid; gap: 4px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.ltable { display: grid; gap: 8px; } .lrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(190px, 36%); gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(0, 0, 0, .18); } .lid { font: 700 13px var(--mono); color: var(--gold); } .lf { font-size: 14px; line-height: 20px; color: var(--body); }
@media (max-width: 1100px) {
  body.pbq-app .pbq-work, body.pbq-app .pbq-work:has(.stagebox) { overflow: visible; } .stagebox { container-type: normal; display: block; min-height: 0; } .diagram { width: 100%; } .node { min-width: 70px; } .node .slot, .znode .slot { min-height: 40px; font-size: 11px; padding: 3px; } .znode { min-width: 84px; }
  .mcols { grid-template-columns: 1fr; } body.pbq-app .read.more::after { display: none; } .rcol { height: auto !important; }
}
@media (max-width: 700px) {
  .diagram { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; } .diagram svg, .static { display: none; } .node, .znode { position: static; transform: none; width: auto; min-width: 0; }
  .node .slot, .znode .slot { min-height: 46px; font-size: 12.5px; } .znode .zt { display: block; white-space: nowrap; margin-bottom: 3px; font-weight: 700; font-size: 10.5px; font-family: inherit; letter-spacing: .1em; text-transform: uppercase; } .jobm { display: block; margin: 4px 0 0; font-size: 11.5px; line-height: 15px; color: var(--muted); }
  .lrow { grid-template-columns: 30px minmax(0, 1fr); } .lrow select { grid-column: 1 / 3; } .fl { grid-template-columns: 24px 1fr 54px; } .fl .ex { display: none; } .rules th:nth-child(n+4), .rules td:nth-child(n+4) { display: none; }
}
@media (min-width: 1500px) { #flows { display: grid; grid-template-columns: 1fr 1fr; } #flows .fl { border-right: 1px solid var(--glass-line); } }
body.pbq-app .ring span { font-size: 11px; letter-spacing: -.04em; }
@media (min-width: 1101px) {
  .diagram { container-type: inline-size; }
  .node, .znode { min-width: 0; } .node .slot, .znode .slot { min-height: 0; height: clamp(30px, 7.4cqw, 52px); font-size: clamp(9.5px, 1.75cqw, 13px); line-height: 1.15; padding: 2px 3px; }
  .static { font-size: clamp(9.5px, 1.6cqw, 12px); } .sid { font-size: clamp(8.5px, 1.3cqw, 10px); }
}

.frow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 6px; } .forms select, .forms input { min-height: 34px; }
