/* Alpcell Fusion Tools tool pages. One stylesheet for every page; colours follow the add-in's icons:
   orange for create tools, blue for inspect and repair tools, slate for details. */

:root {
  --orange: #e07a2f;
  --blue: #4a7bb7;
  --slate: #707c8a;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b6470;
  --line: #e2e0da;
  --code-bg: #efede8;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.05), 0 4px 16px rgba(20, 20, 20, 0.04);
  --radius: 10px;
  --measure: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17191c;
    --surface: #1f2226;
    --text: #e8e6e3;
    --muted: #9aa3ad;
    --line: #30343a;
    --code-bg: #2a2e33;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17191c;
  --surface: #1f2226;
  --text: #e8e6e3;
  --muted: #9aa3ad;
  --line: #30343a;
  --code-bg: #2a2e33;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ---- Frame ---------------------------------------------------------------- */

.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top-inner, main, .foot-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 16px;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--muted); font-weight: 400; }
.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 0.92rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

main { padding-top: 40px; padding-bottom: 56px; }

.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 22px;
  padding-bottom: 30px;
}
.foot p { margin: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-alp { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; font-weight: 600; vertical-align: -4px; }
.foot-alp img { width: 18px; height: 18px; }
.page-title { margin: 0 0 18px; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; }
.updated { color: var(--muted); font-size: 0.92rem; margin-top: 32px; }

/* ---- Index ------------------------------------------------------------------ */

.hero { max-width: var(--measure); margin-bottom: 40px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero p { color: var(--muted); font-size: 1.08rem; margin: 0 0 10px; }

.group { margin-bottom: 44px; }
.group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.group-head h2 { font-size: 1.25rem; margin: 0; }
.group-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.group-head::before {
  content: "";
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}
.group.create .group-head::before { background: var(--orange); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--slate); transform: translateY(-1px); }
.card img { width: 40px; height: 40px; flex: none; }
.card strong { display: block; margin-bottom: 2px; }
.card span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; display: block; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 14px 28px;
  max-width: var(--measure);
  padding: 0;
  list-style: none;
}
.facts li { color: var(--muted); font-size: 0.95rem; }
.facts strong { color: var(--text); display: block; }

/* ---- Tool page ------------------------------------------------------------- */

.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.tool-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.tool-head img { width: 64px; height: 64px; flex: none; }
.tool-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; }
.where {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
}

.lead { font-size: 1.12rem; max-width: var(--measure); margin: 0 0 28px; }

/* The part the tool makes, rendered from a 3MF export (dev/toolclips.py): transparent, so it
   sits on a card in either theme. */
.render {
  max-width: 36rem;
  margin: -8px 0 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 8px 12px;
  box-shadow: var(--shadow);
}
.render img { display: block; width: 100%; height: auto; }
.render figcaption { color: var(--muted); font-size: 0.86rem; text-align: center; }
/* Several renders, two side by side (the gear page: one pair of each kind). */
.renders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 14px;
  max-width: 50rem;
  padding: 0;
  margin: -8px 0 8px;
  list-style: none;
}
.renders .render { max-width: none; margin: 0; height: 100%; box-sizing: border-box; }
.tool .renders { max-width: 50rem; }
.renders-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }

.tool h2 {
  font-size: 1.15rem;
  margin: 36px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}
.tool p, .tool ul, .tool ol, .tool dl { max-width: var(--measure); }
.tool li { margin: 0.25em 0; }

.options { margin: 0; }
.options div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.options div:last-child { border-bottom: 0; }
.options dt { font-weight: 600; }
.options dd { margin: 2px 0 0; color: var(--muted); }

.note {
  max-width: var(--measure);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.gallery figure {
  margin: 0;
  background: #ffffff;  /* the previews are drawn for Fusion's light dialog */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}
.gallery img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.gallery figcaption { color: #5b6470; font-size: 0.82rem; margin-top: 6px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.pager a { text-decoration: none; }
.pager .next { margin-left: auto; text-align: right; }

@media (max-width: 560px) {
  .top nav a { display: none; }
  .top nav a.nav-get { display: inline; }
  .brand span { display: none; }
  .tool-head img { width: 48px; height: 48px; }
}

/* ---- Tool page: overview ----------------------------------------------------- */
/* Top of a tool page: what the tool gives you (heading, lead, key facts, the render), then
   feature cards and the steps to use it. */

.ov {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: 24px 40px;
  align-items: center;
  margin-bottom: 36px;
}
.ov .lead { margin-bottom: 18px; }
.ov .render { margin: 0; max-width: none; }
@media (max-width: 54rem) {
  .ov { grid-template-columns: minmax(0, 1fr); }
}

.keyfacts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.keyfacts li {
  font-size: 0.86rem;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.jump { font-size: 0.95rem; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.feature.wide { grid-column: span 2; }
@media (max-width: 40rem) { .feature.wide { grid-column: auto; } }
.feature h3 { margin: 0 0 4px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.feature .dg { margin: 2px 0 12px; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 18px 24px;
}
.tool .steps { max-width: none; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.steps > li > strong { display: block; }
.steps span { color: var(--muted); font-size: 0.93rem; }

/* ---- Tool page: drawings ------------------------------------------------------- */
/* Inline SVG drawings, coloured from these classes so they follow the theme. */

:root {
  --dg-body: #dfe2e6;
  --dg-teeth: #b8c0c9;
  --dg-edge: #6b7683;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dg-body: #39404a; --dg-teeth: #5a6470; --dg-edge: #a3acb6; }
}
:root[data-theme="dark"] { --dg-body: #39404a; --dg-teeth: #5a6470; --dg-edge: #a3acb6; }

.dg { display: block; width: 100%; height: auto; }
.dg-body { fill: var(--dg-body); stroke: var(--dg-edge); stroke-width: 1.2; stroke-linejoin: round; }
.dg-teeth { fill: var(--dg-teeth); }
.dg-hole { fill: var(--surface); stroke: var(--dg-edge); stroke-width: 1.2; }
.dg-hidden { fill: none; stroke: var(--dg-edge); stroke-width: 1; stroke-dasharray: 4 3; }
.dg-axis { fill: none; stroke: var(--slate); stroke-width: 1; stroke-dasharray: 12 3 2 3; }
.dg-dim { fill: none; stroke: var(--orange); stroke-width: 1.3; }
.dg-ext { fill: none; stroke: var(--muted); stroke-width: 0.8; }
.dg-head { fill: var(--orange); }
.dg-alt { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 5 3; }
.dg-tag circle { fill: var(--orange); }
.dg-tag text { fill: #ffffff; font: 700 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; text-anchor: middle; dominant-baseline: central; }
.dg-text { fill: var(--muted); font: 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }

.diagram {
  margin: 18px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: 12px 28px;
  align-items: center;
}
@media (max-width: 44rem) { .diagram { grid-template-columns: minmax(0, 1fr); } }
.diagram figcaption { color: var(--muted); font-size: 0.92rem; }
.diagram figcaption p { margin: 0 0 8px; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tool .legend { max-width: none; }
.legend li { margin: 0; color: var(--text); }
.mini { max-width: 16rem; margin: 8px 0 4px; }
.mini-note { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* A letter that links a dialog row to the drawing. */
.tag {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: 1px;
}

/* ---- Tool page: the annotated dialog -------------------------------------------- */
/* The Settings: the tool's dialog drawn as Fusion shows it (left), with what each row does
   beside it (right). One grid row per dialog row, so each explanation sits next to its field. */

:root {
  --dlg-bg: #eef0f2;
  --dlg-top: #e1e4e8;
  --dlg-line: #d3d7dc;
  --dlg-text: #2a2e33;
  --dlg-muted: #77808a;
  --dlg-field: #ffffff;
  --dlg-field-line: #c3c9d0;
  --dlg-btn: #f7f8f9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dlg-bg: #2d3138;
    --dlg-top: #353a42;
    --dlg-line: #3d424a;
    --dlg-text: #dcdfe2;
    --dlg-muted: #8f98a2;
    --dlg-field: #23272c;
    --dlg-field-line: #4a5058;
    --dlg-btn: #3a3f47;
  }
}
:root[data-theme="dark"] {
  --dlg-bg: #2d3138;
  --dlg-top: #353a42;
  --dlg-line: #3d424a;
  --dlg-text: #dcdfe2;
  --dlg-muted: #8f98a2;
  --dlg-field: #23272c;
  --dlg-field-line: #4a5058;
  --dlg-btn: #3a3f47;
}

.dlg {
  margin: 18px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dlg-row {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
}
.dlg-row > .ctl-cell {
  background: var(--dlg-bg);
  color: var(--dlg-text);
  padding: 8px 14px;
  font-size: 0.86rem;
}
.dlg-row > .doc-cell { padding: 9px 20px 11px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.dlg-row > .doc-cell p { margin: 0 0 6px; max-width: none; }
.dlg-row > .doc-cell p:last-child { margin-bottom: 0; }
.doc-cell h3 { font-size: 1rem; margin: 0 0 2px; }
.meta { color: var(--muted); font-size: 0.86rem; }

/* Dialog title bar, group headers and the OK/Cancel footer. */
.dlg-row.bar > .ctl-cell {
  background: var(--dlg-top);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
}
.dlg-row.bar > .doc-cell { border-top: 0; color: var(--muted); font-size: 0.88rem; }
.dlg-row.grp > .ctl-cell { border-top: 1px solid var(--dlg-line); font-weight: 600; padding-top: 10px; }
.dlg-row.grp > .ctl-cell::before { content: "▾"; color: var(--dlg-muted); margin-right: 8px; }
.dlg-row.grp > .doc-cell { background: var(--code-bg); }
.dlg-row.sub > .ctl-cell { color: var(--dlg-muted); font-style: italic; padding-top: 10px; }
.dlg-row.end > .ctl-cell {
  border-top: 1px solid var(--dlg-line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}
.dlg-row.end .info {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--dlg-muted);
  color: var(--dlg-muted);
  display: inline-grid;
  place-items: center;
  font: italic 700 11px Georgia, serif;
  margin-right: auto;
}

/* One dialog row: label, then the control. */
.ctl-row { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 10px; align-items: center; }
.ctl-row .label { line-height: 1.3; }
.ctl-row.off { opacity: 0.45; }
.ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--dlg-field);
  border: 1px solid var(--dlg-field-line);
  font-variant-numeric: tabular-nums;
}
.ctl.drop::after { content: "▾"; color: var(--dlg-muted); font-size: 0.8em; margin-left: 8px; }
.ctl.spin::after { content: "⇅"; color: var(--dlg-muted); font-size: 0.85em; margin-left: 8px; }
.ctl.check { width: 16px; height: 16px; min-height: 0; padding: 0; justify-content: center; font-size: 11px; line-height: 1; }
.ctl.check.on { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.ctl.btn { justify-self: start; padding: 2px 14px; background: var(--dlg-btn); }
.ctl.sel { justify-self: start; padding: 2px 12px 2px 8px; gap: 6px; }
.ctl.sel::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); }
.ctl.plain { background: none; border: 0; padding: 2px 0; justify-content: flex-start; }
.ctl.plain a { color: var(--blue); }
.ctl.ok { padding: 2px 16px; background: var(--dlg-btn); }

@media (max-width: 46rem) {
  .dlg-row { grid-template-columns: minmax(0, 1fr); }
  .dlg-row > .doc-cell { border-top: 0; padding-top: 6px; padding-bottom: 14px; }
  .dlg-row > .ctl-cell { border-top: 1px solid var(--dlg-line); }
  .dlg-row.bar > .doc-cell { display: none; }
}
.tool .features, .tool .keyfacts { max-width: none; }
.tool h2 { max-width: none; }
/* A group header's checkbox (Fusion's "☑ Frame screws" groups), inline with the title. */
.dlg-row.grp .ctl.check { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
/* Inspect and repair pages number their steps in blue, like their icons. */
.steps.blue li::before { background: var(--blue); }
/* A picture in a dialog row (the dialogs' preview drawings) shrinks with a narrow screen. */
.ctl-cell img { max-width: 100%; height: auto; }
/* An overview without a picture beside it (the gear page's renders follow below it). */
.ov.solo { grid-template-columns: minmax(0, 1fr); }
.ov.solo > div { max-width: var(--measure); }
/* The report and Sketch Buddy panels' dots, in the panels' own colours (panel mocks). */
:root { --dot-err: #c4302b; --dot-warn: #c77700; --dot-info: #4a7bb7; --dot-ok: #2e8540; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dot-err: #f0716b; --dot-warn: #f0b14a; --dot-info: #8db4e6; --dot-ok: #6cc282; }
}
:root[data-theme="dark"] { --dot-err: #f0716b; --dot-warn: #f0b14a; --dot-info: #8db4e6; --dot-ok: #6cc282; }
.dg-dot-err { fill: var(--dot-err); }
.dg-dot-warn { fill: var(--dot-warn); }
.dg-dot-info { fill: var(--dot-info); }
.dg-dot-ok { fill: var(--dot-ok); }

/* ---- Gear pages: the row linking the overview and the five kinds ------------------ */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; }
.tool .subnav { max-width: none; }
.subnav li { margin: 0; }
.subnav a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
}
.subnav a:hover { border-color: var(--slate); }
.subnav a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: #ffffff; font-weight: 600; }
/* A group that opens collapsed in Fusion (Tooth form). */
.dlg-row.grp.closed > .ctl-cell::before { content: "▸"; }
/* Small renders side by side in a doc cell (Gridfinity's three kinds). */
.kinds-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 10px 0 4px; }
.tool .kinds-row { max-width: none; }
.kinds-row li { margin: 0; }
.kinds-row figure { margin: 0; text-align: center; }
.kinds-row img { display: block; width: 100%; height: auto; }
.kinds-row figcaption { color: var(--muted); font-size: 0.85rem; }
/* Letter circles centred on their line, whatever the text size around them: a legend line and a
   dialog label are flex rows, and the letter sits in the middle of its circle (line-height 1). */
.tag { line-height: 1; vertical-align: middle; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li .tag { margin-left: 0; }
.ctl-row .label { display: flex; align-items: center; flex-wrap: wrap; }

/* ---- Get it: download cards, screenshots, code ------------------------------------- */
.top nav a.nav-get { color: var(--orange); font-weight: 600; }
.top nav a.nav-get:hover { color: var(--text); }
.tool h3 { font-size: 1rem; margin: 26px 0 6px; }
.get-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.tool .get-cards { max-width: none; }
.get-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.get-card h3 { margin: 0 0 4px; }
.get-card p { margin: 0 0 12px; color: var(--muted); font-size: 0.93rem; }
.get-card .get-soon { margin: auto 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; }
.btn-off {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--code-bg);
  color: var(--muted);
  font-weight: 600;
  cursor: not-allowed;
}
.shot { margin: 16px 0 0; }
.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.shot figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.shot figcaption strong { color: var(--text); font-weight: 600; }
.shots {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 28px;
  list-style: none;
  padding: 0;
  margin: 8px 0 18px;
}
.tool .shots { max-width: none; }
.shots li { margin: 0; flex: 0 1 auto; max-width: 20rem; }
pre {
  max-width: var(--measure);
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--code-bg);
  border-radius: 6px;
}
pre code { padding: 0; background: none; }
.hero .hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 18px 0 0; font-size: 0.98rem; }
.get-link {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.get-link:hover { color: #ffffff; filter: brightness(1.07); }
.steps code { overflow-wrap: anywhere; }
.shot-aside { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 32px; margin-top: 8px; }
.shot-aside .shot { margin-top: 0; flex: none; }
.shot-aside p { flex: 1 1 16rem; margin-top: 4px; }
