/* Study Quest — veshta.css (V7.9-ai): the Veshta's window (js/ui-veshta.js) and its "Your AI" part in the Account window
 * (js/vrata.js). Flat colour on the codex window's dark material; paper rows for your files and drafts. Never gradients. */

.vs-backdrop { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: rgba(4, 4, 5, 0.72); }
.vs-win { width: min(1180px, 100%); max-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.vs-banner { cursor: help; }
.vs-tabs { display: flex; gap: 4px; padding: 6px 14px 0; border-bottom: 1px solid var(--cx-line, #030304); }
.vs-tab { padding: 6px 14px; border: 1px solid #3a3128; border-bottom: none; border-radius: 4px 4px 0 0; background: #1d1813; color: var(--cx-text-dim, #aea89c);
  font: 600 14px/1.2 var(--cx-font-body, serif); cursor: pointer; }
.vs-tab.is-on { background: #2a2219; color: var(--cx-gold-text, #e3b562); }
.vs-tab:focus-visible, .vs-chatname:focus-visible, .vs-car:focus-visible { outline: 2px solid var(--cx-torch, #ff8a3d); outline-offset: 1px; }
.vs-body { overflow: auto; font: 400 15px/1.5 var(--cx-font-body, serif); color: var(--cx-text, #ebe4d6); }
.vs-lead { margin: 4px 0 10px; }
.vs-meta { font-size: 13px; color: var(--cx-text-dim, #aea89c); }
.vs-note { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid #8f6430; background: #231c14; font-size: 13.5px; color: var(--cx-text, #ebe4d6); }
.vs-warn { margin: 4px 0 8px; padding: 6px 10px; border-left: 3px solid var(--cx-vermilion-hi, #e8613b); background: #2a1913; font-size: 13.5px; }
.vs-msg { min-height: 1.4em; margin: 6px 0 0; font-size: 13.5px; color: var(--cx-gold-text, #e3b562); }
.vs-status { margin: 0 0 6px; font-weight: 600; color: var(--cx-text-dim, #aea89c); }
.vs-status.is-on { color: #9fd38a; }
.vs-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0; }
.vs-row { display: flex; align-items: center; gap: 8px; margin: 0; }
.vs-row .cx-label { min-width: 70px; }
.vs-in { min-width: 280px; }
.vs-num { width: 70px; }
.vs-sel { max-width: 360px; }
.vs-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.vs-check { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; cursor: pointer; }
.vs-pick { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }

/* the course folder: Finder-like columns in the Nauka's paper (folder | its contents | the next level | the file); flat colour */
.vs-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.vs-where { font-weight: 700; color: var(--cx-gold-text, #e3b562); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.vs-small { padding: 2px 10px; font-size: 13px; }
.vs-sort { height: 30px; }
.vs-cols { display: flex; height: min(52vh, 460px); overflow-x: auto; overflow-y: hidden; border: 1px solid #8a7656; border-radius: 3px; background: #f8f0dd; color: var(--cx-ink-text, #1d140c); }
.vs-col { flex: 0 0 250px; display: flex; flex-direction: column; border-right: 1px solid #d6c39b; overflow: hidden; }
.vs-col.is-drop, .vs-r.is-drop { background: #efe0bd; outline: 2px dashed #8a6a2f; outline-offset: -3px; }
.vs-collist { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 4px 0; }
.vs-r { display: flex; align-items: center; gap: 7px; padding: 3px 8px 3px 10px; font: 500 14px/1.35 var(--cx-font-body, serif); cursor: default; user-select: none; }
.vs-r:hover { background: #f1e6cc; }
.vs-r.is-open { background: #e6d8b8; }
.vs-r.is-sel { background: #2f4f86; color: #fbf6ea; }
.vs-r.is-sel .vs-chev { color: #fbf6ea; }
.vs-r:focus { outline: none; }
.vs-r.is-warn .vs-n { color: var(--cx-ink-rubric, #7a1d10); }
.vs-ic { flex: none; width: 18px; height: 18px; display: inline-flex; }
.vs-ic svg { width: 18px; height: 18px; }
.vs-n { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.vs-chev { flex: none; color: #8a7656; font-size: 16px; }
.vs-ren { flex: 1; min-width: 0; height: 24px; padding: 0 6px; font-size: 14px; }
.vs-empty { padding: 10px 12px; font-size: 13px; color: var(--cx-ink-text-dim, #45331f); list-style: none; }
.vs-zbrow { flex: none; border-top: 1px solid #d6c39b; padding: 6px 10px; cursor: pointer; color: var(--cx-ink-text-dim, #45331f); }
.vs-statusline { padding: 4px 6px 0; font-size: 13px; color: var(--cx-text-dim, #aea89c); }
.vs-info { flex: 1 0 300px; padding: 12px 14px; overflow-y: auto; }
.vs-info .vs-meta { color: var(--cx-ink-text-dim, #45331f); }
.vs-bigic svg { width: 54px; height: 54px; }
.vs-iname { margin: 6px 0 2px; font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; }
.vs-preview { max-height: 190px; overflow: auto; margin: 10px 0 0; padding: 8px; border: 1px solid #d6c39b; background: #fffcf3; font: 12.5px/1.45 var(--cx-font-body, serif); white-space: pre-wrap; color: var(--cx-ink-text, #1d140c); }
.vs-zb .zb-list { list-style: none; margin: 10px 0 0; padding: 0; }
.vs-zb .zb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid #e3d4b2; }
.vs-zb .zb-t { flex: 1 1 100%; overflow-wrap: anywhere; }
.vs-zb .zb-t small { color: var(--cx-ink-text-dim, #45331f); }

/* link a folder on this Mac */
.vs-link { max-width: 620px; padding: 12px 0; }
.vs-linkbtn { padding: 0; border: none; background: none; color: var(--cx-gold-leaf, #f4d58c); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }

/* Help me sort: the proposals to tick */
.vs-moves { list-style: none; margin: 6px 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.vs-mv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; padding: 5px 8px; border: 1px solid #cdb98f; border-radius: 3px; background: #fbf6ea; color: var(--cx-ink-text, #1d140c); }
.vs-mv.is-off { opacity: 0.55; }
.vs-mv .vs-n { flex: 0 1 340px; }
.vs-mv .vs-meta { color: var(--cx-ink-text-dim, #45331f); }

/* picking files or whole folders (Make cards, Chats) */
.vs-picker { max-height: 34vh; overflow-y: auto; margin: 4px 0 8px; padding: 4px 0; border: 1px solid #8a7656; border-radius: 3px; background: #f8f0dd; color: var(--cx-ink-text, #1d140c); }
.vs-pkl { list-style: none; margin: 0; padding: 0; }
.vs-pkrow { display: flex; align-items: center; gap: 4px; padding: 2px 8px; }
.vs-pkrow:hover { background: #f1e6cc; }
.vs-car { width: 18px; padding: 0; border: none; background: none; color: #8a7656; font-size: 12px; cursor: pointer; }
.vs-pklab { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; cursor: pointer; font: 500 14px/1.35 var(--cx-font-body, serif); }
.vs-pickbox { margin: 6px 0; }
.vs-pickbox summary { cursor: pointer; color: var(--cx-text-dim, #aea89c); font-size: 13.5px; }

/* the drafts: one paper row each (unticked rows fade; a red line when it would not read as a card) */
.vs-sugg { margin: 8px 0; padding: 0 0 0 26px; }
.vs-s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; padding: 6px 8px; border: 1px solid #cdb98f; border-radius: 3px; background: #fbf6ea; color: var(--cx-ink-text, #1d140c); }
.vs-s.is-off { opacity: 0.55; }
.vs-s.is-bad { border-color: var(--cx-ink-rubric, #7a1d10); }
.vs-front { flex: 1 1 260px; }
.vs-back { flex: 2 1 320px; }
.vs-type { width: 170px; }
.vs-arrow { color: #8a7656; }
.vs-err { flex-basis: 100%; font-size: 12.5px; color: var(--cx-ink-rubric, #7a1d10); }
.vs-err:empty { display: none; }

/* this hero's chats */
.vs-chatwrap { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 14px; min-height: 380px; }
.vs-chatlist { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid #3a3128; padding-right: 10px; }
.vs-chatrow { display: flex; align-items: center; gap: 4px; }
.vs-chatrow.is-on .vs-chatname { color: var(--cx-gold-text, #e3b562); background: #2a2219; }
.vs-chatname { flex: 1; min-width: 0; padding: 4px 6px; border: none; border-radius: 3px; background: none; color: var(--cx-text, #ebe4d6); text-align: left;
  font: 500 14px/1.3 var(--cx-font-body, serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.vs-chat { display: flex; flex-direction: column; min-width: 0; }
.vs-log { flex: 1; max-height: 46vh; overflow: auto; padding-right: 4px; }
.vs-m { margin: 0 0 8px; padding: 8px 10px; border-radius: 3px; }
.vs-m--y { background: #2a2219; }
.vs-m--v { background: #f8f0dd; color: var(--cx-ink-text, #1d140c); }
.vs-m--v .vs-meta { color: var(--cx-ink-text-dim, #45331f); }
.vs-who { font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; }
.vs-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.vs-ask { width: 100%; box-sizing: border-box; resize: vertical; }
.vs-del { padding: 2px 10px; }

/* the Account window's Your AI part (js/vrata.js) */
.vrata-ai-sub { font-size: 0.8em; color: var(--cx-text-dim, #aea89c); }
.vrata-ai .vs-in { min-width: 220px; }

@media (max-width: 700px) {
  .vs-chatwrap { grid-template-columns: 1fr; }
  .vs-chatlist { border-right: none; border-bottom: 1px solid #3a3128; padding: 0 0 8px; }
  .vs-in { min-width: 0; width: 100%; }
}

/* on the paper: native check boxes (the game's dark ones would vanish) and paper-coloured fields */
.vs-picker input[type="checkbox"], .vs-mv input[type="checkbox"], .vs-s input[type="checkbox"], .vs-check input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: auto; width: 15px; height: 15px; margin: 0; accent-color: #2f4f86; }
.vs-mv .codex-input, .vs-s .codex-input { height: 28px; border: 1px solid #c9b48a; border-radius: 3px; background: #fffaf0; color: var(--cx-ink-text, #1d140c); font-size: 14px; }
.vs-cols, .vs-picker, .vs-moves, .vs-sugg, .vs-m--v { color-scheme: light; }   /* the paper's native controls drawn light (the game page is dark) */
/* V7.9.3 "Claude in one click": the Claude Code on this Mac card on top of Your AI */
.vs-cc { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #5d4526; border-radius: 6px; background: #1d1711; }
.vs-h4 { margin: 4px 0 6px; font-size: 15px; color: var(--cx-gold-text, #e3b562); }
.vs-h4 .vs-meta { font-weight: normal; }
.vs-cmdrow { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.vs-cmd { padding: 4px 8px; border-radius: 4px; background: #0f0c08; color: #ebe4d6; font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.vs-link-out { color: var(--cx-gold-text, #e3b562); text-decoration: underline; }
/* V7.9.4 "The Veshta, stronger": Draft cards · Check my deck; a deck per chapter; where each card came from; the answer as it is
   written (Stop); the files an answer used; follow-ups; the Proba (Quiz me). Calm: flat colour, the same paper rows. */
.vs-seg { display: inline-flex; gap: 0; margin: 0 0 10px; border: 1px solid #3a3128; border-radius: 4px; overflow: hidden; }
.vs-seg .vs-segb { margin: 0; border: none; border-radius: 0; background: #1d1813; color: var(--cx-text-dim, #aea89c); }
.vs-seg .vs-segb.is-on { background: #2a2219; color: var(--cx-gold-text, #e3b562); }
.vs-units { margin: 6px 0 8px; padding: 0 0 0 26px; max-height: 40vh; overflow-y: auto; }
.vs-unit { padding: 2px 0; color: var(--cx-text-dim, #aea89c); }
.vs-unit .vs-n { white-space: normal; }
.vs-unit.is-done { color: var(--cx-text, #ebe4d6); }
.vs-unit.is-now { color: var(--cx-gold-text, #e3b562); font-weight: 600; }
.vs-ghead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; padding: 4px 0; border-bottom: 1px solid #3a3128; }
.vs-gname { font-weight: 700; color: var(--cx-gold-text, #e3b562); }
.vs-smeta, .vs-used { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; }
.vs-s .vs-meta { color: var(--cx-ink-text-dim, #45331f); }
.vs-src { padding: 0 6px; border: 1px solid #c9b48a; border-radius: 10px; background: #fffaf0; color: #2f4f86; font: 500 12.5px/1.6 var(--cx-font-body, serif); cursor: pointer; }
.vs-src:hover { background: #efe0bd; }
.vs-src:focus-visible, .vs-chip:focus-visible { outline: 2px solid var(--cx-torch, #ff8a3d); outline-offset: 1px; }
.vs-was { color: var(--cx-ink-text-dim, #45331f); text-decoration: line-through; text-decoration-color: rgba(122, 29, 16, 0.55); }
.vs-fixrow { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vs-fixes .vs-meta { flex-basis: 100%; }
.vs-stop { padding: 2px 12px; }
.vs-live .vs-text:empty::before { content: '…'; color: #8a7656; }
.vs-liveline { margin: 4px 0; font-style: italic; }
.vs-liveline:empty { display: none; }
.vs-follow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.vs-chip { padding: 2px 10px; border: 1px solid #c9b48a; border-radius: 12px; background: #fffaf0; color: var(--cx-ink-text, #1d140c); font: 500 13px/1.5 var(--cx-font-body, serif); cursor: pointer; text-align: left; }
.vs-chip:hover { background: #efe0bd; }
.vs-quizbtn { margin-bottom: 6px; }
.vs-quizhead { margin: 0 0 6px; padding: 4px 8px; border-left: 3px solid #8f6430; background: #231c14; }
.vs-proba { font-weight: 700; color: var(--cx-gold-text, #e3b562); cursor: help; }
.vs-verdict { display: inline-block; margin: 0 0 4px; padding: 0 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.vs-verdict.is-right { background: #dcebd2; color: #2c5a1e; }
.vs-verdict.is-partly { background: #f1e3bf; color: #6b4b12; }
.vs-verdict.is-wrong { background: #f2dad2; color: #7a1d10; }
.vs-fixes input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; width: 15px; height: 15px; margin: 0; accent-color: #2f4f86; }

/* V7.11.1 "Claude with one button": the chat's model and effort, the sign-in's code box */
.vs-ccbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0; }
.vs-ccpick { display: inline-flex; align-items: center; gap: 6px; }
.vs-ccpick .vs-sel { width: auto; min-width: 7em; }
.vs-ccact { margin: 6px 0; }
.vs-codebox { margin: 4px 0 8px; }
.vs-codebox summary { cursor: pointer; opacity: .8; }
.vs-codebox .vs-in { margin: 6px 6px 6px 0; max-width: 24em; }

/* 13 Nov 2026 (B1): THE STUDY CHAT (js/ui-study-chat.js), a page of the Veshta: the study folder line, folders and the archive, the
   orange ring while Claude works (amber when nothing moves for a while), Allow cards, attachments. Flat colours, the window's own look. */
.sc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sc-folder { font-weight: 700; color: var(--cx-gold-text, #e3b562); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--cx-text-dim, #aea89c); cursor: pointer; }
.sc-chathead { display: flex; gap: 6px; flex: 1 1 100%; }
.sc-title { flex: 1 1 auto; min-width: 0; }
.sc-fold { flex: 0 0 150px; }
.sc-view { display: block; width: 100%; text-align: left; margin: 2px 0; }
.sc-view.is-on { color: var(--cx-gold-text, #e3b562); border-color: #8f6430; }
.sc-side .codex-btn--primary { width: 100%; margin-bottom: 6px; }
.sc-stage { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.sc-stage__w { font-size: 13px; font-weight: 600; color: #f0a050; }
.sc-ring { position: relative; width: 40px; height: 40px; flex: none; }
.sc-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.sc-ring__bg { fill: none; stroke: #3a3128; stroke-width: 4; }
.sc-ring__fg { fill: none; stroke: #e07b2a; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.sc-ring__pct { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10.5px/1 var(--cx-font-body, serif); color: #f0a050; }
.sc-ring.is-slow .sc-ring__fg { stroke: #e0a23d; }
.sc-ring.is-slow + .sc-stage__w, .sc-ring.is-slow .sc-ring__pct { color: #e0a23d; }
.sc-live { box-shadow: inset 3px 0 0 #e07b2a; animation: sc-pulse 2.4s ease-in-out infinite; }
@keyframes sc-pulse { 50% { box-shadow: inset 3px 0 0 #f0a050; } }
.sc-allow { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #4f7fb8; background: #17202c; }
.sc-allow p { margin: 0 0 6px; font-size: 14px; }
.sc-allow .sc-btn { margin-right: 6px; }
.sc-drop { border: 1px dashed transparent; border-radius: 4px; padding: 2px; }
.sc-drop.is-over { border-color: #e07b2a; background: #2a1d12; }
.sc-attach { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid #3a3128; border-radius: 12px; font-size: 12.5px; background: #1d1813; }
.sc-chipx { padding: 0 6px; min-height: 0; }
.sc-changed .vs-src { border-color: #6b8f3a; }
.sc-url { cursor: help; }
.sc-model { margin-top: 2px; font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .sc-live { animation: none; } .sc-ring__fg { transition: none; } }

/* V7.16.7.4: Claude Code underneath: its task list, its plan card, the last command */
.sc-todos { list-style: none; margin: 6px 0; padding: 6px 10px; border-left: 3px solid #e07b2a; background: #1d1813; font-size: 13.5px; }
.sc-todo { padding: 1px 0; }
.sc-todo.is-completed { color: var(--cx-text-dim, #aea89c); text-decoration: line-through; }
.sc-todo.is-in_progress { color: #f0a050; font-weight: 600; }
.sc-plan { max-height: 260px; overflow: auto; margin: 0 0 8px; padding: 8px 10px; background: #12161d; white-space: pre-wrap; font: 13px/1.45 var(--cx-font-body, serif); color: var(--cx-text, #ebe4d6); }
.sc-cmd { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
