/* What the two decks of lesson 5.4 share (aiops.js): prompts in parts, candidate prompts, AI answers.
   Loads after ../ccna-net.css, ../sites.css, ../company.css and ../snmp-syslog/watch.css. */

/* The parts of a prompt: one colour each, wherever the part is named. */
.p-persona { --pc: #7c3aed; } .p-task { --pc: #0a5a8a; } .p-context { --pc: #0f766e; }
.p-class { --pc: #be123c; } .p-format { --pc: #1d8102; } .p-limits { --pc: #b45309; }

.prompt { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 10px; max-width: 760px; }
.pp { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; align-items: start; border-left: 5px solid var(--pc); padding: 4px 8px; background: color-mix(in srgb, var(--pc) 6%, #fff); border-radius: 0 6px 6px 0; }
.pp .chip { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--pc); padding-top: 2px; }
.pp .ptx { font-size: 14px; }
.pp .ptx code { font-size: 12px; }
@media (max-width: 700px) { .pp { grid-template-columns: 1fr; gap: 2px; } }

/* A task, and four candidate prompts. */
.task { background: #eef2f7; border: 1px solid #c9d6e2; border-radius: 8px; padding: 8px 12px; font-size: 14.5px; font-weight: 600; max-width: 900px; }
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .pick { grid-template-columns: 1fr; } }
.cand { background: #fff; border: 1.5px solid var(--sv-line); border-radius: 10px; padding: 8px 12px 8px 40px; position: relative; font-size: 13.5px; }
.cand .cl { position: absolute; left: 10px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #475569; color: #fff; display: grid; place-items: center; font-size: 12.5px; }
.cand .ct code { font-size: 12px; }
.cand .cv { margin-top: 6px; font-size: 12.5px; font-weight: 700; }
.cand.best { border-color: #1d8102; box-shadow: inset 0 0 0 1.5px #1d8102; background: #f4fbf1; }
.cand.best .cl { background: #1d8102; } .cand.best .cv { color: #145c01; }
.cand.worse { opacity: .82; } .cand.worse .cv { color: #b91c1c; }

/* An AI's answer. */
.aians { background: #fff; border: 1px solid #c4b5fd; border-left: 5px solid #7c3aed; border-radius: 8px; padding: 8px 12px; font-size: 14px; max-width: 820px; }
.aians .aw { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #7c3aed; }
.aians .at code { font-size: 12.5px; }
.aians .av { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--sv-line); font-weight: 700; font-size: 13.5px; }
.aians.bad .av { color: #b91c1c; } .aians.good .av { color: #145c01; }
.aians.log .at { font-family: var(--mono); font-size: 12.5px; }
