/* Study Quest — levels.css (V7.8 round 6, lane T): a long course name in a tight place ends in "…"; the hover shows it whole
 * (js/ui-coursename.js). Flat, no gradient; it only cuts the text, the place keeps its own font and colour. */
.sq-cname { display: inline-block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.sq-cname--wrap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
/* the class form: the resource bar (follows the style) and the study mode */
.sqp-cf-res { display: inline-block; padding: 3px 10px; border: 1px solid rgba(201, 160, 82, 0.45); border-radius: 3px; background: rgba(20, 14, 8, 0.35); color: #f0d79a; font-weight: 600; }
.sqp-cf-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.sqp-cf-mode { display: flex; flex-direction: column; align-items: flex-start; min-width: 120px; padding: 5px 10px; border: 1px solid rgba(201, 160, 82, 0.35); border-radius: 3px; background: rgba(20, 14, 8, 0.35); color: #e8d7b0; cursor: pointer; text-align: left; }
.sqp-cf-mode small { opacity: 0.75; font-size: 11px; }
.sqp-cf-mode.active { border-color: #e6b422; background: rgba(230, 180, 34, 0.16); color: #ffe7a3; }
/* fixer r56 (play critic S5): which mode is on reads at a glance: the chosen plate lit, the other one quiet */
.sqp-cf-mode.active { background: rgba(230, 180, 34, 0.30); box-shadow: inset 0 0 0 1px #e6b422; }
.sqp-cf-mode:not(.active) { opacity: 0.72; }
.sqp-cf-mode:not(.active):hover { opacity: 1; border-color: rgba(230, 180, 34, 0.7); }
.sqp-cf-goal { max-width: 160px; }
.set-studymode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.set-studymode .btn.set-sm.active, .set-studymode .set-sm[aria-checked="true"] { border-color: #e6b422; background: rgba(230, 180, 34, 0.24); color: #ffe7a3; box-shadow: inset 0 0 0 1px rgba(230, 180, 34, 0.55); }
.set-studymode .set-sm-hours { width: 64px; }
.set-studymode .set-sm-line { flex-basis: 100%; }
.cc-onepace { margin: 10px 0 8px; font-size: 13px; line-height: 1.4; color: var(--cx-text-dim, rgba(235, 228, 214, 0.7)); }
/* the Opsada's plan card: the study mode switch (js/ui-examplan.js) */
.xp-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 6px; }
.xp-mode__k { font-weight: 600; opacity: 0.8; margin-right: 2px; }
.xp-mode__line { flex-basis: 100%; font-size: 12px; opacity: 0.8; }
/* the quests' delete marks (V7.8 lane T): the Quest Log's row ✕ sits in its header line; the part chips use forget.css's corner ✕ */
.ql2-node { position: relative; }
.ql2-node-h .ql2-node-x { position: absolute; top: -7px; right: -7px; opacity: 0; }   /* the row's corner, like a chip's */
.ql2-node:hover .ql2-node-x, .ql2-node:focus .ql2-node-x, .ql2-node-x:focus-visible { opacity: 1; transform: none; }
.ql2-node:focus-visible { outline: 1px solid #e6b422; outline-offset: 1px; }
.ql2-partw { margin: 0 2px; }
.nk-parts { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.nk-pchip { display: inline-block; padding: 1px 6px; border: 1px solid rgba(201, 160, 82, 0.4); border-radius: 3px; font-size: 11px; opacity: 0.9; }
.nk-pchip:focus-visible { outline: 1px solid #e6b422; }
.book-ex__head .book-ex__x { position: static; margin-left: 8px; }
.book-part .book-ex__x { position: static; margin-left: auto; }
.book-ex__head:hover .book-ex__x, .book-part:hover .book-ex__x, .book-part:focus-within .book-ex__x, .book-part:focus .book-ex__x, .book-ex__x:focus-visible { opacity: 1; }

/* fixer r56 (play critic S2): a part on its way to the Zaborav fades at once (the Quest Log redraws when the server has it) */
.ql2-partw.is-going { opacity: 0.35; pointer-events: none; }
/* fixer r56 (the lead: the character select's long course name was cut mid-word with no "…"): the side plate's course wraps on two
 * lines and ends in "…" (the clamp needs normal wrapping; .sq-cname's one-line nowrap stays everywhere else); the master Letopis's
 * course cell the same (play critic small) */
.glue-select__side .glue-select__class.ac-clamp, .glue-select__side .glue-select__class.ac-clamp.sq-cname { display: -webkit-box; white-space: normal; overflow-wrap: break-word; text-overflow: ellipsis; }
.ac-course { white-space: normal; overflow-wrap: break-word; text-overflow: ellipsis; }

/* V7.12 "Your own goal": the Namera (what the hero is for) at the top of the class form: a school course or a Navika (a life goal) */
.sqp-cf-namera { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; margin-bottom: 8px; }
.sqp-cf-namera > .field-label { flex-basis: 100%; }
.sqp-cf-kind { flex: 1 1 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 10px; border: 1px solid rgba(201, 160, 82, 0.35); border-radius: 3px; background: rgba(20, 14, 8, 0.35); color: #e8d7b0; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s, opacity 0.15s; }
.sqp-cf-kind small { opacity: 0.75; font-size: 11px; line-height: 1.3; }
.sqp-cf-kind.active { border-color: #e6b422; background: rgba(230, 180, 34, 0.24); box-shadow: inset 0 0 0 1px #e6b422; color: #ffe7a3; }
.sqp-cf-kind:not(.active) { opacity: 0.75; }
.sqp-cf-kind:not(.active):hover { opacity: 1; border-color: rgba(230, 180, 34, 0.7); }
.sqp-cf-namera-fixed { font-size: 12px; color: #e8d7b0; opacity: 0.85; }
.sqp-cf-lifenote { margin: 2px 0 8px; font-size: 12px; line-height: 1.4; color: #d9c79c; opacity: 0.9; }
