@font-face {
  font-family: Space;
  src: url("../../../assets/type/space-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("../../../assets/type/space-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("../../../assets/type/plex-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #252a26;
  --muted: #515a51;
  --line: #d4d7ce;
  --clay: #8b4930;
  --amber: #80551f;
  --mono: Plex, ui-monospace, monospace;
  background: #f5f5ef;
  color: var(--ink);
  font: 500 100%/1.43 Space, Arial, sans-serif;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
.workspace { max-width: 98rem; margin: 0 auto; background: white; }
.window-bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem clamp(.75rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line); background: #eaece6;
  font: .75rem/1.5 var(--mono); color: #485147;
}
.window-mark { display: flex; gap: .22rem; }
.window-mark i { width: .43rem; height: .43rem; background: #a3ac9f; border-radius: 50%; }
.window-bar strong { margin-left: auto; font: inherit; color: var(--ink); }
.panes { display: grid; grid-template-columns: minmax(18rem, .78fr) minmax(0,1.22fr); }
.chat { background: #f6f4ef; border-right: 1px solid var(--line); min-width: 0; }
.pane-heading {
  display: flex; min-height: 3.7rem; padding: .55rem clamp(.95rem, 2.3vw, 2.1rem);
  align-items: center; gap: .65rem; border-bottom: 1px solid var(--line);
}
.pane-heading h1, .pane-heading h2 {
  font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 700; letter-spacing: -.04em;
}
.claude-mark { color: #a05134; font: 2rem/.9 Georgia, serif; }
.construct-mark { width: 1.55rem; height: 1.55rem; }
.host { margin-left: auto; font: .75rem/1.35 var(--mono); color: var(--muted); }
.thread, .study { padding: clamp(1rem, 2.5vw, 2.2rem); }
.thread h2, .study h3 { font-size: clamp(1.48rem, 2.6vw, 2.25rem); line-height: 1.12; letter-spacing: -.055em; }
.mono, .reference-text small, .part-reference small { font: .73rem/1.5 var(--mono); color: var(--muted); }
.section-label { margin-bottom: .27rem; }
.turn { margin-top: .95rem; max-width: 42ch; line-height: 1.37; }
.turn b { display: block; margin-bottom: .18rem; font-size: .78rem; color: var(--clay); }
.turn.user { padding-left: .8rem; border-left: 2px solid #bac2b3; }
.turn.user b { color: #425541; }
.attachment {
  display: flex; align-items: center; gap: .65rem;
  margin: .33rem 0 .58rem; background: #fff; border: 1px solid #d9dbd3;
}
.reference-image { position: relative; width: clamp(4.8rem, 7.3vw, 7.5rem); flex: none; }
.reference-image img { display: block; width: 100%; height: auto; }
.comment-pin {
  position: absolute; top: 38%; left: 62%; transform: translate(-50%, -50%);
  width: 1.15rem; height: 1.15rem; display: grid; place-items: center;
  background: #8a561c; color: white; border: 1.5px solid white; border-radius: 50%;
  font: 700 .65rem/1 Space, sans-serif;
}
.reference-text { display: block; min-width: 0; padding: .35rem .4rem .35rem 0; }
.reference-text strong { display: block; font-size: .87rem; }
.reference-text small, .part-reference small { display: block; }
.artifact { min-width: 0; display: flex; flex-direction: column; background: white; }
.study { flex: 1; display: flex; flex-direction: column; }
.inspection { margin: 1rem 0 0; padding: 0; border: 0; min-width: 0; flex: 1; }
.inspection legend { font: .73rem/1.5 var(--mono); color: var(--muted); margin-bottom: .45rem; padding: 0; }
.view-input { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; }
.inspection label {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  min-height: 2.75rem; padding: .45rem .8rem; background: white; border: 1px solid #bac2b3;
  font-size: .91rem; border-radius: 3px;
}
.view-input:checked + label { border-color: #374438; box-shadow: inset 0 -2px #374438; background: #f1f4ed; }
.view-input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.assembly { display: none; }
#lid-on:checked ~ .fitted, #lid-off:checked ~ .removed { display: block; }
.assembly img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.assembly figcaption { font-size: .96rem; line-height: 1.45; color: var(--muted); max-width: 52ch; }
.part-reference {
  display: flex; align-items: center; gap: .7rem; margin: 0 clamp(1rem,2.5vw,2.2rem);
  padding: .8rem 0; border-top: 1px solid var(--line);
}
.pin-label {
  flex: none; display: grid; place-items: center; width: 1.55rem; height: 1.55rem;
  border: 1px solid #926229; color: var(--amber); border-radius: 50%; font: .8rem var(--mono);
}
.part-reference strong { font-size: .93rem; }
footer {
  padding: .62rem clamp(.85rem,2vw,1.45rem); border-top: 1px solid var(--line);
  color: var(--muted); font: .74rem/1.5 var(--mono); background: #fafbf7;
}
@media (max-width: 39rem) {
  .panes { display: flex; flex-direction: column; }
  .chat { border-right: 0; }
  .artifact { border-top: 1px solid var(--line); }
  .window-mark { display: none; }
  .window-bar { flex-wrap: wrap; row-gap: .1rem; }
  .window-bar strong { margin-left: 0; }
  .window-bar strong::before { content: "· "; }
  .turn { max-width: 100%; }
  .thread, .study { padding: 1rem; }
}
.full-study {
  margin-left: auto; flex: 0 0 max-content; align-self: center;
  display: grid; justify-items: center; color: var(--muted);
  text-decoration: underline; text-underline-offset: .15em; font: .68rem/1.4 var(--mono);
}
.full-study img { width: 4.75rem; height: 3.17rem; object-fit: contain; }
.full-study:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.projection { position: relative; }
.part-marker, .cad-pin { position: absolute; pointer-events: none; }
.part-marker { inset: 0; width: 100%; height: 100%; }
.part-marker path { stroke: #875819; fill: none; vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.part-marker circle { fill: #875819; stroke: white; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cad-pin {
  left: 25.92%; top: 74.75%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 1.45rem; height: 1.45rem;
  border: 2px solid white; background: #875819; color: white;
  border-radius: 50%; font: 700 .75rem/1 Space, sans-serif;
}
.brand-link { display: inline-grid; place-items: center; min-height: 2.75rem; min-width: 2rem; }
.brand-link:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
