/* Reusable pieces: buttons, forms, cards, tables, dialogs, toasts. */

.btn {
  font: inherit; letter-spacing: inherit; cursor: pointer;
  min-height: 2.5rem; padding: 0.4rem 1.1rem;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover:not(:disabled) { background: var(--accent); opacity: 0.85; }
.btn-danger { border-color: var(--bad); color: var(--bad); }
.btn-small { min-height: 2rem; padding: 0.15rem 0.7rem; font-size: 0.9em; }
.btn-link { border-color: transparent; text-decoration: underline; padding: 0.15rem 0.4rem; }

.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field > label, .field > .field-label { font-weight: 600; font-size: 0.95em; }
.field small { color: var(--text-muted); }

input[type="text"], input[type="password"], input[type="number"], input[type="datetime-local"],
input[type="search"], select, textarea {
  font: inherit; letter-spacing: inherit; width: 100%; min-height: 2.5rem;
  padding: 0.45rem 0.7rem; border: 1px solid #8c8c8c; background: var(--bg); color: var(--text);
}
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { border-color: #6b6b6b; }
input:focus, select:focus, textarea:focus { border-color: var(--border-strong); }
input[type="color"] { width: 3rem; height: 2.6rem; padding: 0.15rem; border: 1px solid #8c8c8c; background: var(--bg); }
textarea { min-height: 6rem; resize: vertical; }
/* Checkboxes and radios: drawn here instead of by the browser, so they wear the colour theme. */
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; display: inline-grid; place-content: center;
  width: 1.3rem; height: 1.3rem; min-height: 0; padding: 0; margin: 0; cursor: pointer;
  background: var(--bg); border: 2px solid var(--border-strong);
  transition: background-color 0.14s, border-color 0.14s, box-shadow 0.14s, transform 0.14s var(--ease-spring);
}
input[type="checkbox"]::before {
  content: ""; width: 0.8rem; height: 0.8rem; background: var(--accent-contrast);
  -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat;
  transform: scale(0) rotate(-20deg); transition: transform 0.18s var(--ease-spring);
}
input[type="radio"]::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: var(--radius-round); background: var(--accent-contrast); transform: scale(0); transition: transform 0.18s var(--ease-spring); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { transform: scale(1) rotate(0); }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"]:hover:not(:disabled) { border-color: var(--accent); }
input[type="checkbox"]:active:not(:disabled), input[type="radio"]:active:not(:disabled) { transform: scale(0.88); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: 0.45; cursor: not-allowed; }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.check { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

.card { border: 1px solid var(--border); padding: 0.8rem 1rem; margin-bottom: 0.75rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; margin-bottom: 0.8rem; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.card > .table-wrap th:first-child, .card > .table-wrap td:first-child { padding-left: 0.1rem; }
.card > .table-wrap th:last-child, .card > .table-wrap td:last-child { padding-right: 0.1rem; }
.table-wrap tr:last-child > td { border-bottom: 0; }
th { font-size: 0.85em; font-weight: 600; color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }

.empty { text-align: center; color: var(--text-muted); padding: 2.5rem 1rem; }
.error-note, .form-error { color: var(--bad); }
.form-error:empty { display: none; }
.loading { color: var(--text-muted); padding: 1rem 0; }

.badge { display: inline-block; padding: 0 0.55rem; font-size: 0.85em; border: 1px solid var(--border-strong); }
.badge-good { color: var(--good); border-color: var(--good); }
.badge-bad { color: var(--bad); border-color: var(--bad); }
.badge-warn { color: var(--warn); border-color: var(--warn); }
.tag-dot { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.4em; border: 1px solid var(--border); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0.75rem; }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 10rem; }
.row .field { margin-bottom: 0; }
.row.bottom { align-items: flex-end; }
.stack > * + * { margin-top: 0.6rem; }

dialog { border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); padding: 0; width: min(40rem, 94vw); max-height: 90vh; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgb(0 0 0 / 45%); }
dialog .dialog-head { padding: 1.25rem var(--gap) 0; }
dialog .dialog-head h2 { margin: 0; }
dialog .dialog-body { padding: var(--gap); overflow-y: auto; flex: 1; }
dialog .dialog-body h3 { margin: 1.5rem 0 0.5rem; }
dialog .dialog-body h3:first-child { margin-top: 0; }
dialog .dialog-foot { padding: 0.9rem var(--gap); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: 0.5rem; z-index: 200; max-width: min(24rem, 92vw); }
.toast { background: var(--bg); border: 1px solid var(--border-strong); border-left-width: 6px; padding: 0.7rem 1rem; }
.toast-error { border-left-color: var(--bad); }
.toast-success { border-left-color: var(--good); }
.toast-info { border-left-color: var(--text); }

.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters > * { flex: 1; min-width: 12rem; }
.filters > .search { flex: 2; min-width: 14rem; }

.question-row { align-items: flex-start; }
.question-row .tag-line { margin-top: 0.4rem; }

/* Small labels: tags on a question or a dashboard. */
.chip { display: inline-flex; align-items: baseline; gap: 0.35rem; border: 1px solid var(--border); padding: 0 0.5rem; font-size: 0.85em; }

.card > .check { margin: 0.25rem 0 1rem; }


/* Rounded corners: --radius for the big things, --radius-sm for the small ones. */
.btn, input, select, textarea, .card, .stat, dialog, .toast, .a11y-pop, .sheet-pop, .sheet-question,
.choice, .lcd, .exam-passage, .exam-answer, .md-toolbar, .review-panel, .rs, .review-options .opt,
.table-wrap, .card-choice, .dd-btn, .dd-list, .md-editor, .md-preview, .answer-detail .item, .exam-locked { border-radius: var(--radius); }
.badge, .chip, .chip-btn, .btn-small, .rail-list, .sheet-row, .bubble, .sheet-n, .answer-strip button,
.pm, .cell, .meter, .meter > span, .bar, .bar > span, .choice-x, .dd-item, .swatch, .accent-dot, .cb-swatch i, .live-row, .stats > *,
.sk-line, .sk-block, .tag-dot, .presence-dot, .version-badge { border-radius: var(--radius-sm); }
/* The exam screen's question buttons, answers and bar buttons are the roundest. */
.rail-q, .choice-btn, .bar-btn, .round { border-radius: var(--radius-lg); }
.rail-q.current { border-radius: var(--radius-lg); }
input[type="checkbox"] { border-radius: var(--radius-sm); }
input[type="radio"] { border-radius: var(--radius-round); }

/* Icons sit before their label */
.btn .icon { margin-right: 0.4em; width: 1.1em; height: 1.1em; }
.btn-small .icon { width: 1em; height: 1em; }

/* ---- dropdowns: the select is replaced by a button + listbox (js/lib/dropdown.js) ---- */
.dd-native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.dd { position: relative; width: 100%; min-width: 0; }
.dd-btn {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 2.5rem; padding: 0.4rem 0.6rem 0.4rem 0.7rem; text-align: left;
  font: inherit; letter-spacing: inherit; color: var(--text); background: var(--bg); border: 1px solid #8c8c8c; cursor: pointer;
}
[data-theme="dark"] .dd-btn { border-color: #6b6b6b; }
.dd-btn:hover:not(:disabled) { border-color: var(--accent); }
.dd-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dd-btn:focus-visible, .dd.open .dd-btn { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); outline: none; }
.dd-btn > .icon { flex: none; width: 1.15em; height: 1.15em; color: var(--text-muted); margin: 0; }
.dd-btn > .icon:last-child { margin-left: auto; transition: transform 0.2s var(--ease-spring, ease); }
.dd.open .dd-btn > .icon:last-child { transform: rotate(180deg); }
.dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd.placeholder .dd-label { color: var(--text-muted); }
.dd-list {
  position: fixed; z-index: 200; margin: 0; padding: 0.25rem; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.dd-list[hidden] { display: none; }
.dd-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; cursor: pointer; border-radius: var(--radius); white-space: nowrap; }
.dd-item.active { background: var(--surface-2); }
.dd-item.selected { font-weight: 600; }
.dd-check { flex: none; width: 1.1em; height: 1.1em; color: var(--accent); }
.dd-check .icon { width: 1.1em; height: 1.1em; margin: 0; }
.dd-text { min-width: 0; }

/* ---- header menus: a clean white panel under the button, with icons ---- */

.filters .dd { flex: 1 1 14rem; min-width: 0; }
.q-title { font-weight: 600; margin-bottom: 0.1rem; }
.ut { text-transform: none; }
.version-badge { font-size: 0.6em; vertical-align: middle; font-weight: 500; }

/* ---- the knob (js/lib/knob.js): a plain dial with the number beside it ---- */
.knob-wrap { display: inline-flex; align-items: center; gap: 0.7rem; }
.knob { flex: none; width: 52px; height: 52px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.knob.turning { cursor: grabbing; }
.knob-svg { width: 100%; height: 100%; display: block; }
.knob-cap { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 3; transition: fill 0.15s, stroke 0.15s; }
.knob:hover .knob-cap { stroke: var(--accent); }
.knob:focus-visible .knob-cap { stroke: var(--accent); stroke-width: 6; }
.knob-pointer { transform-origin: 50px 50px; transition: transform 0.35s var(--ease-spring); }
.knob-pointer line { stroke: var(--accent); stroke-width: 7; stroke-linecap: round; }
.knob.turning .knob-pointer { transition: transform 0.14s ease-out; } /* still glides while you steer it, just closer to the pointer */
.knob-number { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.2rem; }
.knob-row { display: flex; align-items: center; gap: 0.9rem; }
.knob-row small { display: block; }
.btn { white-space: nowrap; }

/* ---- spacing rhythm ----
   Inside a card the last thing has no trailing margin (so top and bottom padding match), sub-headings
   get air above them, and a sub-heading straight under the card title stays close to it. */
.card > :last-child { margin-bottom: 0; }
.card h3 { margin: 1.25rem 0 0.5rem; }
.card > h2 + h3 { margin-top: 0.4rem; }
.card > h3:first-child { margin-top: 0; }
.card > p.muted:last-child { margin-top: 0.6rem; }
a.btn:not(.btn-link) { text-decoration: none; }
td:first-child { min-width: 9rem; }

@media (max-width: 40rem) { .plain-list .question-row .grow { flex-basis: 100%; } } /* the buttons drop under the text instead of squeezing it */

/* ---- quiet secondary actions: a "⋯" button, and a menu that floats above everything ---- */
.more { display: inline-block; }
.more-btn { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; cursor: pointer; background: none; color: var(--text-muted); border: 1px solid transparent; border-radius: var(--radius); }
.more-btn:hover, .more-btn[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.more-btn:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 1px; }
.more-btn .icon { margin: 0; }
.pop-menu { position: fixed; z-index: 200; min-width: 12rem; max-width: 22rem; padding: 0.25rem; display: grid; gap: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; animation: drop 0.12s var(--ease-out); transform-origin: top; }
.pop-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.42rem 0.6rem; font-size: 0.95em; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; white-space: nowrap; border-radius: var(--radius-sm); }
.pop-item:hover, .pop-item:focus-visible { background: var(--accent); color: var(--accent-contrast); outline: none; }
.pop-item:hover .icon, .pop-item:focus-visible .icon, .pop-item:hover .pop-hint, .pop-item:focus-visible .pop-hint { color: inherit; }
.pop-item.danger:hover, .pop-item.danger:focus-visible { background: var(--bad); color: #fff; }
.pop-sep { height: 1px; margin: 0.25rem 0.3rem; background: var(--border); }
.pop-head { display: grid; padding: 0.45rem 0.6rem 0.35rem; font-weight: 600; overflow-wrap: anywhere; }
.pop-sub { font-weight: 400; font-size: 0.85em; color: var(--text-muted); }
.pop-item .icon, .pop-gap { width: 1.1em; height: 1.1em; margin: 0; flex: none; color: var(--text-muted); }
.pop-label { flex: 1; }
.pop-hint { color: var(--text-muted); font-size: 0.85em; }
.pop-item.danger, .pop-item.danger .icon { color: var(--bad); }
.pop-item.danger:hover .icon, .pop-item.danger:focus-visible .icon { color: inherit; }
.row-link { cursor: pointer; }
tr.row-link:hover > td, li.row-link:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: 0.3rem; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.card-head h2 { margin-bottom: 0.7rem; }
.card-head .more { margin: -0.2rem -0.3rem 0 0; }

/* ---- a quieter page: flat sections, small grey labels, actions that appear when you reach for them ---- */
@media (hover: hover) {
  :is(.qrow, .catalog-row, .exam-row, .question-row, .sched-row, .option-editor, .user-row) .more-btn:not([aria-expanded="true"]) { opacity: 0; }
  :is(.qrow, .catalog-row, .exam-row, .question-row, .sched-row, .option-editor, .user-row):hover .more-btn,
  :is(.qrow, .catalog-row, .exam-row, .question-row, .sched-row, .option-editor, .user-row) .more-btn:focus-visible { opacity: 1; }
}
tr.row-link:hover > td, li.row-link:hover { background: var(--surface-2); }
.add-row-ghost { display: flex; align-items: center; gap: 0.5rem; width: 100%; margin-top: 0.4rem; padding: 0.55rem 0.4rem; border: 0; background: none; color: var(--text-muted); font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius); }
.add-row-ghost:hover, .add-row-ghost:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.add-row-ghost .icon { margin: 0; }

/* Ctrl+K */
.palette { display: grid; gap: 0.5rem; min-width: min(32rem, 80vw); }
.palette-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.palette-bar .icon { margin: 0; color: var(--text-muted); flex: none; }
.palette .palette-input { border: 0; box-shadow: none; background: transparent; outline: none; padding-inline: 0; }
.palette-list { list-style: none; margin: 0; padding: 0; max-height: 18rem; overflow-y: auto; }
.palette-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.7rem; cursor: pointer; border-radius: var(--radius-sm); }
.palette-item.active, .palette-item:hover { background: var(--surface-2); }
.palette-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-hint { flex: none; font-size: 0.85em; }
.palette-empty { padding: 0.7rem; color: var(--text-muted); }
dialog .dialog-foot:empty { display: none; }

/* page numbers under a long list */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; padding: 0.5rem 0 0.2rem; border-top: 1px solid var(--border); }
.pager-range { font-size: 0.85em; }
.pager-buttons { display: flex; align-items: center; gap: 0.15rem; }
.pager-n { min-width: 2rem; height: 2rem; padding: 0 0.4rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-size: 0.9em; cursor: pointer; }
.pager-n:hover:not(:disabled) { background: var(--surface-2); }
.pager-n.on { background: var(--accent); color: var(--accent-contrast); font-weight: 700; }
.pager-n:disabled { opacity: 0.35; cursor: default; }
.pager-gap { padding: 0 0.2rem; color: var(--text-muted); }

/* joined choice buttons (e.g. Todas | Minhas) */
.field > .seg { justify-self: start; }
.seg { display: inline-flex; flex: none; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.seg-btn { padding: 0 0.8rem; min-height: 2.4rem; border: 0; background: none; color: var(--text-muted); font: inherit; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--border-strong); }
.seg-btn:hover { color: var(--text); background: var(--surface-2); }
.seg-btn.on { background: var(--accent); color: var(--accent-contrast); font-weight: 600; }

/* the bank's tabs (Questões | Competências e etiquetas) under its title */
.tabs.bank-tabs { position: static; margin: -0.4rem 0 0.9rem; padding: 0; }
a.tab { text-decoration: none; }

/* ---- the picker: one popup for choosing from a big pool (js/lib/picker.js) ---- */
.pk { display: grid; gap: 1.2rem; height: min(30rem, 66vh); }
.pk.has-sections { grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); }
.pk-side { min-height: 0; display: flex; flex-direction: column; }
.pk-sections { overflow-y: auto; }
.pk-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.pk-bar { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.pk-search { flex: 1 1 12rem; min-width: 0; }
.pk-mode .seg-btn { min-height: 2.2rem; white-space: nowrap; }
.pk-facets { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pk-facets > .dd, .pk-facets > select { flex: 1 1 11rem; min-width: 0; }
.pk-list { flex: 1; min-height: 0; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); outline: none; }
.pk-list:focus-visible { border-color: var(--accent); }
.pk-group { position: sticky; top: 0; z-index: 1; padding: 0.35rem 0.8rem; background: var(--surface-2); color: var(--text-muted); font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.05em; }
.pk-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.pk-row:last-child { border-bottom: 0; }
.pk-row:hover, .pk-row.active { background: var(--surface-2); }
.pk-row.on { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pk-row.locked { cursor: default; opacity: 0.75; }
.pk-mark { flex: none; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--accent-contrast); }
.pk-mark.round { border-radius: var(--radius-round); }
.pk-row.on .pk-mark { background: var(--accent); border-color: var(--accent); }
.pk-mark .icon { width: 0.85rem; height: 0.85rem; margin: 0; }
.pk-text { display: grid; min-width: 0; flex: 1; }
.pk-label { overflow-wrap: anywhere; }
.pk-row.on .pk-label { font-weight: 600; }
.pk-detail { color: var(--text-muted); font-size: 0.88em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-taken { flex: none; font-size: 0.85em; }
.pk-empty { padding: 1rem; margin: 0; }
.pk-more { display: block; width: 100%; padding: 0.6rem; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.pk-more:hover { background: var(--surface-2); }
.pk-foot { display: flex; align-items: center; gap: 0.9rem; font-size: 0.9em; }
.pk-foot .muted { margin-right: auto; }
.pk-link { font: inherit; padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; }
@media (max-width: 40rem) { .pk.has-sections { grid-template-columns: 1fr; height: auto; max-height: 70vh; } .pk-sections { grid-auto-flow: column; overflow-x: auto; } }
/* the field that opens it: what is chosen as chips, and a button */
.pkf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; min-height: 2.6rem; padding: 0.3rem 0.4rem; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.pkf-chips { display: contents; }
.pkf > .btn { margin-left: auto; }
.chip-more { font: inherit; padding: 0.15rem 0.6rem; cursor: pointer; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: none; color: var(--text); }

/* the picker built into a page (the exam's bank tab): fills its pane instead of sizing itself like a popup */
.pk.inline { flex: 1; height: auto; min-height: 0; padding-bottom: 0.7rem; }
/* a row's preview: the question as the student sees it, opened under the row */
.pk-eye { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; color: var(--text-muted); cursor: pointer; }
.pk-eye:hover, .pk-eye.on { color: var(--accent); border-color: var(--accent); }
.pk-eye .icon { margin: 0; }
.pk-item { border-bottom: 1px solid var(--border); }
.pk-item > .pk-row { border-bottom: 0; }
.pk-preview { padding: 0.2rem 0.8rem 0.8rem 2.9rem; }
