@layer workshop-directions {
  [data-workshop="llm"] #main-content #km-opening .lead {
    max-width: 50ch;
    text-wrap: pretty;
  }

  [data-workshop="llm"] #why .llm-uses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: clamp(12px,1.5vw,20px) !important;
    margin-block: var(--workshop-gap) clamp(26px,3.4vw,46px) !important;
  }
  [data-workshop="llm"] #why .llm-uses article {
    display: grid;
    align-content: start;
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(18px,2vw,28px) !important;
    border: 1px solid var(--workshop-border) !important;
    border-radius: 16px;
    background: radial-gradient(ellipse at top left, var(--workshop-wash), var(--series-panel) 78%);
  }
  [data-workshop="llm"] #why .llm-uses svg {
    box-sizing: border-box;
    width: 42px !important;
    height: 42px !important;
    max-width: 100%;
    padding: 8px !important;
    color: var(--topic-ink);
    border: 1px solid var(--workshop-border);
    border-radius: 12px;
    background: var(--series-deep);
  }
  [data-workshop="llm"] #main-content :is(.llm-uses,.llm-lesson,.llm-next) :is(h2,h3) {
    color: var(--series-ink);
    text-align: start;
    text-wrap: pretty;
    font: 700 var(--workshop-title)/1.22 Manrope,Inter,sans-serif !important;
    letter-spacing: -.018em;
  }
  [data-workshop="llm"] #main-content .llm-uses h3 {margin: 13px 0 8px !important;}
  [data-workshop="llm"] #main-content :is(.llm-uses,.llm-lesson,.llm-next) p {
    margin: 0 !important;
    color: var(--series-copy);
    font: 400 var(--workshop-copy)/1.48 Inter,sans-serif;
    text-wrap: pretty;
  }

  [data-workshop="llm"] #diy .llm-setup-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    counter-reset: llm-setup;
    list-style: none;
    margin: var(--workshop-gap) 0 0 !important;
    padding: 0 !important;
    border: 1px solid var(--workshop-border);
    border-radius: 16px;
    color: var(--series-ink);
    background: linear-gradient(105deg,var(--workshop-wash),var(--series-panel) 72%);
    text-align: start;
  }
  [data-workshop="llm"] #diy .llm-setup-path > li {
    display: grid;
    grid-template-columns: 1.7rem minmax(0,1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    column-gap: 10px;
    min-width: 0;
    margin: 0 !important;
    padding: clamp(16px,1.8vw,26px) !important;
    counter-increment: llm-setup;
  }
  #diy .llm-setup-path li + li {border-inline-start: 1px solid var(--workshop-border);}
  #diy .llm-setup-path > li::before {
    content: counter(llm-setup);
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1;
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid var(--workshop-border);
    border-radius: 50%;
    color: var(--topic-ink);
    background: var(--series-deep);
    font: 700 .85rem/1 Manrope,Inter,sans-serif;
  }
  [data-workshop="llm"] #diy .llm-setup-path h3 {
    grid-column: 2;
    align-self: center;
    margin: 0 !important;
    color: var(--series-ink);
    font: 700 1.05rem/1.3 Manrope,Inter,sans-serif !important;
  }
  [data-workshop="llm"] #diy .llm-setup-path p {
    grid-column: 1 / -1;
    margin: 10px 0 0 !important;
    color: var(--series-copy);
    font: 450 .95rem/1.5 Inter,sans-serif;
  }
  #diy .llm-setup-path a {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 10px !important;
    color: var(--topic-ink);
    font: 650 .93rem/1.4 Manrope,Inter,sans-serif;
    text-decoration: underline;
    text-underline-offset: .22em;
  }
  #diy .llm-setup-path a:focus-visible {outline: 2px solid currentColor; outline-offset: 3px;}
  [data-workshop="llm"] #diy .llm-lesson {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    min-width: 0;
    box-sizing: border-box;
    margin-block: var(--workshop-gap) 16px !important;
    border: 1px solid var(--workshop-border);
    border-radius: 18px;
    background: var(--series-panel);
  }
  .llm-lesson > div {min-width: 0; padding: clamp(18px,2.5vw,36px) !important;}
  .llm-lesson h3 {margin: 0 !important;}
  .llm-lesson-source {text-align: start;}
  .llm-lesson-source svg {margin: 0 0 12px !important;}
  [data-workshop="llm"] #main-content #diy .llm-lesson-source p {margin-top: 8px !important;}
  [data-workshop="llm"] #diy .llm-lesson-source blockquote {
    margin: 14px 0 !important;
    padding-inline-start: 14px !important;
    border-inline-start: 2px solid var(--topic-ink);
    color: var(--series-ink);
    font: 500 var(--workshop-copy)/1.55 Inter,sans-serif;
  }
  .llm-lesson-result {
    border-radius: 0 17px 17px 0;
    border-inline-start: 1px solid var(--workshop-border);
    background: linear-gradient(135deg,var(--workshop-wash),var(--series-deep));
  }
  [data-workshop="llm"] #diy .llm-lesson-result dl {
    display: grid;
    margin: 8px 0 0 !important;
    text-align: start;
  }
  .llm-lesson-result dl > div {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1fr);
    align-items: baseline;
    gap: 10px !important;
    padding-block: 12px !important;
  }
  .llm-lesson-result dl > div + div {border-top: 1px solid var(--workshop-border);}
  .llm-lesson-result dt {color: var(--topic-ink); font: 650 .94rem/1.4 Manrope,sans-serif;}
  .llm-lesson-result dd {margin: 0 !important; color: var(--series-ink); font: 500 1rem/1.45 Inter,sans-serif;}
  [data-workshop="llm"] #main-content #diy .llm-offline-check {
    margin-top: 8px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--workshop-border);
    font-size: .94rem;
  }
  [data-workshop="llm"] #main-content #money {padding-block: 12px !important;}
  [data-workshop="llm"] #main-content .llm-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px 32px !important;
    padding: clamp(18px,2.5vw,34px) !important;
    border: 1px solid var(--workshop-border);
    border-radius: 16px;
    background: var(--workshop-wash);
    text-align: start;
  }
  [data-workshop="llm"] #main-content .llm-next h2 {margin: 0 0 6px !important;}
  .llm-next a {flex: none; white-space: normal;}

  /* The default workshop FAQ draws horizontal separators. Each answer here needs
     a continuous outline, including at the start and end of every grid row. */
  [data-workshop="llm"] #main-content #faq .series-answers {
    display: grid !important;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: clamp(12px,1.4vw,20px) !important;
    border: 0 !important;
    background: transparent !important;
  }
  [data-workshop="llm"] #main-content #faq .series-answers > .series-answer {
    display: block !important;
    box-sizing: border-box;
    min-width: 0;
    margin: 0 !important;
    padding: clamp(18px,2vw,28px) !important;
    border: 1px solid var(--workshop-border) !important;
    border-radius: 15px !important;
    background: var(--series-panel) !important;
    text-align: start;
  }
  [data-workshop="llm"] #main-content #faq .series-answer p {
    margin-top: 8px !important;
    max-width: 61ch;
    text-wrap: pretty;
  }
  @media (max-width: 760px) {
    [data-workshop="llm"] #diy .llm-setup-path {grid-template-columns: minmax(0,1fr);}
    #diy .llm-setup-path li + li {border-inline-start: 0; border-top: 1px solid var(--workshop-border);}
    [data-workshop="llm"] #diy .llm-setup-path :is(p,a) {grid-column: 2;}
    [data-workshop="llm"] #why .llm-uses {grid-template-columns: 1fr;}
    [data-workshop="llm"] #why .llm-uses article {
      grid-template-columns: auto minmax(0,1fr);
      gap: 6px 14px !important;
    }
    [data-workshop="llm"] #why .llm-uses svg {grid-row: 1 / 3;}
    [data-workshop="llm"] #why .llm-uses h3 {margin: 0 !important;}
    [data-workshop="llm"] #why .llm-uses p {grid-column: 2;}
    [data-workshop="llm"] #diy .llm-lesson {grid-template-columns: minmax(0,1fr);}
    .llm-lesson-result {border-inline-start: 0; border-top: 1px solid var(--workshop-border); border-radius: 0 0 17px 17px;}
    [data-workshop="llm"] #main-content .llm-next {flex-direction: column; align-items: flex-start;}
    [data-workshop="llm"] #main-content #faq .series-answers {grid-template-columns: minmax(0,1fr) !important;}
  }
}
