/* Free course: overview, lessons, exercises, certificate */
.cc-btn { font: 600 14px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.cc-btn:hover:not(:disabled) { background: var(--accent-soft); }
.cc-btn:disabled { opacity: .45; cursor: default; }
.neg { color: #c23b2b; }

/* overview */
.lc-facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 6px; }
.lc-facts li::before { content: "•"; color: var(--accent); margin-right: 8px; }
.lc-progress { margin: 0 0 18px; }
.lc-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.lc-bar span { display: block; height: 100%; width: 0; background: #3f8f55; transition: width .4s; }
.lc-progress p { margin: 6px 0 0; font-size: 14px; }
.lc-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.lc-list a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .2s; }
.lc-list a:hover { border-color: var(--accent); }
.lc-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lc-list .is-done .lc-n { background: #3f8f55; color: #fff; }
.lc-t { display: flex; flex-direction: column; gap: 2px; }
.lc-t strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.lc-t .muted { font-size: 14.5px; line-height: 1.45; }
.lc-m { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.lc-cert a { border-style: dashed; }
.lc-cert:not(.is-done) .lc-n { background: var(--line); color: var(--ink-2); }
.lc-cert.is-done .lc-n { background: #3f8f55; color: #fff; }
.lc-small { font-size: 15px; margin-top: 24px; }

/* lesson */
.lesson-head { padding-bottom: 8px; }
.lesson-head .lede { margin-bottom: 14px; }
.lesson-status.done { color: #2f7a45; font-weight: 600; }
.lesson .prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 20px 0; }
.lesson .prose th, .lesson .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lesson .prose th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.lesson-play { margin-top: 40px; padding: 18px 20px; background: var(--accent-soft); border-radius: var(--radius); }
.lesson-play p { margin: 0; }
.lesson-play .eyebrow { margin-bottom: 4px; }
.lesson-pager { margin-top: 32px; margin-bottom: 72px; }

/* questions */
.lq, .lx, .lx-sort, .lx-note { margin: 32px 0; padding: 20px 20px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 16.5px; }
.lq-think { border-left: 4px solid var(--accent); }
.lq-q, .lx-title { font-weight: 600; margin: 0 0 12px; font-size: 17px; }
.lq ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lq li { margin: 0; }
.lq-opt { display: block; width: 100%; text-align: left; font: 500 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.lq-opt:hover:not(:disabled) { border-color: var(--accent); }
.lq-opt:disabled { cursor: default; color: var(--ink-2); }
.lq-opt.is-right { border-color: #3f8f55; background: #e6f2e9; color: var(--ink); }
.lq-opt.is-right::after { content: "  ✓"; color: #2f7a45; font-weight: 700; }
.lq-opt.is-wrong { border-color: #c23b2b; background: #f9e5e2; color: var(--ink); }
.lq-why { margin-top: 14px; font-size: 16px; }
.lq-why p { margin: 0 0 .5em; }
.lq-verdict { font-weight: 700; }
.ok, .lq-verdict.ok { color: #2f7a45; }
.no, .lq-verdict.no { color: #b6451a; }
.lq-quiz { margin: 56px 0 16px; padding-top: 8px; border-top: 2px solid var(--ink); }
.lq-quiz h2 { margin-top: 24px; }
.lq-quiz .lq { margin: 18px 0; }
.lq-result:empty { display: none; }
.lq-result { margin: 24px 0; padding: 18px 20px; border-radius: var(--radius); font-size: 16.5px; }
.lq-result.ok { background: #e6f2e9; color: var(--ink); }
.lq-result.no { background: #f9e5e2; color: var(--ink); }
.lq-result p { margin: 0 0 .6em; }
.lq-result p:last-child { margin: 0; }

/* sorting */
.lx-sort ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lx-sort li { margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); display: grid; gap: 8px; }
.lx-sort li.is-done { border-color: #3f8f55; background: #eef6f0; }
.lx-sort li.is-miss { border-color: #e2a99f; }
.lx-item-text { font-weight: 500; }
.lx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-chip { font: 600 13px var(--sans); padding: 6px 11px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.lx-chip:hover:not(:disabled) { border-color: var(--accent); }
.lx-chip:disabled { cursor: default; opacity: .5; }
.lx-chip.is-right { opacity: 1; background: #3f8f55; border-color: #3f8f55; color: #fff; }
.lx-chip.is-wrong { text-decoration: line-through; }
.lx-item-note { font-size: 14.5px; color: var(--ink-2); }
.lx-item-note:empty { display: none; }
.lx-score { margin: 12px 0 0; font-size: 14px; }

/* note */
.lx-note p { margin: 0 0 10px; }
.lx-note textarea { width: 100%; font: 16px/1.5 var(--sans); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); resize: vertical; }
.lx-saved { font-size: 13px; }

/* widgets: shared */
.lx-out { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.lx-out > div { flex: 1 1 150px; background: var(--paper); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.lx-out span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.lx-out strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.lx-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.lx-hint { font-size: 15.5px; margin: 10px 0; }
.lx-slider { display: grid; grid-template-columns: 190px 1fr 96px; gap: 12px; align-items: center; margin: 8px 0; font-size: 15px; }
.lx-slider input { width: 100%; accent-color: var(--accent); }
.lx-slider output { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* chain */
.ch-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ch-link { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font: 500 13px var(--sans); color: var(--ink); }
.ch-link:hover:not(:disabled) { border-color: var(--accent); }
.ch-link:disabled { cursor: default; }
.ch-ring { width: 46px; height: 30px; border-radius: 99px; border: calc(var(--s) / 14 * 1px) solid #6b7680; }
.ch-link.is-weak { border-color: #c23b2b; background: #f9e5e2; }
.ch-link.is-weak .ch-ring { border-color: #c23b2b; }
.ch-val { font-weight: 700; font-size: 16px; }

/* pipe */
.pp-svg { width: 100%; height: auto; display: block; }
.pp-sec { fill: #d9d2c5; stroke: #8a8173; stroke-width: 1.5; }
.pp-sec.is-lim { fill: #f3cdbd; stroke: #b6451a; stroke-width: 2.5; }
.pp-water { fill: #3d7ab8; opacity: .8; pointer-events: none; }
.pp-lab { font: 600 14px var(--sans); fill: var(--ink); }

/* workshop */
.ws-steps { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: s; }
.ws-steps li { counter-increment: s; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--ink-2); margin: 0; }
.ws-steps li::before { content: counter(s) ". "; }
.ws-steps li.now { background: var(--ink); color: #fff; }
.ws-steps li.done { background: #e6f2e9; color: #2f7a45; }
.ws-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.ws-st { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font: 13px/1.35 var(--sans); color: var(--ink); cursor: pointer; }
.ws-st:disabled { cursor: default; }
.ws-st:hover:not(:disabled) { border-color: var(--accent); }
.ws-st strong { font-size: 14px; }
.ws-st.is-c { border-color: #b6451a; background: #f9e5e2; }
.ws-load { font-weight: 600; color: #2f7a45; }
.ws-load.over { color: #c23b2b; }
.ws-opts { display: grid; gap: 8px; margin: 12px 0; }
.ws-body .btn { margin-top: 4px; }
.ws-sum { background: #e6f2e9; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.ws-sum p { margin: 0 0 .4em; }

/* flip cards */
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.fl-card { min-height: 130px; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 500 15px/1.4 var(--sans); color: var(--ink); cursor: pointer; transition: background .25s; }
.fl-card[aria-pressed="true"] { background: #e6f2e9; border-color: #3f8f55; }
.fl-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b6451a; }
.fl-card[aria-pressed="true"] .fl-tag { color: #2f7a45; }

.lq button:focus-visible, .lx button:focus-visible, .lx-sort button:focus-visible, .lx input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* certificate */
.cert-intro { margin: 0 auto 28px; }
.cert-todo { margin: 0 0 20px; }
.cert-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cert-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; flex: 1 1 260px; }
.cert-form input { font: 17px var(--sans); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
.cert { max-width: 900px; margin: 0 auto; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; padding: 14px; box-shadow: 0 16px 40px -24px rgba(28,33,38,.4); }
.cert-inner { border: 2px solid #b6451a; outline: 1px solid #e9cdbf; outline-offset: -8px; padding: 48px 40px 36px; text-align: center; }
.cert p { margin: 0; }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 18px; margin-bottom: 26px !important; }
.cert-kicker { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #b6451a; margin-bottom: 22px !important; }
.cert-small { font-size: 14px; color: var(--ink-2); }
.cert-name { font-family: var(--serif); font-size: clamp(30px, 6vw, 48px); font-weight: 600; margin: 10px 0 14px !important; border-bottom: 1px solid var(--line); display: inline-block; padding: 0 24px 6px; }
.cert-course { font-family: var(--serif); font-size: clamp(20px, 3.4vw, 28px); margin: 10px 0 8px !important; }
.cert-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; text-align: left; }
.cert-foot > div:last-child { text-align: right; }
.cert-sign { font-family: var(--serif); font-size: 22px; font-style: italic; border-bottom: 1px solid var(--ink-2); padding-bottom: 2px; margin-bottom: 4px !important; }
.cert-date { font-weight: 600; border-bottom: 1px solid var(--ink-2); padding-bottom: 2px; margin-bottom: 4px !important; }
.cert-actions { text-align: center; margin: 24px 0 72px; }

@media (max-width: 640px) {
  .lx-slider { grid-template-columns: 1fr auto; }
  .lx-slider input { grid-column: 1 / -1; grid-row: 2; }
  .ch-row, .ws-line { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .lc-list a { grid-template-columns: 36px 1fr; }
  .lc-m { display: none; }
  .cert-inner { padding: 32px 16px 24px; }
  .cert-foot { flex-direction: column; text-align: center; }
  .cert-foot > div:last-child { text-align: center; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; }
  .site-header, .site-footer, .cert-intro, .cert-actions, .skip { display: none !important; }
  .cert-page { padding: 0; width: auto; }
  .cert { box-shadow: none; border: 0; max-width: none; padding: 0; }
  .cert-inner { padding: 56px 48px 40px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.cert-page [hidden], .lc [hidden], .lesson [hidden] { display: none !important; }

/* course catalog */
.lcat-list { display: grid; gap: 16px; margin: 8px 0 72px; }
.lcat-card { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .2s; }
.lcat-card:hover { border-color: var(--accent); }
.lcat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: #efe7da; }
.lcat-body { display: flex; flex-direction: column; gap: 4px; }
.lcat-body .eyebrow { margin: 0; }
.lcat-body strong { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.lcat-body .muted { font-size: 15px; line-height: 1.5; }
.lcat-progress { font-size: 13px !important; font-weight: 600; }
.lcat-progress.ok { color: #2f7a45; }
@media (max-width: 640px) { .lcat-card { grid-template-columns: 1fr; } }

/* Choke the Release */
.ch-controls { display: grid; gap: 8px; }
.ch-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.ch-opt input { margin-top: 5px; accent-color: var(--accent); }
.ch-slider { grid-template-columns: 150px 1fr 70px; margin-left: 26px; }
.ch-slider input:disabled { opacity: .4; }
.ch-floorwrap { background: var(--paper); border-radius: 12px; padding: 12px 14px; margin: 14px 0 4px; }
.ch-day { font-size: 13.5px; margin: 0 0 8px; }
.ch-floor { display: grid; gap: 6px; }
.ch-st { display: grid; grid-template-columns: 170px 1fr 34px; gap: 10px; align-items: center; font-size: 14px; }
.ch-track { height: 12px; background: var(--card); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.ch-bar { display: block; height: 100%; width: 0; background: #b6451a; border-radius: 99px; transition: width .07s linear; }
.ch-bar.fg { background: #8a8f94; }
.ch-st b { text-align: right; font-variant-numeric: tabular-nums; }
.ch-table td, .ch-table th { white-space: nowrap; }
.ch-table tr.is-last th, .ch-table tr.is-last td { font-weight: 700; }
.ch-chart { margin: 10px 0; }
.ch-svg { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { font: 500 11px var(--sans); fill: var(--ink-2); }
.ch-ax.inv { fill: #6b7680; }
.ch-l { fill: none; stroke-width: 2.5; }
.ch-l.ot, .ch-d.ot { stroke: #2f7a45; }
.ch-d.ot { fill: #2f7a45; }
.ch-l.inv { stroke: #8a8f94; stroke-dasharray: 5 4; }
.ch-d.inv { fill: #8a8f94; stroke: none; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin: 4px 0 0; }
.ch-legend .ot::before, .ch-legend .inv::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 2.5px solid #2f7a45; margin-right: 6px; vertical-align: middle; }
.ch-legend .inv::before { border-top: 2.5px dashed #8a8f94; }
.ch-note { font-size: 13.5px; }

/* Daily Buffer Meeting */
.bm-head .eyebrow { margin-bottom: 6px; }
.bm-zones { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; margin: 0 0 10px; }
.bm-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: #fff; }
.bm-pill.green, .bm-card.green .bm-buf span { background: #3f8f55; }
.bm-pill.yellow, .bm-card.yellow .bm-buf span { background: #d39b12; }
.bm-pill.red, .bm-card.red .bm-buf span { background: #c23b2b; }
.bm-pill.black, .bm-card.black .bm-buf span { background: #1c2126; }
.bm-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.bm-card { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 10px 11px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); font: 13px/1.35 var(--sans); color: var(--ink); cursor: pointer; }
.bm-card.green { border-left: 6px solid #3f8f55; }
.bm-card.yellow { border-left: 6px solid #d39b12; }
.bm-card.red { border-left: 6px solid #c23b2b; }
.bm-card.black { border-left: 6px solid #1c2126; }
.bm-card.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.bm-id { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 6px; }
.bm-id small { font-weight: 500; color: var(--ink-2); font-size: 12px; }
.bm-buf { height: 7px; background: var(--card); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bm-buf span { display: block; height: 100%; }
.bm-meta { color: var(--ink-2); }
.bm-stuck { color: #b6451a; font-weight: 600; font-size: 12.5px; }
.bm-exp { font-weight: 700; color: var(--accent); font-size: 12.5px; }
.bm-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.bm-foot .muted { flex: 1 1 220px; }
.bm-report:empty { display: none; }
.bm-report { margin-top: 14px; }
.bm-pareto { display: grid; gap: 6px; margin: 10px 0; }
.bm-par { display: grid; grid-template-columns: 200px 1fr 70px; gap: 10px; align-items: center; font-size: 14px; }
.bm-par-bar { height: 14px; background: var(--card); border-radius: 4px; overflow: hidden; }
.bm-par-bar span { display: block; height: 100%; background: #c23b2b; }
.bm-par b { font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.bm-fix { display: grid; gap: 6px; }
.bm-note { font-size: 13px; margin: 10px 0 0; }

/* plant cases */
.fc-svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.fc-edge { fill: none; stroke: #b9b0a2; stroke-width: 2; }
.fc-arrowhead { fill: #b9b0a2; }
.fc-elab { font: 600 11px var(--sans); fill: var(--ink-2); }
.fc-n { stroke-width: 2; }
.fc-rm { fill: #fffdf9; stroke: #8a8f94; }
.fc-nb { fill: #e8f1f8; stroke: #3d7ab8; }
.fc-bn { fill: #f9e5e2; stroke: #c23b2b; stroke-width: 2.5; }
.fc-asm { fill: #eef6f0; stroke: #3f8f55; }
.fc-fg { fill: #1c2126; stroke: #1c2126; }
.fc-lab { font: 700 12px var(--sans); fill: var(--ink); }
.fc-svg circle.fc-fg + .fc-lab { fill: #fff; }
.fc-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 0; }
.fc-key .k::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 2px solid; }
.fc-key .rm::before { border-color: #8a8f94; border-radius: 50%; }
.fc-key .nb::before { border-color: #3d7ab8; background: #e8f1f8; }
.fc-key .bn::before { border-color: #c23b2b; background: #f9e5e2; }
.fc-key .asm::before { border-color: #3f8f55; background: #eef6f0; }
.fc-key .fg::before { border-color: #1c2126; background: #1c2126; border-radius: 50%; }

/* conflict cloud */
.cl-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 12px; align-items: center; }
.cl-mid, .cl-right { display: grid; gap: 12px; }
.cl-box { padding: 10px 12px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; font-size: 14.5px; line-height: 1.35; transition: opacity .3s; }
.cl-box small { display: block; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.cl-box.d, .cl-box.d2 { border-color: #c23b2b; }
.cl-x { text-align: center; font-size: 22px; color: #c23b2b; font-weight: 700; line-height: 1; transition: opacity .3s; }
.cl-assume, .cl-inj { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; transition: opacity .3s; }
.cl-assume { background: #f9e5e2; border: 1.5px dashed #c23b2b; }
.cl-inj { background: #e6f2e9; border: 1.5px solid #3f8f55; }
.cl-hidden { opacity: .08; }
@media (max-width: 640px) {
  .cl-grid { grid-template-columns: 1fr; }
  .ch-st { grid-template-columns: 110px 1fr 30px; font-size: 12.5px; }
  .ch-slider { margin-left: 0; grid-template-columns: 1fr auto; }
  .bm-par { grid-template-columns: 1fr 70px; }
  .bm-par .bm-par-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) { .bm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .bm-card { padding: 8px; font-size: 12px; } .bm-id { flex-direction: column; } }

/* plant types */
.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 8px; }
.lx.pt-card { margin: 0; padding: 12px 14px 10px; }
.pt-letter { margin: 0 0 2px !important; font: 600 20px var(--serif); color: var(--ink); }
.pt-letter b { color: var(--accent); font-size: 26px; margin-right: 4px; }
.pt-svg { width: 100%; height: auto; display: block; }
.pt-edge { stroke: #b9b0a2; stroke-width: 1.8; }
.pt-side { font: 600 9.5px var(--sans); fill: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.pt-cap { font: 600 12px var(--sans); fill: var(--ink); }
.pt-svg .fc-n { stroke-width: 1.8; }
.lx.pt-solo { max-width: 340px; margin: 14px auto 22px; }
@media (max-width: 480px) { .pt-grid { grid-template-columns: 1fr; } }
.lx-before { margin: 26px 0 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); font-size: 16px; }
.lx-before p { margin: 0 0 .5em; }
.lx-before ul { margin: 0; padding-left: 20px; }
.lx-before li { margin: 4px 0; }
.lx-before .eyebrow { margin-bottom: 6px; }
.lesson-play .lp-look { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* Keep the Shelves Full */
.sh-select { font: 500 14px var(--sans); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.sh-sub { margin-left: 26px; }
.sh-chart, .sh-heat { margin: 14px 0; }
.sh-zone.red { fill: #c23b2b; opacity: .13; }
.sh-zone.yellow { fill: #d39b12; opacity: .15; }
.sh-zone.green { fill: #3f8f55; opacity: .13; }
.sh-line { fill: none; stroke: #1c2126; stroke-width: 1.8; }
.sh-out { fill: #c23b2b; }
.sh-shift { stroke: #8a8f94; stroke-width: 1.2; stroke-dasharray: 4 4; }
.sh-k::before { content: ""; display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.sh-k.line::before { height: 0; border-top: 2px solid #1c2126; }
.sh-k.out::before { width: 8px; height: 8px; border-radius: 50%; background: #c23b2b; }
.sh-grid { border-collapse: separate; border-spacing: 4px; font-size: 13.5px; width: 100%; }
.sh-grid th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.sh-c { text-align: center; padding: 8px 4px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-c.out, .sh-k.c-out::before { background: #c23b2b; color: #fff; }
.sh-c.low, .sh-k.c-low::before { background: #f3cfa3; }
.sh-c.ok, .sh-k.c-ok::before { background: #cfe6d5; }
.sh-c.high, .sh-k.c-high::before { background: #3d7ab8; color: #fff; }

/* buffer calculator & replenishment time */
.bc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.bc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.rt-bars { display: grid; gap: 8px; margin: 6px 0 12px; }
.rt-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.rt-track { display: flex; height: 28px; background: var(--paper); border-radius: 6px; overflow: hidden; }
.rt-b, .rt-w { display: flex; align-items: center; padding: 0 6px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: width .3s; }
.rt-b { background: #f3cfa3; color: #6b3d0c; }
.rt-w { background: #3d7ab8; color: #fff; }
.rt-gone { padding: 0 8px; font-size: 12.5px; color: #2f7a45; font-weight: 600; align-self: center; }
@media (max-width: 640px) { .bc-grid { grid-template-columns: 1fr; } .rt-row { grid-template-columns: 1fr; gap: 3px; } .sh-sub { margin-left: 0; } }
