/* bend allowance and K-factor — on top of calc.css */
main.bd .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.bd .stage-bar .hist { margin-left: auto; }
#view { display: block; width: 100%; height: auto; flex: 1; min-height: 0; user-select: none; -webkit-user-select: none; touch-action: none; }
#view.dragging, #view.dragging * { cursor: grabbing !important; }
#view .hit { fill: transparent; stroke: none; }
#foldBtn { min-width: 74px; }
body.folding #foldBtn { border-color: var(--sel); color: var(--sel); }

/* the part */
.bd-sheet { fill: var(--steel-200); stroke: var(--steel-700); stroke-width: 1.1; stroke-linejoin: round; }
.bd-sheet.flatv { fill: var(--steel-100); }
.bd-ghost { fill: none; stroke: var(--x-cfd3d8, #cfd3d8); stroke-dasharray: 3 3; }
.bd-mid { fill: none; stroke: var(--steel-500); stroke-width: .6; stroke-dasharray: 10 3 2 3; }
.bd-zone { fill: color-mix(in srgb, var(--sel) 7%, transparent); stroke: none; }
.bd-zone.hl, .bd-flange.hl { fill: color-mix(in srgb, var(--amber) 16%, transparent); }
.bd-flange { fill: transparent; }
.bd-bl { stroke: var(--sel); stroke-width: 1.1; stroke-dasharray: 7 3 2 3; }
.bd-bl.down { stroke: var(--moment); stroke-dasharray: 3 3; }
.bd-zl { stroke: var(--x-9fb6e9, #9fb6e9); stroke-width: .7; }
.bd-flat { fill: var(--steel-50); stroke: var(--steel-700); stroke-width: 1.1; }
.bd-brk { fill: none; stroke: var(--steel-700); stroke-width: 1; }
.bd-keep { fill: url(#keep); stroke: none; }
.bd-hole { fill: var(--surface); stroke: var(--steel-700); stroke-width: 1.1; cursor: move; }
.bd-hole.bad { stroke: var(--bad); stroke-width: 1.6; }
.bd-h { font-size: 13.5px; font-weight: 600; fill: var(--text); }
.bd-sub, .bd-note { font-size: 11.5px; fill: var(--text-3); }
.bd-tag { font-size: 11px; font-weight: 600; }
.bd-tag.up { fill: var(--sel); } .bd-tag.down { fill: var(--moment); }
.bd-dimt { font-size: 11px; fill: var(--text-2); font-variant-numeric: tabular-nums; }
.bd-ext { stroke: var(--steel-400); stroke-width: .7; }
.bd-leader { stroke: var(--steel-550); stroke-width: .8; fill: none; }
.bd-vs { fill: var(--surface); stroke: var(--steel-550); stroke-width: .9; }
.bd-knob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.8; }
.handle:hover .bd-knob, .handle:focus .bd-knob { fill: var(--sel); }
.handle { cursor: grab; }
.handle:focus { outline: none; }
.bd-arc { fill: none; stroke: var(--sel); stroke-width: 1; }
.bd-sec { fill: var(--text-3); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.bd-split { stroke: var(--line); }

/* pills (same language as the other calculators) */
#view .pill rect { fill: var(--surface); stroke: var(--steel-300); }
#view .pill text { font-size: 11.5px; font-weight: 500; fill: var(--text-2); font-variant-numeric: tabular-nums; }
#view .pill.dimv rect { stroke: var(--steel-200); }
#view .pill.ang rect { stroke: color-mix(in srgb, var(--sel) 40%, transparent); } #view .pill.ang text { fill: var(--x-1e4fbf, #1e4fbf); font-weight: 600; }
#view .pill.tot rect { stroke: rgba(23, 24, 26, .35); } #view .pill.tot text { fill: var(--text); font-weight: 600; }
#view .pill.editable { cursor: text; }
#view .pill.drag { cursor: grab; }
#view .pill.editable:hover rect { stroke: var(--sel); stroke-width: 1.4; }
#view .pill.editable:focus { outline: none; }
#view .pill.editable:focus rect { stroke: var(--sel); stroke-width: 1.6; }

/* live strip with the fold scrubber */
.bd-live { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 38px; align-items: center; }
.bd-live b { font-weight: 500; color: var(--text-3); margin-right: 5px; }
.bd-live i { font-style: normal; color: var(--text-3); }
.bd-fold { display: inline-flex; align-items: center; gap: 8px; }
.bd-fold input { width: 170px; accent-color: var(--sel); }
.bd-live .big { color: var(--text); font-weight: 600; }

/* editors and pop-ups in the drawing */
.stage { position: relative; }
.bd-edit { position: absolute; transform: translate(-50%, -50%); z-index: 5; display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1.5px solid var(--sel); border-radius: 9px; padding: 2px 6px 2px 4px; box-shadow: 0 6px 18px rgba(20, 22, 28, .14); }
.bd-edit input { width: 76px; border: 0; outline: none; font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; padding: 3px 2px; }
.bd-edit span { font-size: 11.5px; color: var(--text-3); }
.bd-edit button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; font-size: 12px; padding: 2px 7px; cursor: pointer; color: var(--text-2); }
.bd-edit button:hover { border-color: var(--sel); color: var(--sel); }

/* examples menu (same as the other tools) */
.ex-wrap { position: relative; }
.ex-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 8; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 22, 28, .12); padding: 6px; display: grid; gap: 2px; min-width: 290px; }
.ex-menu[hidden] { display: none; }
.ex-menu button { border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text); display: grid; gap: 1px; }
.ex-menu button small { color: var(--text-3); font-size: 11.5px; }
.ex-menu button:hover, .ex-menu button:focus { background: var(--fill-1); outline: none; }

/* panel */
.bd-shapes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.bd-shape { display: grid; justify-items: center; gap: 1px; padding: 5px 6px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 11.5px; color: var(--text-2); }
.bd-shape:hover { border-color: var(--line-2); }
.bd-shape.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
.bd-prof { display: grid; gap: 3px; }
.bd-prow { display: grid; grid-template-columns: 54px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.bd-prow.bend { grid-template-columns: 54px minmax(0, 1fr) auto 26px; }
.bd-prow > span:first-child { font-size: 12px; color: var(--text-3); }
.bd-prow .num input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font-size: 13px; text-align: right; outline: none; padding-right: calc(10px + var(--u, 0px)); }
.bd-dir { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 4px 8px; font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.bd-dir:hover { border-color: var(--line-2); color: var(--text); }
.bd-add { justify-self: start; font-size: 12.5px; color: var(--sel); padding: 4px 2px; }
.bd-seg { margin-bottom: 6px; }
.bd-seg button:disabled { opacity: .4; cursor: not-allowed; }
.bd-kv { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--text-2); padding: 4px 0 2px; }
.bd-kv b { font-weight: 500; color: var(--text); }
#panel input.bad { color: var(--bad); }
#panel .num:has(input.bad) input { border-color: var(--bad); }
.small-note a, .bd-kv a { color: var(--text-2); }
.srcs a { text-decoration: none; color: var(--text-2); font-size: 11px; border-bottom: 1px dotted var(--line-2); }

/* summary */
.bd-say { font-size: 12.5px; color: var(--text-2); margin-top: 6px; max-width: 36ch; line-height: 1.4; }
.bd-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bd-stats .stat .v { white-space: nowrap; }
.bd-stats .stat.hero .v { font-size: 20px; font-weight: 600; }
.bd-tag2 { font-size: 10.5px; color: var(--text-3); background: var(--fill-1); border-radius: 999px; padding: 0 6px; }
.margins td.note { white-space: normal; min-width: 240px; }
#checks tr.adv td.l:first-child { color: var(--text-2); }
.bd-bends td.l b { font-weight: 600; }
.bd-up { color: var(--sel); } .bd-down { color: var(--moment); }

/* charts */
.bd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.bd-row > .card { min-width: 0; }
#tonnage { scroll-margin-top: 16px; }
#kchart, #tchart { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
#kchart .drag, #tchart .drag { cursor: ew-resize; }
.ch-t { font-size: 10.5px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.ch-a { font-size: 11px; fill: var(--text-2); }
.ch-l { font-size: 11px; font-weight: 600; }
.bd-tfoot { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-top: 6px; }
.bd-tfoot b { color: var(--text); font-weight: 600; }
.step .where { font-size: 12px; color: var(--text-3); margin: 6px 0 0; line-height: 1.6; }
.sec-tag { font-style: normal; font-size: 11px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; }

@media (max-width: 1200px) { .bd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bd-stats .stat:nth-child(4) { border-left: 0; } .bd-stats .stat:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 1040px) { .bd-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .bd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-stats .stat { border-left: 0; border-top: 1px solid var(--line); }
  .bd-stats .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .bd-stats .stat:nth-child(-n+2) { border-top: 0; }
  .bd-fold input { width: 120px; }
  #checks th:nth-child(4), #checks td.note { display: none; }
  .margins td.l { white-space: normal; }
  .margins td, .margins th { padding-left: 5px; padding-right: 5px; }
  .bd-live { font-size: 12px; gap: 3px 12px; }
  .bd-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bd-bends .opt { display: none; }
}
/* phones: the drawing is redrawn on a 600-unit-wide viewBox with text about 10.5 px on screen */
#view.narrow .bd-h { font-size: 19.5px; }
#view.narrow .bd-sub, #view.narrow .bd-note, #view.narrow .bd-dimt, #view.narrow .bd-tag { font-size: 18px; }
#view.narrow .bd-sec { font-size: 18.5px; }
#view.narrow .pill text { font-size: 18px; }

/* the stage outline as an inset shadow (no border box around the drawing) */
main.bd .card.stage { border-style: none; box-shadow: inset 0 0 0 1px var(--line); }

/* handles on the drawing: angle (blue knob), bend move (diamond), flange length (hollow) */
.bd-knob2 { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.handle:hover .bd-knob2, .handle:focus .bd-knob2 { stroke: var(--sel); }
.bd-mv { fill: var(--surface); stroke: var(--sel); stroke-width: 1.5; }
.handle.mv { cursor: move; }
.handle.mv:hover .bd-mv, .handle.mv:focus .bd-mv { fill: var(--sel); }
.handle.fmv { cursor: ew-resize; }
.handle.fmv:hover .bd-bl { stroke-width: 2.2; }
.bd-bhit { fill: none; stroke: none; cursor: pointer; pointer-events: stroke; stroke-linecap: round; }
.bd-fhit { stroke: none; cursor: copy; pointer-events: stroke; }
.bd-clash { fill: color-mix(in srgb, var(--bad) 12%, transparent); stroke: var(--bad); stroke-width: 2; pointer-events: none; }
.bd-note.bad { fill: var(--bad); font-weight: 600; }
/* press brake scene */
.bd-punch { fill: var(--steel-50); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.bd-die { fill: var(--steel-250); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.bd-bed { fill: var(--steel-100); stroke: var(--steel-500); stroke-width: .8; }
.bd-beam { fill: var(--steel-100); stroke: var(--steel-500); stroke-width: .8; }
.bd-punch.clash, .bd-die.clash, .bd-bed.clash, .bd-beam.clash { stroke: var(--bad); stroke-width: 2; fill: var(--bad-bg); }

/* bend editor pop-up */
.bd-bpop { display: grid; gap: 6px; padding: 8px 10px; min-width: 210px; transform: translate(-50%, -50%); }
.bd-bpop .bp-h { font-size: 12px; font-weight: 600; color: var(--text); }
.bd-bpop .bp-r { display: grid; grid-template-columns: minmax(0, 1fr) 76px 16px; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.bd-bpop .bp-r input { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; width: 76px; }
.bd-bpop .bp-r i { font-style: normal; color: var(--text-3); font-size: 11.5px; }
.bd-bpop .seg.bp-r { display: flex; }
.bd-bpop .seg button { padding: 4px 10px; }
.bd-bpop .bp-a { display: flex; justify-content: space-between; gap: 8px; }
.bd-bpop .bp-a .ghost { color: var(--bad); padding: 4px 8px; }

/* profile panel */
.bd-pact { display: inline-flex; gap: 2px; justify-content: flex-end; }
.bd-prow { grid-template-columns: 58px minmax(0, 1fr) 54px; }
.bd-prow.bend { grid-template-columns: 58px minmax(0, 1fr) auto 86px; }
.bd-prow select { width: 100%; }
.bd-ins { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 24px; height: 24px; padding: 0 6px; cursor: pointer; color: var(--sel); font-size: 14px; line-height: 1; }
.bd-ins:hover { border-color: var(--sel); }
.bd-rown input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font-size: 12.5px; text-align: right; outline: none; padding-right: calc(10px + var(--u, 0px)); }
.bd-rown input::placeholder { color: var(--x-a4a6aa, #a4a6aa); }
.bd-hemrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bd-hems { display: grid; gap: 2px; font-size: 12px; color: var(--text-3); }
.bd-limit { color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.bd-back { font-size: 12.5px; color: var(--sel); padding: 3px 8px; }

/* margins rows: icon and name */
#checks td.chk .chk-in { display: inline-flex; align-items: center; gap: 10px; outline: none; }
#checks td.chk .th { flex: none; width: 46px; height: 46px; margin: -8px 0; display: block; }
#checks td.chk .chk-in:focus-visible span { text-decoration: underline; }
.bd-pv { position: fixed; z-index: 60; width: 220px; padding: 8px 8px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(20, 24, 30, .14); pointer-events: none; font-size: 12px; color: var(--text); }
.bd-pv[hidden] { display: none; }
.bd-pv svg { display: block; width: 204px; height: auto; margin: 4px 0 6px; }
.bd-pv .pv-h { font-weight: 600; font-size: 12px; }
.bd-pv .pv-c { color: var(--text-2); line-height: 1.35; }
.bd-pv .pv-m { margin-top: 4px; color: var(--text-3); }

/* the bend order */
.bd-seq { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.bd-seq li button { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text); text-align: left; }
.bd-seq li button:hover { border-color: var(--line-2); }
.bd-seq li.on button { background: var(--sel-bg); border-color: var(--x-c9d6f6, #c9d6f6); }
.bd-seq li.bad button { background: var(--x-fdf3f2, #fdf3f2); }
.bd-seq .n { font-size: 12px; color: var(--text-3); }
.bd-seq .t i { font-style: normal; color: var(--text-3); margin-left: 6px; }
.bd-seq .tool { font-size: 12px; color: var(--text-2); }
.bd-seq .sq-h { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 7px 10px; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 640px) { .bd-seq li button { grid-template-columns: 22px minmax(0, 1fr) auto; } .bd-seq .tool { display: none; } }
/* the panel scrolls inside the stage's height: its lower edge fades rather than cutting a control in half */
main.bd #panel { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); padding-bottom: 26px; }
@media (max-width: 1040px) { main.bd #panel { -webkit-mask-image: none; mask-image: none; padding-bottom: 16px; } }
@media (max-width: 640px) {
  .bd-bends th:nth-child(4), .bd-bends td:nth-child(4) { display: none; }
  .bd-bends td, .bd-bends th { padding-left: 4px; padding-right: 4px; white-space: normal; }
  #checks th:nth-child(3), #checks td:nth-child(3) { display: none; }
  #checks td.chk .chk-in { gap: 6px; }

}

.bd-prow.hemr { grid-template-columns: 58px minmax(0, 1fr) auto; }

/* examples with thumbnails of their profiles */
main.bd .ex-menu { min-width: 0; width: min(440px, calc(100vw - 32px)); }
main.bd .ex-menu button { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 8px; }
main.bd .ex-menu .ex-th { display: block; width: 96px; height: 64px; }
main.bd .ex-menu .ex-tx { display: grid; gap: 2px; min-width: 0; }
main.bd .ex-menu .ex-t { font-size: 13px; color: var(--text); }
@media (max-width: 640px) {
  main.bd .ex-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 32px); left: 0; }
  main.bd .ex-menu button { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  main.bd .ex-menu .ex-th { width: 100%; height: auto; }
}
/* T011: press-brake scrubber, back gauge, contact chip, jogs */
.bd-scrub { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 360px; min-width: 0; }
.bd-play { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2, #d5d9de); background: var(--surface, #fff); color: var(--sel); font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
.bd-play:hover:not(:disabled) { border-color: var(--sel); }
.bd-play:disabled { color: var(--text-3); cursor: default; }
.bd-track { position: relative; flex: 1 1 200px; min-width: 120px; padding-top: 16px; }
.bd-track input { width: 100%; accent-color: var(--sel); margin: 0; display: block; }
.bd-ticks { position: absolute; left: 7px; right: 7px; top: 0; height: 15px; pointer-events: none; }
.bd-tick { position: absolute; transform: translateX(-50%); top: 0; min-width: 18px; height: 15px; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 10.5px; line-height: 15px; font-variant-numeric: tabular-nums; cursor: pointer; pointer-events: auto; }
.bd-tick:hover { color: var(--text); background: var(--line); }
.bd-tick.on { color: var(--on-accent); background: var(--sel); }
.bd-tick.bad { color: var(--bad); }
.bd-tick.bad.on { color: var(--on-accent); background: var(--bad); }
.bd-read { flex: 0 1 auto; min-width: 0; color: var(--text-2); white-space: nowrap; }
.bd-gauge { fill: var(--x-c9d3df, #c9d3df); stroke: var(--steel-700); stroke-width: 1; }
.bd-gauge-rail { stroke: var(--steel-500); stroke-width: 1.2; stroke-dasharray: 6 3; }
.bd-gtxt { font-size: 10.5px; fill: var(--text-3); }
.halo2 { paint-order: stroke; stroke: var(--halo); stroke-width: 3px; stroke-linejoin: round; }
.bd-chip { cursor: pointer; }
.bd-chip rect { fill: var(--surface); stroke: var(--sel); stroke-width: 1.2; }
.bd-chip text { fill: var(--sel); font-weight: 500; }
.bd-chip:hover rect, .bd-chip:focus rect { fill: var(--x-eef3fe, #eef3fe); }
.bd-chip:focus { outline: none; }
.bd-punch.off { fill: var(--steel-100); }
.bd-knob2.jog { stroke: var(--sel); }
.bd-bpop .bp-n { margin: 0; max-width: 230px; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.bd-prow { grid-template-columns: 58px minmax(0, 1fr) 82px; }
.bd-prow.bend { grid-template-columns: 58px minmax(0, 1fr) auto 86px; }
.bd-prow.jogr { grid-template-columns: 58px minmax(0, 1fr) minmax(0, .8fr) auto auto 24px; gap: 6px; }
.bd-prow.jogr select { width: auto; font-size: 12px; }
.bd-ins.jg { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
@media (max-width: 640px) {
  .bd-scrub { flex-basis: 100%; }
  .bd-read { flex-basis: 100%; order: 3; white-space: normal; }
  .bd-scrub { flex-wrap: wrap; }
  .bd-prow.jogr { grid-template-columns: 52px minmax(0, 1fr) minmax(0, .8fr) auto 24px; }
  .bd-prow.jogr .bd-dir { display: none; }
}
/* the examples menu is a popup: it may run past the bottom of the stage card */
main.bd .card.stage { overflow: visible; }
.bd-play { width: auto; min-width: 30px; padding: 0 10px; border-radius: 15px; }
.bd-clash-ld { stroke: var(--bad); stroke-width: 1; }
.bd-keep, .bd-zone, .bd-zl { pointer-events: none; }
.bd-det { fill: var(--surface); }
.bd-detrim { fill: none; stroke: var(--steel-500); stroke-width: 1; pointer-events: none; }
.bd-detring { fill: none; stroke: var(--steel-500); stroke-width: 1; }
/* hole names: click to rename (T106) */
.bd-hrow { row-gap: 2px; }
.bd-hrow .bd-hname { grid-column: 1 / -1; }   /* the name on its own line above x, y and Ø: never cut */
.bd-hname { min-width: 0; width: calc(100% + 6px); box-sizing: border-box; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; margin-left: -6px; cursor: text; }
.bd-hname:hover { border-color: var(--line); }
.bd-hname:focus { border-color: var(--line-2); background: var(--surface); outline: none; }

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-1e4fbf: #749ff5; --x-6e7177: #85827f; --x-9fb6e9: #a8bbe5; --x-a4a6aa: #5c5a56; --x-c9d3df: #363d45;
    --x-c9d6f6: #31394e; --x-cfd3d8: #3e3c38; --x-eef3fe: #25282f; --x-fdf3f2: #2b2524;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-1e4fbf: #749ff5; --x-6e7177: #85827f; --x-9fb6e9: #a8bbe5; --x-a4a6aa: #5c5a56; --x-c9d3df: #363d45;
    --x-c9d6f6: #31394e; --x-cfd3d8: #3e3c38; --x-eef3fe: #25282f; --x-fdf3f2: #2b2524;
  }
}
/* theme-auto:end */
