/* Reading, annotating and reconciling the same draft on paper and in text. */
.quick-note {
  position:fixed; z-index:90; box-sizing:border-box; width:min(320px,calc(100vw - 16px));
  max-height:calc(100dvh - 16px); overflow:auto; padding:12px; background:white;
  border:1px solid #c9d9e4; border-radius:14px; box-shadow:0 12px 38px #19324832;
  color:#193143; font:13px/1.4 inherit;
}
.quick-head,.quick-bottom,.quick-type,.edit-pair,.comment-shortcuts,.note-filters,.zone-row,.zone-buttons,.transcript>.subhead>div {display:flex;align-items:center;gap:6px}
.quick-head,.quick-type,.zone-row {justify-content:space-between}
.quick-head {margin-bottom:5px}
.quick-head b {font-size:14px}
.quick-head .ib {height:25px;width:25px}
.quick-quote,.editor-quote,.suggestion blockquote {
  margin:6px 0 9px; padding:5px 9px; border:0; border-left:3px solid #9dc7d8; color:#476170;
  background:#f3f8fa;font-size:12px;line-height:1.5;white-space:pre-line;
}
.quick-quote {max-height:48px; overflow:auto}
.quick-note input,.note-filters select {box-sizing:border-box;border:1px solid #d5dfe6;border-radius:7px;color:#294453;background:#fff}
.quick-note input {width:100%;padding:9px 10px;font:inherit}
.quick-note #quick-choices {max-height:min(234px,38dvh);overflow:auto;scrollbar-width:thin;margin:6px 0}
.quick-group>small {display:block;padding:5px 5px 3px;color:#647c8a;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}
.quick-type button {min-height:31px;border-radius:6px;color:#314b59}
.quick-type button:first-child {flex:1;text-align:left;padding:4px 6px}
.quick-type button:first-child small {float:right;color:#6f8190;font-size:11px}
.quick-type button:last-child {padding:3px 8px;color:#8494a1}
.quick-type button:last-child.starred {color:#ad7000}
.quick-type .starred svg {fill:#ffe39b}
.quick-type:hover,.quick-type:focus-within {background:#ecf6fc;border-radius:6px}
.quick-bottom {justify-content:space-between;border-top:1px solid #e6edf1;padding-top:5px}
.empty-types,.selection-hint {font-size:12px;color:#617888;padding:4px 0 9px}
.reading-lines {margin:6px 0 16px;line-height:1.8;font:16px/1.85 Georgia,serif;color:#253d50;cursor:text}
.reading-line {display:grid;grid-template-columns:26px 1fr;align-items:start;padding:4px 0}
.reading-line>button {font:11px/2.65 Arial,sans-serif;color:#7a8e99;user-select:none;text-align:left}
.reading-line>[data-text-line] {white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
.reading-line .spotlight {background:#fff1c6}
.reading-line .text-mark {padding:0;color:inherit;background:#d8edf5;box-shadow:inset 0 -2px #68b1cd;cursor:pointer}
.reading-line .text-mark.ai {background:#fff0cc;box-shadow:inset 0 -2px #d8ae51}
.note-filters {margin:2px 0 11px;min-width:0}
.note-filters select {min-width:0;flex:1;padding:5px 6px;font:inherit;font-size:11px;height:30px}
.note-tags {font-size:11px;color:#685887;font-weight:600;margin:1px 0 6px}
.note-evidence {margin:7px 0;font-size:12px;color:#405c6c}
.note-evidence summary {cursor:pointer;color:#497389}
.note-evidence b {display:block;margin-top:4px;font-size:12px}
.zone-row {padding:7px 0;border-bottom:1px solid #e7edf1;min-height:34px}
.zone-row b,.zone-jump {font-size:12px;font-weight:600;text-align:left}
.zone-row small,.requirements>small {display:block;color:#667c8a;font-size:11px;margin-top:3px}
.zone-jump {display:inline-flex;align-items:center;gap:4px;color:#324c61}
.zone-jump:hover,.criterion small button {color:#0078a8}
.zone-buttons {flex:none;gap:3px}
.zone-buttons button {width:30px;height:29px;display:grid;place-items:center;border:1px solid #d9e4e9;border-radius:6px;color:#657a89}
.zone-buttons .picked.yes {color:#127659;background:#dbf3e9;border-color:#93ccb7}
.zone-buttons .picked.no {color:#a33e47;background:#fff0ed;border-color:#e0a5a2}
.zone-buttons button:disabled {opacity:.6}
.requirements {background:#f4f8fa;border-radius:8px;padding:2px 9px 8px;margin:8px 0}
.edit-pair label {min-width:0;flex:1}
.comment-shortcuts {flex-wrap:wrap;justify-content:space-between;margin:5px 0}
.comment-shortcuts .btn {font-size:11px;min-height:27px}
.tools {flex-wrap:wrap;gap:3px}
.tools .tool.on {color:#0075aa;background:#e1f2fb}
.source-card .tools>div {display:flex;flex-wrap:wrap;align-items:center}
.panel-body .criterion select {max-width:92px}
@media(min-width:761px) {
 .editor-grid.left-handed:not(.wide) {grid-template-columns:minmax(278px,1fr) minmax(0,1.75fr)}
 .editor-grid.left-handed:not(.wide)>.side-stack {grid-column:1;grid-row:1}
 .editor-grid.left-handed:not(.wide)>.source-card {grid-column:2;grid-row:1}
 .analysis-card .panel-body {max-height:clamp(280px,45vh,640px);overflow:auto;scrollbar-width:thin}
}
@media(max-width:760px) {
 .quick-type button {min-height:39px}
 .quick-note {box-shadow:0 4px 24px #1b3c4445}
 .source-card .tools .ib {width:31px;height:34px}
 .reading-lines {font-size:16px}
}
.quick-templates>small {display:block;padding:4px 5px;color:#647c8a;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}
.quick-templates>button {display:block;width:100%;text-align:left;padding:6px;border-radius:6px;color:#365265}
.quick-templates>button:hover,.quick-templates>button:focus-visible {background:#eef7fb}
.quick-note kbd {display:inline-block;min-width:17px;text-align:center;background:#f2f6f9;border:1px solid #dce4eb;border-radius:4px;font:11px/1.45 monospace;color:#607887}
.zone-binding {display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 9px;background:#e6f4fa;border-radius:7px;font-size:12px;color:#315e75}
.zone-row small button {font:inherit;color:#207da2}
