/* =====================================================================
   JEFF APP COMPONENTS, faithful port, copied from the app
   (Jeff App - No Header standalone). Scoped under .jeff-appcard so the
   site's tokens/fonts don't leak in and vice-versa. Token values are the
   app's reader (.pdfv) context, where these components actually live.
   ===================================================================== */
.jeff-appcard{
  --paper:#fdfcf9; --paper-2:#fbfaf4; --bg:#fdfcf9;
  --ink:#262219; --ink-2:#3a352b; --muted:#6f685a; --muted-2:#9c9482;
  --line:#e7e2d6; --line-2:#d9d3c4; --acc-prac:#7a52e8; --erase-pink:#ec4899;
  --p1-hi:#ffd4d4; --p1-ink:#7a1f2b; --p1-edge:#e08a8a;
  --p2-hi:#fff1a3; --p2-ink:#4a3a05; --p2-edge:#d9bf4f;
  --p3-hi:#e4dcff; --p3-ink:#3d2b7a; --p3-edge:#b3a3ee;
  --p4-hi:#cdeede; --p4-ink:#155c41; --p4-edge:#86cbab;
  --f-display:"Archivo",sans-serif;
  font-family:"Inter",system-ui,sans-serif; color:var(--ink); text-align:left; font-weight:400;
}
.jeff-appcard *{ box-sizing:border-box; }
.jeff-appcard .ai-icon, .jeff-appcard .icon{
  font-family:'Material Symbols Outlined'; font-weight:normal; font-style:normal;
  font-feature-settings:'liga'; -webkit-font-feature-settings:'liga';
  line-height:1; letter-spacing:normal; text-transform:none; white-space:nowrap; display:inline-block; }

/* =========================== STICKY NOTE, .note.hw-study =========================== */
.jeff-appcard .note.hw-study{ position:relative; --kc:var(--acc-prac,#7a52e8); overflow:hidden; padding:12px 13px 13px;
  border:1px solid color-mix(in oklab,var(--kc) 22%, var(--line)); border-radius:13px;
  background:color-mix(in oklab, var(--paper) 94%, var(--kc) 6%);
  box-shadow:0 1px 2px rgba(15,15,12,.04); }
.jeff-appcard .note.hw-study:hover, .jeff-appcard .note.hw-study.note-lit{
  border:1px solid color-mix(in oklab,var(--kc) 40%, var(--line));
  background:color-mix(in oklab, var(--paper) 90%, var(--kc) 9%);
  box-shadow:0 0 0 1px color-mix(in oklab,var(--kc) 30%, transparent), 0 6px 18px -6px color-mix(in oklab,var(--kc) 28%, transparent); }
.jeff-appcard .note.hw-study[data-color="violet"]{ --kc:#7a52e8; }
.jeff-appcard .note.hw-study[data-color="amber"]{ --kc:#b8860b; }
.jeff-appcard .note.hw-study[data-color="green"]{ --kc:#5c8a3f; }
.jeff-appcard .note.hw-study[data-color="rose"]{ --kc:#c2476b; }
.jeff-appcard .note.hw-study[data-color="sky"]{ --kc:#3d77ab; }
.jeff-appcard .note.hw-study .hw-ix{ position:absolute; top:8px; right:12px; z-index:3; font-family:"Geist Mono",monospace; font-size:13px; font-weight:700; letter-spacing:.01em; color:var(--kc); }
.jeff-appcard .note.hw-study .x{ position:absolute; top:7px; right:28px; z-index:2; border:none; background:none; padding:0 2px; font-family:inherit; font-size:13px; line-height:1; color:var(--muted-2); opacity:0; transition:opacity .12s,color .12s; cursor:pointer; }
.jeff-appcard .note.hw-study .x:hover{ color:var(--erase-pink); }
.jeff-appcard .note.hw-study:hover .x, .jeff-appcard .note.hw-study.is-focused .x{ opacity:1; }
.jeff-appcard .note.hw-study .hw-wm{ position:absolute; right:9px; bottom:-14px; top:auto; z-index:0; pointer-events:none; user-select:none;
  font-family:var(--f-display); font-weight:700; font-size:78px; line-height:1; letter-spacing:-.04em;
  transform:rotate(-8deg); transform-origin:100% 100%; color:var(--kc); opacity:.12; transition:opacity .15s; }
.jeff-appcard .note.hw-study:hover .hw-wm, .jeff-appcard .note.hw-study.is-focused .hw-wm{ opacity:.17; }
.jeff-appcard .note.hw-study.is-focused{ box-shadow:0 0 0 2px color-mix(in oklab,var(--kc) 72%, transparent), 0 8px 22px -8px color-mix(in oklab,var(--kc) 40%, transparent); }
/* body */
.jeff-appcard .note.hw-study .hw-study-body{ position:relative; z-index:1; display:flex; flex-direction:column; gap:0; }
.jeff-appcard .note.hw-study .sb{ position:relative; }
.jeff-appcard .note.hw-study .sb-text{ position:relative; z-index:3; }
.jeff-appcard .note.hw-study .sb-md{ font-size:13.5px; line-height:1.5; color:var(--ink); padding:1px 22px 1px 0; cursor:text; }
.jeff-appcard .note.hw-study .sb-md > *:first-child{ margin-top:0; } .jeff-appcard .note.hw-study .sb-md > *:last-child{ margin-bottom:0; }
.jeff-appcard .note.hw-study .sb-md p{ margin:0 0 4px; }
.jeff-appcard .note.hw-study .sb-md h4{ font-family:var(--f-display); font-size:16px; font-weight:700; letter-spacing:-.01em; margin:5px 0 2px; }
.jeff-appcard .note.hw-study .sb-md h5{ font-size:13.5px; font-weight:700; margin:5px 0 2px; }
.jeff-appcard .note.hw-study .sb-md h6{ font-family:"Geist Mono",monospace; font-size:10.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin:5px 0 2px; }
.jeff-appcard .note.hw-study .sb-md ul, .jeff-appcard .note.hw-study .sb-md ol{ margin:2px 0 4px; padding-left:18px; }
.jeff-appcard .note.hw-study .sb-md li{ margin:1px 0; }
.jeff-appcard .note.hw-study .sb-md strong{ font-weight:700; } .jeff-appcard .note.hw-study .sb-md em{ font-style:italic; }
.jeff-appcard .note.hw-study .sb-md code{ font-family:"Geist Mono",monospace; font-size:.88em; background:color-mix(in oklab,var(--kc) 10%, transparent); padding:0 3px; border-radius:3px; }
/* woven chat quote */
.jeff-appcard .note.hw-study .sb-chat{ position:relative; z-index:1; margin:5px 0; padding-left:16px; }
.jeff-appcard .note.hw-study .sb-chat + .sb-chat{ margin-top:2px; }
.jeff-appcard .note.hw-study .sb-chat::before{ content:""; position:absolute; left:6px; top:16px; bottom:2px; width:2px; border-radius:2px; background:color-mix(in oklab,var(--kc) 50%, transparent); }
.jeff-appcard .note.hw-study .sb-chat .bc-wand{ position:absolute; left:0; top:0; z-index:1; font-family:'Material Symbols Outlined'; font-feature-settings:'liga'; font-size:14px; line-height:1; color:var(--kc); }
.jeff-appcard .note.hw-study .sb-chat .bc-body{ font-size:12.5px; line-height:1.5; color:var(--ink-2); padding-right:16px; }
.jeff-appcard .note.hw-study .sb-chat.from-me .bc-body{ color:var(--ink); }
.jeff-appcard .note.hw-study .sb-chat .bc-x{ position:absolute; top:-2px; right:0; border:none; background:none; font-size:14px; line-height:1; color:var(--muted-2); cursor:pointer; opacity:0; padding:0 2px; transition:opacity .12s, color .12s; }
.jeff-appcard .note.hw-study .sb-chat:hover .bc-x{ opacity:1; }
/* footer row, colour swatches + ask; space is RESERVED so the hover reveal never shifts layout */
.jeff-appcard .note.hw-study .hw-study-foot{ position:relative; z-index:1; display:flex; visibility:hidden; opacity:0;
  align-items:center; justify-content:flex-end; gap:8px; margin-top:8px; transition:opacity .15s ease; }
.jeff-appcard .note.hw-study:hover .hw-study-foot, .jeff-appcard .note.hw-study.is-focused .hw-study-foot{ visibility:visible; opacity:1; }
.jeff-appcard .note.hw-study .hw-study-ask{ display:inline-flex; align-items:center; gap:5px; padding:5px 11px 5px 9px; border-radius:999px; border:1px solid color-mix(in oklab,var(--kc) 34%, var(--line)); background:color-mix(in oklab,var(--kc) 8%, transparent); color:var(--kc); font-family:inherit; font-size:11px; font-weight:600; cursor:pointer; transition:.12s; }
.jeff-appcard .note.hw-study .hw-study-ask:hover{ background:color-mix(in oklab,var(--kc) 15%, transparent); }
.jeff-appcard .note.hw-study .hw-study-ask .ai-icon{ font-size:13px; }
.jeff-appcard .note.hw-study .hw-study-swatches{ display:flex; align-items:center; gap:5px; }
.jeff-appcard .note.hw-study .hw-sw{ width:13px; height:13px; border-radius:50%; padding:0; cursor:pointer; border:1.5px solid color-mix(in oklab,var(--ink) 16%, transparent); transition:transform .1s, box-shadow .12s; }
.jeff-appcard .note.hw-study .hw-sw:hover{ transform:scale(1.18); }
.jeff-appcard .note.hw-study .hw-sw[data-color="violet"]{ background:#7a52e8; }
.jeff-appcard .note.hw-study .hw-sw[data-color="amber"]{ background:#c8941f; }
.jeff-appcard .note.hw-study .hw-sw[data-color="green"]{ background:#5c8a3f; }
.jeff-appcard .note.hw-study .hw-sw[data-color="rose"]{ background:#c2476b; }
.jeff-appcard .note.hw-study .hw-sw[data-color="sky"]{ background:#3d77ab; }
.jeff-appcard .note.hw-study .hw-sw.is-on{ box-shadow:0 0 0 2px var(--paper), 0 0 0 3.5px color-mix(in oklab,var(--ink) 38%, transparent); }

/* =========================== PIN BOARD CARD, .pf-card =========================== */
.jeff-appcard .pf-card{ display:flex; flex-direction:column; align-items:stretch; width:min(840px,90vw); position:relative;
  border:1.5px solid #cf3b30; border-radius:20px; overflow:hidden; background:var(--paper); box-shadow:0 30px 84px -34px rgba(40,30,15,.5); }
.jeff-appcard .pf-card.active{ border-color:#cf3b30; box-shadow:0 26px 70px -30px rgba(40,30,15,.5); }
/* header */
.jeff-appcard .bc-head{ display:flex; align-items:center; gap:10px; padding:13px 14px 13px 17px; position:relative; z-index:3;
  border-bottom:1px solid color-mix(in oklab,var(--line) 70%,#cf3b30); background:var(--paper); }
.jeff-appcard .bc-head .pf-badge{ display:inline-flex; align-items:center; gap:5px; background:#cf3b30; color:#fff; border-radius:8px;
  padding:4px 9px 4px 7px; font-family:'Geist Mono',monospace; font-size:11px; font-weight:600; letter-spacing:.02em; flex:none; }
.jeff-appcard .bc-head .pf-badge .icon{ font-size:14px; }
.jeff-appcard .bc-head .pf-type{ font-family:'Geist Mono',monospace; font-size:9.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted-2); }
.jeff-appcard .bc-head .pf-srcmini{ font-family:'Geist Mono',monospace; font-size:10px; color:var(--muted-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jeff-appcard .bc-head .sp{ flex:1; }
.jeff-appcard .pf-cmts{ width:28px; height:28px; flex:none; display:grid; place-items:center; border:1px solid var(--line-2); background:var(--paper); color:var(--muted); border-radius:8px; cursor:pointer; transition:.15s; }
.jeff-appcard .pf-cmts .icon{ font-size:16px; }
.jeff-appcard .pf-cmts:hover{ border-color:var(--ink-2); color:var(--ink); }
.jeff-appcard .pf-cmts.on{ border-color:#cf3b30; color:#cf3b30; background:color-mix(in oklab,#cf3b30 7%,var(--paper)); }
.jeff-appcard .bc-head .pf-remove{ width:28px; height:28px; border:none; background:transparent; color:var(--muted-2); border-radius:7px; cursor:pointer; display:grid; place-items:center; transition:.15s; flex:none; }
.jeff-appcard .bc-head .pf-remove:hover{ background:color-mix(in oklab,#cf3b30 9%,transparent); color:#cf3b30; }
.jeff-appcard .bc-head .pf-remove .icon{ font-size:17px; }
/* body grid */
.jeff-appcard .pf-card .bcard-body{ display:grid; grid-template-columns:minmax(0,1fr) 250px; grid-template-rows:minmax(0,1fr); height:clamp(280px,44vh,352px); flex:1; min-height:0; }
.jeff-appcard .pf-card.cmts-collapsed{ width:min(500px,90vw); }
.jeff-appcard .pf-card.cmts-collapsed .bcard-body{ grid-template-columns:1fr; }
.jeff-appcard .pf-card.cmts-collapsed .bc-cmts{ display:none; }
/* left, artifact on the index ruling */
.jeff-appcard .bc-main{ position:relative; padding:22px 24px 16px; display:flex; flex-direction:column; overflow:hidden; min-height:0; }
.jeff-appcard .bc-main::before{ content:''; position:absolute; inset:0; z-index:0; pointer-events:none; background-repeat:repeat,no-repeat;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 29px, color-mix(in oklab,#cf3b30 9%,transparent) 29px, color-mix(in oklab,#cf3b30 9%,transparent) 30px),
    linear-gradient(to right, transparent 46px, color-mix(in oklab,#cf3b30 22%,transparent) 46px, color-mix(in oklab,#cf3b30 22%,transparent) 47px, transparent 47px); }
.jeff-appcard .bc-kind{ position:relative; z-index:1; font-family:'Geist Mono',monospace; font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-2); margin-bottom:14px; }
.jeff-appcard .bc-content{ position:relative; z-index:1; flex:1; min-height:0; display:flex; flex-direction:column; overflow:auto; }
.jeff-appcard .bc-content > *{ position:relative; z-index:1; width:100%; }
.jeff-appcard .bc-content .demo-passage p{ margin:0; font-family:'Fraunces',Georgia,serif; font-weight:400; font-size:17px; line-height:1.56; color:var(--ink-2); }
.jeff-appcard .bc-content .demo-passage .hl{ background:color-mix(in oklab,#cf3b30 18%,transparent); color:var(--ink); box-shadow:0 0 0 1px color-mix(in oklab,#cf3b30 22%,transparent); border-radius:3px; padding:0 2px; }
.jeff-appcard .bc-content .demo-passage .cite{ margin-top:14px; font-family:'Geist Mono',monospace; font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-2); }
.jeff-appcard .bc-actions{ position:relative; z-index:1; margin-top:auto; padding-top:18px; display:flex; align-items:center; gap:8px; }
.jeff-appcard .bc-actions .pf-board{ flex:none; width:auto; font-family:inherit; font-size:12.5px; font-weight:500; border:1px solid var(--line-2); background:var(--paper); color:var(--ink-2); border-radius:9px; padding:7px 13px 7px 11px; cursor:pointer; display:inline-flex; align-items:center; gap:7px; transition:.15s; }
.jeff-appcard .bc-actions .pf-board:hover{ border-color:#cf3b30; color:#cf3b30; background:color-mix(in oklab,#cf3b30 6%,var(--paper)); }
.jeff-appcard .bc-actions .pf-board .icon{ font-size:15px; }
/* right, comments column */
.jeff-appcard .bc-cmts{ display:flex; flex-direction:column; min-width:0; min-height:0; border-left:1px solid var(--line); background:color-mix(in oklab,var(--paper) 84%,var(--bg)); }
.jeff-appcard .cmts-head{ flex:none; display:flex; align-items:center; gap:7px; padding:12px 11px 5px 15px; font-family:'Geist Mono',monospace; font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.jeff-appcard .cmts-head .icon{ font-size:15px; color:var(--muted); }
.jeff-appcard .cmts-collapse{ width:23px; height:23px; flex:none; border:none; background:transparent; color:var(--muted-2); margin-left:auto; border-radius:6px; cursor:pointer; display:grid; place-items:center; transition:.15s; }
.jeff-appcard .cmts-collapse:hover{ background:var(--paper-2); color:var(--ink); }
.jeff-appcard .cmts-collapse .icon{ font-size:17px; }
/* study note as the comments column */
.jeff-appcard .pf-study{ position:relative; --kc:#cf3b30; flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; margin:0 13px 12px; padding:4px 3px 12px; background:transparent; border:none; box-shadow:none; border-radius:13px; }
.jeff-appcard .pf-study .hw-wm{ position:absolute; right:9px; bottom:-12px; z-index:0; pointer-events:none; user-select:none; font-family:'Material Symbols Outlined'; font-variation-settings:'FILL' 1,'wght' 400,'opsz' 48; font-size:58px; line-height:1; font-feature-settings:'liga'; transform:rotate(-8deg); transform-origin:100% 100%; color:var(--kc); opacity:.1; transition:opacity .15s; }
.jeff-appcard .pf-study:hover .hw-wm{ opacity:.15; }
.jeff-appcard .pf-study .hw-study-body{ position:relative; z-index:1; flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:0; }
.jeff-appcard .pf-study .sb{ position:relative; }
.jeff-appcard .pf-study .sb-text{ position:relative; z-index:3; }
.jeff-appcard .pf-study .sb-chat{ position:relative; z-index:1; margin:5px 0; padding-left:16px; }
.jeff-appcard .pf-study .sb-chat::before{ content:""; position:absolute; left:6px; top:16px; bottom:2px; width:2px; border-radius:2px; background:color-mix(in oklab,var(--kc) 50%,transparent); }
.jeff-appcard .pf-study .sb-chat .bc-wand{ position:absolute; left:0; top:0; z-index:1; font-family:'Material Symbols Outlined'; font-feature-settings:'liga'; font-size:14px; line-height:1; color:var(--kc); }
.jeff-appcard .pf-study .sb-chat .bc-body{ display:block; font-size:12.5px; line-height:1.5; color:var(--ink-2); padding-right:16px; }
.jeff-appcard .pf-study .sb-chat.from-me .bc-body{ color:var(--ink); }
.jeff-appcard .pf-study .sb-md{ font-size:13.5px; line-height:1.5; color:var(--ink); padding:1px 4px 2px 0; }
.jeff-appcard .pf-study .sb-md > *:first-child{ margin-top:0; } .jeff-appcard .pf-study .sb-md > *:last-child{ margin-bottom:0; }
.jeff-appcard .pf-study .sb-md p{ margin:0 0 4px; }
.jeff-appcard .pf-study .sb-md h4{ font-family:'Archivo',sans-serif; font-size:15px; font-weight:700; letter-spacing:-.01em; margin:5px 0 2px; }

@media (max-width:860px){
  .jeff-appcard .pf-card .bcard-body{ grid-template-columns:1fr; height:auto; }
  .jeff-appcard .bc-cmts{ border-left:none; border-top:1px solid var(--line); min-height:210px; }
}

/* ============== HIGHLIGHTED TEXT, a passage swept with the app's multi-colour highlighter ============== */
.jeff-appcard .hl-card{ position:relative; background:var(--paper); border:1px solid var(--line-2); border-radius:13px;
  padding:16px 17px 14px; box-shadow:0 1px 2px rgba(15,15,12,.04), 0 14px 34px -18px rgba(40,30,15,.35); }
.jeff-appcard .hl-card .hl-src{ font-family:'Geist Mono',monospace; font-size:9.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted-2); margin-bottom:10px; }
.jeff-appcard .hl-card p{ margin:0; font-family:'Fraunces',Georgia,serif; font-weight:400; font-size:15.5px; line-height:1.66; color:var(--ink-2); }
.jeff-appcard .hl-card mark.hl{ color:var(--ink); border-radius:3px; padding:1px 3px; background:transparent; }
.jeff-appcard .hl-card mark.hl[data-priority="1"]{ background:var(--p1-hi); color:var(--p1-ink); box-shadow:inset 0 0 0 1px var(--p1-edge); }
.jeff-appcard .hl-card mark.hl[data-priority="2"]{ background:var(--p2-hi); color:var(--p2-ink); box-shadow:inset 0 0 0 1px var(--p2-edge); }
.jeff-appcard .hl-card mark.hl[data-priority="3"]{ background:var(--p3-hi); color:var(--p3-ink); box-shadow:inset 0 0 0 1px var(--p3-edge); }
.jeff-appcard .hl-card mark.hl[data-priority="4"]{ background:var(--p4-hi); color:var(--p4-ink); box-shadow:inset 0 0 0 1px var(--p4-edge); }
.jeff-appcard .hl-card .hl-meta{ display:flex; align-items:center; gap:7px; margin-top:13px; flex-wrap:wrap; }
.jeff-appcard .hl-card .hl-chip{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px 3px 7px; border-radius:999px;
  font-family:'Geist Mono',monospace; font-size:10px; font-weight:600; letter-spacing:.04em; }
.jeff-appcard .hl-card .hl-chip .icon{ font-size:14px; }
.jeff-appcard .hl-card .hl-chip[data-priority="1"]{ background:color-mix(in oklab,var(--p1-hi) 65%,transparent); color:var(--p1-ink); box-shadow:inset 0 0 0 1px var(--p1-edge); }
.jeff-appcard .hl-card .hl-chip[data-priority="2"]{ background:color-mix(in oklab,var(--p2-hi) 65%,transparent); color:var(--p2-ink); box-shadow:inset 0 0 0 1px var(--p2-edge); }
.jeff-appcard .hl-card .hl-chip[data-priority="3"]{ background:color-mix(in oklab,var(--p3-hi) 65%,transparent); color:var(--p3-ink); box-shadow:inset 0 0 0 1px var(--p3-edge); }
.jeff-appcard .hl-card .hl-chip[data-priority="4"]{ background:color-mix(in oklab,var(--p4-hi) 65%,transparent); color:var(--p4-ink); box-shadow:inset 0 0 0 1px var(--p4-edge); }
