/* ============================================================
   PORTFOLIO V6 · WORKING-FILE ARTIFACT LAYER
   Additive component layer on top of v5.css tokens.
   Each case page gets varied artifact treatments: real
   screenshot frames, spreadsheet grids, skill-spec blocks,
   research boards, fix logs, annotation notes.
   Scoped under body.v5 so it composes with the v5 layer.
   ============================================================ */

/* ---------- token fills (referenced by v5.css, defined only in v4) ---------- */
body.v5{
  --serif:var(--display);
  --accent-deep:#6e2f15;
}

/* ---------- tiny privacy label (one per artifact, quiet) ---------- */
body.v5 .wf-label{
  font-family:var(--mono);
  font-size:.66rem;
  letter-spacing:.06em;
  color:var(--sub);
  margin:8px 2px 0;
  text-transform:none;
}

/* ---------- demoted showcase headings (outline fix) ---------- */
body.v5 .case-proto-copy h3{
  font-family:var(--display);font-weight:400;
  font-size:clamp(1.7rem,3.4vw,2.35rem);
  line-height:1.15;letter-spacing:-.005em;
  margin:10px 0 0;max-width:10ch;
}
@media (max-width:900px){
  body.v5 .case-proto-copy h3{max-width:16ch;}
}
body.v5 .case-proto-card .proof-top h3{
  font-family:var(--display);font-weight:400;
  font-size:1.55rem;line-height:1;margin:0;
}

/* ---------- real screenshot frames ---------- */
body.v5 .shot{margin:34px 0;}
body.v5 .shot img{
  display:block;width:100%;height:auto;
  border:1px solid var(--hair-strong);
  border-radius:8px;
}
body.v5 .shot.dark img{
  border:none;border-radius:10px;
  box-shadow:0 1px 2px rgba(40,32,18,.18),0 10px 30px rgba(40,32,18,.12);
}
body.v5 .shot .shot-head{
  display:flex;justify-content:space-between;gap:14px;
  margin-bottom:10px;
}

/* screenshot + margin-notes rail */
body.v5 .shot-annotated{
  display:grid;grid-template-columns:minmax(0,1fr) 240px;
  gap:22px;align-items:start;margin:34px 0;
}
body.v5 .shot-annotated .shot{margin:0;}
body.v5 .shot-annotated .shot img{display:block;width:100%;height:auto;max-width:480px;}
body.v5 .shot-annotated > *{min-width:0;}
body.v5 .note-rail{display:flex;flex-direction:column;gap:14px;}
body.v5 .note{
  font-family:var(--display);font-style:italic;
  font-size:1.02rem;line-height:1.45;color:var(--ink);
  border-left:2px solid var(--accent);
  padding:2px 0 2px 12px;
}
body.v5 .note b{
  display:block;font-family:var(--mono);font-style:normal;
  font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);margin-bottom:4px;font-weight:400;
}
body.v5 .note:nth-child(odd){transform:rotate(-.4deg);}
body.v5 .note:nth-child(even){transform:rotate(.35deg);}
@media (max-width:760px){
  body.v5 .shot-annotated{grid-template-columns:1fr;}
  body.v5 .note-rail{flex-direction:row;flex-wrap:wrap;}
  body.v5 .note{flex:1 1 200px;}
}

/* ---------- research synthesis slide (recreated deck page) ---------- */
body.v5 .board6{
  background:#fff;border:1px solid var(--hair-strong);border-radius:6px;
  padding:clamp(20px,4vw,36px);margin:34px 0 0;
  font-family:var(--sans);color:#202124;
  box-shadow:0 1px 2px rgba(40,32,18,.08),0 8px 22px rgba(40,32,18,.07);
}
body.v5 .board6 h3{
  margin:0 0 18px;font-family:var(--sans);font-weight:700;
  font-size:1.15rem;color:#202124;
}
body.v5 .board6 .cols{
  display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,4vw,44px);
}
body.v5 .board6 .col-h{
  font-weight:700;font-size:.82rem;letter-spacing:.02em;margin:0 0 10px;
}
body.v5 .board6 .col-h.want{color:#1a63c8;}
body.v5 .board6 .col-h.close{color:#c5271c;}
body.v5 .board6 ul{margin:0;padding-left:18px;}
body.v5 .board6 li{
  font-size:.85rem;line-height:1.5;margin-bottom:9px;color:#3c4043;
}
body.v5 .board6 li b{color:#202124;font-weight:700;}
@media (max-width:640px){body.v5 .board6 .cols{grid-template-columns:1fr;}}

/* ---------- recreated QuickBooks billing history screen ---------- */
body.v5 .qbo-card{
  margin:0;background:#fff;border:1px solid #d4d7dc;border-radius:8px;
  overflow:hidden;font-family:var(--sans);color:#393a3d;
  box-shadow:0 1px 2px rgba(40,32,18,.08),0 8px 22px rgba(40,32,18,.07);
}
body.v5 .qbo-head{padding:16px 20px 12px;border-bottom:1px solid #e3e5e8;}
body.v5 .qbo-crumb{
  display:block;font-size:.72rem;color:#6b6c72;margin-bottom:6px;
}
body.v5 .qbo-head h3{
  margin:0;font-family:var(--sans);font-weight:600;font-size:1.02rem;
  color:#393a3d;
}
body.v5 table.qbo-table{
  border-collapse:collapse;width:100%;font-size:.82rem;
}
body.v5 table.qbo-table th{
  text-align:left;font-weight:600;color:#6b6c72;font-size:.7rem;
  letter-spacing:.03em;text-transform:uppercase;
  padding:10px 20px;border-bottom:2px solid #e3e5e8;background:#fafafa;
}
body.v5 table.qbo-table td{
  padding:12px 20px;border-bottom:1px solid #eceef0;color:#393a3d;
}
body.v5 table.qbo-table .amt{text-align:right;font-variant-numeric:tabular-nums;}
body.v5 table.qbo-table tr.qbo-hot td{background:#fdf7ef;font-weight:600;}
body.v5 .qbo-card .wf-label{padding:0 20px 12px;margin-top:10px;}
@media (max-width:560px), (min-width:761px) and (max-width:860px){
  body.v5 table.qbo-table th:nth-child(3),
  body.v5 table.qbo-table td:nth-child(3){display:none;}
}

/* ---------- fix log (debug moments from the build) ---------- */
body.v5 .fixlog{
  display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:34px 0 0;
}
body.v5 .fixlog article{
  border:1px solid var(--hair);border-radius:8px;
  background:var(--card);padding:20px 22px 18px;
  min-width:0;
}
body.v5 .fixlog article.fl-wide{grid-column:1 / -1;}
body.v5 .fixlog .fl-tag{
  font-family:var(--mono);font-size:.6rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);
}
body.v5 .fixlog h3{
  font-family:var(--display);font-size:1.3rem;font-weight:400;
  margin:6px 0 10px;
}
body.v5 .fixlog p{font-size:.98rem;line-height:1.6;margin:0 0 12px;}
body.v5 .fixlog .fl-bad{
  font-family:var(--mono);font-size:.72rem;line-height:1.7;
  background:#2b2620;color:#e8ded0;border-radius:6px;
  padding:12px 14px;margin:0 0 12px;overflow-x:auto;white-space:pre;
}
body.v5 .fixlog .fl-bad s{text-decoration-color:#d98a6a;}
body.v5 .fixlog .fl-fix{
  font-size:.92rem;line-height:1.55;margin:0;
  border-top:1px dashed var(--hair-strong);padding-top:10px;color:var(--sub);
}
body.v5 .fixlog .fl-fix b{color:var(--ink);font-weight:600;}
@media (max-width:720px){body.v5 .fixlog{grid-template-columns:1fr;}}

/* ---------- spreadsheet artifact ---------- */
body.v5 .sheet{margin:34px 0 0;}
body.v5 .sheet-chrome{
  border:1px solid #cfd3d8;border-radius:8px 8px 6px 6px;overflow:hidden;
  background:#fff;box-shadow:0 1px 2px rgba(40,32,18,.08),0 8px 22px rgba(40,32,18,.07);
}
body.v5 .sheet-titlebar{
  display:flex;align-items:center;gap:10px;
  background:#f1f3f4;border-bottom:1px solid #cfd3d8;
  padding:8px 12px;font-family:var(--sans);font-size:.76rem;color:#3c4043;
}
body.v5 .sheet-titlebar .st-name{font-weight:600;}
body.v5 .sheet-titlebar .st-dim{color:#5f6368;margin-left:auto;}
body.v5 .sheet-titlebar .st-scroll{display:none;color:#5f6368;}
@media (max-width:900px){
  body.v5 .sheet-titlebar .st-dim{display:none;}
  body.v5 .sheet-titlebar .st-scroll{display:inline;margin-left:auto;}
}
body.v5 .sheet-scroll{overflow-x:auto;}
body.v5 table.grid{
  border-collapse:collapse;width:100%;min-width:860px;
  font-family:var(--sans);font-size:.8rem;line-height:1.45;
}
body.v5 table.grid th{
  background:#f8f9fa;color:#5f6368;font-weight:600;
  border:1px solid #e0e3e7;padding:6px 10px;text-align:left;
  font-size:.72rem;letter-spacing:.02em;white-space:nowrap;
}
body.v5 table.grid td{
  border:1px solid #e8eaed;padding:8px 10px;vertical-align:top;color:#202124;
  background:#fff;
}
body.v5 table.grid td.rownum,body.v5 table.grid th.rownum{
  background:#f8f9fa;color:#5f6368;text-align:center;width:34px;
  font-size:.7rem;font-weight:400;
}
body.v5 table.grid td.q{font-style:italic;min-width:190px;}
body.v5 table.grid td.no{background:#fdf3f0;}
body.v5 table.grid td.no::before{
  content:"must not";display:block;font-size:.6rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:#b3462b;margin-bottom:2px;
}
body.v5 table.grid td .tag{
  display:inline-block;background:#eef1f4;border-radius:4px;
  padding:1px 7px;font-size:.68rem;color:#3c4043;white-space:nowrap;
}

/* ---------- skill spec (yaml-flavored behavior excerpt) ---------- */
body.v5 .skillspec{margin:34px 0 0;}
body.v5 .skillspec pre{
  margin:0;background:var(--card);border:1px solid var(--hair-strong);
  border-radius:8px;padding:22px 24px;overflow-x:auto;
  font-family:var(--mono);font-size:.76rem;line-height:1.75;color:var(--ink);
}
body.v5 .skillspec .k{color:var(--accent);}
body.v5 .skillspec .c{color:var(--sub);}
body.v5 .skillspec-head{
  display:flex;justify-content:space-between;gap:14px;margin-bottom:10px;
}

/* ---------- outcome log ---------- */
body.v5 .outcome-log{margin:34px 0 0;border-top:1px solid var(--hair-strong);}
body.v5 .outcome-log > div{
  display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;
  padding:16px 2px;border-bottom:1px solid var(--hair);
}
body.v5 .outcome-log .ol-when{
  font-family:var(--mono);font-size:.62rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--sub);padding-top:5px;
}
body.v5 .outcome-log .ol-what{font-size:1.02rem;line-height:1.6;}
body.v5 .outcome-log .ol-what b{font-weight:600;}
@media (max-width:600px){
  body.v5 .outcome-log > div{grid-template-columns:1fr;gap:4px;}
}

/* ---------- before/after duo ---------- */
body.v5 .duo{
  display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:34px 0 0;
  align-items:start;
}
@media (max-width:820px){body.v5 .duo{grid-template-columns:1fr;}}

/* ---------- recreated Digital Assistant exchange (NLU era) ---------- */
body.v5 .da-mock{
  margin:34px 0;max-width:560px;
}
body.v5 .da-body{
  background:#fff;border:1px solid #d4d7dc;border-radius:10px;
  padding:20px 22px;font-family:var(--sans);color:#393a3d;
  font-size:.92rem;line-height:1.55;
  box-shadow:0 1px 2px rgba(40,32,18,.08),0 8px 22px rgba(40,32,18,.07);
}
body.v5 .da-user{
  background:#eceef1;border-radius:14px 14px 2px 14px;
  padding:10px 16px;margin:0 0 18px auto;max-width:85%;width:fit-content;
}
body.v5 .da-agent p{margin:0 0 12px;}
body.v5 .da-link{color:#0f7bcd;font-weight:600;}
body.v5 .da-agent b{font-weight:700;}
body.v5 .da-chips{
  display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-top:18px;
}
body.v5 .da-chips span{
  border:2px solid #2ca01c;color:#2ca01c;border-radius:22px;
  padding:7px 18px;font-weight:600;font-size:.88rem;
}

/* ---------- grade tags in spreadsheet grids ---------- */
body.v5 table.grid td .tag.pass{
  background:#e6f2e8;color:#1e6b34;font-weight:600;
}
body.v5 table.grid td .tag.partial{
  background:#fdf0dc;color:#8a5a12;font-weight:600;
}
body.v5 table.grid td .tag.fail{
  background:#fbe3dc;color:#9c3517;font-weight:600;
}

/* ---------- diagnostic decision tree (payroll) ---------- */
body.v5 .diagtree{
  margin:34px 0 0;border:1px solid var(--hair-strong);border-radius:8px;
  background:var(--card);padding:22px 24px 18px;
}
body.v5 .diagtree .dt-head{margin-bottom:18px;}
body.v5 .diagtree .dt-head .mono{
  font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent);
}
body.v5 .diagtree .dt-q{
  font-family:var(--display);font-style:italic;
  font-size:clamp(1.15rem,2.4vw,1.45rem);line-height:1.3;
  margin:8px 0 12px;color:var(--ink);
}
body.v5 .diagtree .dt-crit{
  font-size:.92rem;line-height:1.55;color:var(--sub);margin:0;
  border-left:2px solid var(--accent);padding:2px 0 2px 12px;
}
body.v5 .diagtree .dt-crit b{color:var(--ink);font-weight:600;}
body.v5 .diagtree .dt-steps{
  list-style:none;margin:0;padding:0;
}
body.v5 .diagtree .dt-steps li{
  display:grid;grid-template-columns:30px minmax(0,1fr);gap:14px;
  padding:12px 0;border-top:1px dashed var(--hair-strong);
}
body.v5 .diagtree .dt-n{
  width:26px;height:26px;border:1px solid var(--accent);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.68rem;color:var(--accent);margin-top:1px;
}
body.v5 .diagtree .dt-steps b{
  display:block;font-weight:600;font-size:.95rem;line-height:1.45;
}
body.v5 .diagtree .dt-steps span:not(.dt-n){
  display:block;font-size:.88rem;line-height:1.5;color:var(--sub);margin-top:3px;
}

/* ---------- retrieve-vs-ask split (payroll boundary) ---------- */
body.v5 .splitmap{
  display:grid;grid-template-columns:1fr 1fr;gap:0;margin:34px 0 0;
  border:1px solid var(--hair-strong);border-radius:8px;overflow:hidden;
  background:var(--card);
}
body.v5 .splitmap .sm-col{padding:22px 24px 18px;}
body.v5 .splitmap .sm-check{border-right:1px dashed var(--hair-strong);}
body.v5 .splitmap .sm-h{
  font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;
  margin:0 0 14px;
}
body.v5 .splitmap .sm-check .sm-h{color:#1e6b34;}
body.v5 .splitmap .sm-ask .sm-h{color:var(--accent);}
body.v5 .splitmap .sm-check ul{list-style:none;margin:0;padding:0;}
body.v5 .splitmap .sm-check li{
  font-size:.92rem;line-height:1.5;padding:7px 0 7px 24px;position:relative;
  border-top:1px solid var(--hair);
}
body.v5 .splitmap .sm-check li:first-child{border-top:none;}
body.v5 .splitmap .sm-check li::before{
  content:"\2713" / "";position:absolute;left:2px;color:#1e6b34;font-size:.82rem;
}
body.v5 .splitmap .sm-qa{padding:10px 0;border-top:1px solid var(--hair);}
body.v5 .splitmap .sm-qa:first-of-type{border-top:none;padding-top:0;}
body.v5 .splitmap .sm-q{
  font-family:var(--display);font-style:italic;font-size:1.05rem;
  line-height:1.4;margin:0 0 5px;color:var(--ink);
}
body.v5 .splitmap .sm-why{
  font-size:.85rem;line-height:1.5;color:var(--sub);margin:0;
}
body.v5 .splitmap .wf-label{
  grid-column:1 / -1;padding:0 24px 14px;margin-top:0;
}
@media (max-width:700px){
  body.v5 .splitmap{grid-template-columns:1fr;}
  body.v5 .splitmap .sm-check{border-right:none;border-bottom:1px dashed var(--hair-strong);}
}

/* ---------- recreated QuickBooks assistant chat (cancellation saves) ---------- */
body.v5 .qba-mock{margin:0;}
body.v5 .qba-head{
  display:flex;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;
  margin-bottom:10px;
}
body.v5 .qba-head .mono{
  font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--sub);
}
body.v5 .qba-head .mono:first-child{color:var(--accent);}
body.v5 .qba-body{
  background:#fff;border:1px solid #d4d7dc;border-radius:10px;
  padding:20px 22px;font-family:var(--sans);color:#393a3d;
  font-size:.92rem;line-height:1.55;
  box-shadow:0 1px 2px rgba(40,32,18,.08),0 8px 22px rgba(40,32,18,.07);
}
body.v5 .qba-user{
  background:#248317;color:#fff;border-radius:22px;
  padding:9px 18px;margin:0 0 16px auto;max-width:88%;width:fit-content;
  font-weight:600;
}
body.v5 .qba-agent{
  background:#f0f2f4;border-radius:12px;
  padding:12px 16px;max-width:92%;width:fit-content;
}

/* ---------- screen-recording frames ---------- */
body.v5 .vid-shot{margin:0;}
body.v5 .vid-shot video,
body.v5 .vid-shot img{
  display:block;width:100%;height:auto;
  border:1px solid var(--hair-strong);border-radius:10px;
  background:#fff;
}
body.v5 .vid-shot.shot-solo{max-width:430px;margin-top:clamp(26px,4vh,44px);}
body.v5 .titleblock > .shot-solo{order:4;}
body.v5 .vid-shot.shot-solo.shot-solo-wide{max-width:640px;}
body.v5 .vid-shot.shot-solo .shot-head{min-height:0;}
body.v5 .vid-shot .shot-head{
  display:flex;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;
  margin-bottom:10px;align-content:flex-start;
  min-height:2.6rem; /* two label lines, so paired videos top-align */
}
body.v5 .vid-shot .shot-head .mono{
  font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--sub);
}
body.v5 .vid-shot .shot-head .mono:first-child{color:var(--accent);}
body.v5 .vid-tx{border-top:1px solid var(--hair);margin-top:10px;padding-top:8px;}
body.v5 .vid-tx summary{
  cursor:pointer;color:var(--sub);font-family:var(--mono);font-size:.66rem;
  letter-spacing:.06em;
}
body.v5 .vid-tx summary:hover{color:var(--accent);}
body.v5 .vid-tx[open] summary{color:var(--ink);}
body.v5 .vid-tx ol{
  list-style:none;margin:0;padding:12px 0 2px;display:grid;gap:10px;
}
body.v5 .vid-tx li{
  display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;
  font-family:var(--sans);font-size:.85rem;line-height:1.5;
}
body.v5 .vid-tx li p{margin:0;}
body.v5 .vid-tx .tx-role{
  color:var(--sub);padding-top:2px;font-family:var(--mono);font-size:.66rem;
  letter-spacing:.06em;
}
body.v5 .vid-tx li.tx-agent .tx-role{color:var(--accent);}

/* ---------- workbook tab strip (credit karma revision log) ---------- */
body.v5 .tabstrip{margin:34px 0 0;}
body.v5 .tabstrip .ts-bar{
  display:flex;flex-wrap:wrap;gap:3px;align-items:flex-end;
  margin:0;padding:10px 10px 0;list-style:none;
  background:#f1f3f4;border:1px solid #cfd3d8;border-radius:8px 8px 0 0;
}
body.v5 .tabstrip .ts-tab{
  font-family:var(--sans);font-size:.72rem;color:#3c4043;
  background:#e2e5e9;border:1px solid #cfd3d8;border-bottom:none;
  border-radius:6px 6px 0 0;padding:5px 11px 4px;white-space:nowrap;
}
body.v5 .tabstrip .ts-tab.ts-active{
  background:#fff;font-weight:600;color:#202124;
  border-bottom:1px solid #fff;margin-bottom:-1px;
}
body.v5 .tabstrip .ts-foot{
  border:1px solid #cfd3d8;border-top:none;border-radius:0 0 8px 8px;
  background:#fff;padding:10px 14px;font-family:var(--sans);
  font-size:.78rem;color:#5f6368;
}

/* ---------- working-board texture (stickies get human jitter) ---------- */
body.v5 .sticky:nth-child(odd){transform:rotate(-.6deg);}
body.v5 .sticky:nth-child(even){transform:rotate(.45deg) translateY(2px);}
body.v5 .sticky:nth-child(3){transform:rotate(-.2deg) translateY(-1px);}

/* ---------- dark run-console board titles need light ink ---------- */
body.v5 .run-console .board-title{color:rgba(255,253,247,.6);}

/* ---------- reserved agent widget slot (inert) ---------- */
body.v5 .agent-slot{display:none;}

/* ---------- case verdict block (4-line skim summary above the essay) ---------- */
body.v5 .verdict-wrap{
  padding-top:clamp(28px,4vh,44px);
  padding-bottom:0;
}
body.v5 dl.verdict{
  display:grid;
  grid-template-columns:minmax(120px,150px) 1fr;
  gap:1px;
  background:var(--hair);
  border:1px solid var(--hair);
  margin:0;
  max-width:760px;
}
body.v5 dl.verdict dt{
  background:var(--card);
  padding:13px 16px;
  font-family:var(--mono);
  font-size:.6rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  align-self:start;
}
body.v5 dl.verdict dd{
  background:var(--card);
  padding:13px 18px;
  margin:0;
  font-family:var(--sans);
  font-size:1rem;
  line-height:1.5;
  color:var(--ink);
}
@media (max-width:560px){
  body.v5 dl.verdict{grid-template-columns:1fr;}
  body.v5 dl.verdict dt{padding-bottom:2px;}
  body.v5 dl.verdict dd{padding-top:4px;}
}
