/* flat plates — on top of calc.css */
main.pl { max-width: 1400px; }
main.pl ~ .site-foot { max-width: 1400px; }
main.pl .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.pl .stage-bar .hist { margin-left: auto; }
main.pl .seg [hidden] { display: none; }
#surfSeg[hidden] { display: none; }
#view { display: block; width: 100%; height: auto; flex: 1; min-height: 0; user-select: none; touch-action: none; }
#view.dragging, #view.dragging * { cursor: grabbing !important; }
#view .hit { fill: transparent; stroke: none; }
#view .hit-ring { fill: none; stroke: transparent; }
#view .hit-ring { stroke-width: 18; fill: none; pointer-events: stroke; }

/* text in the drawing */
.pl-h { font-size: 13.5px; font-weight: 600; fill: var(--text); }
.pl-sub { font-size: 12px; fill: var(--text-3); }
.pl-sh { font-size: 12.5px; font-weight: 600; fill: var(--text); }
.pl-note { font-size: 11.5px; fill: var(--text-3); }
.pl-lh { font-size: 11.5px; fill: var(--text-2); }
.pl-lt { font-size: 11.5px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.pl-tick { stroke: var(--text-3); stroke-width: .7; }

/* supports: hatched fixed edge, knife-edge triangles for simple support, a plain line for free */
.pl-fixed { stroke: var(--ink); stroke-width: 2.2; fill: none; }
.pl-hatch { stroke: var(--steel-650); stroke-width: .9; }
.pl-simple { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.pl-tri { fill: var(--surface); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.pl-tri2 { fill: var(--surface); stroke: var(--steel-700); stroke-width: 1; stroke-linejoin: round; }
.pl-tri2.stiff { fill: var(--steel-blue); }
.pl-roll { fill: var(--surface); stroke: var(--ink); stroke-width: 1; }
.pl-ground { stroke: var(--steel-700); stroke-width: 1.1; }
.pl-free { stroke: var(--ink); stroke-width: 1; fill: none; }
.ghost { stroke: var(--sel) !important; }
.pl-tri.ghost { fill: var(--x-eef3fd, #eef3fd); }
.pl-edge-g { cursor: pointer; }
.pl-edge-g:hover .pl-fixed, .pl-edge-g:hover .pl-simple, .pl-edge-g:hover .pl-free, .pl-edge-g.hov .pl-fixed, .pl-edge-g.hov .pl-simple, .pl-edge-g.hov .pl-free { stroke: var(--sel); }
.pl-edge-g:hover .pl-tri, .pl-edge-g.hov .pl-tri { stroke: var(--sel); }
.pl-edge-g:hover .pl-hatch, .pl-edge-g.hov .pl-hatch { stroke: var(--sel); }
.pl-edge-g:hover .pl-free, .pl-edge-g.hov .pl-free { stroke-width: 2.4; }
.pl-edge-g:focus { outline: none; }
.pl-edge-g:focus-visible .pl-fixed, .pl-edge-g:focus-visible .pl-simple, .pl-edge-g:focus-visible .pl-free { stroke: var(--sel); stroke-width: 2.6; }

/* stiffeners */
.pl-stiff { stroke: var(--ink); stroke-width: 3.2; stroke-linecap: butt; }
.pl-stiff.ghost { stroke-dasharray: 7 4; stroke-width: 2.6; opacity: .9; }
.pl-stf { cursor: grab; }
.pl-stf:hover .pl-stiff, .pl-stf.hov .pl-stiff { stroke: var(--sel); }

/* loads */
.pl-pdiag { fill: color-mix(in srgb, var(--load) 8%, transparent); stroke: color-mix(in srgb, var(--load) 55%, transparent); stroke-width: 1; stroke-linejoin: round; }
.pl-parrow { stroke: color-mix(in srgb, var(--load) 75%, transparent); stroke-width: 1.2; }
.pl-larrow { stroke: var(--load); stroke-width: 1.8; }
.pl-patch { cursor: grab; }
.pl-patchr { fill: color-mix(in srgb, var(--load) 14%, transparent); stroke: var(--load); stroke-width: 1.4; stroke-dasharray: 4 2.5; }
.pl-patch:hover .pl-patchr, .pl-patch.hov .pl-patchr { fill: color-mix(in srgb, var(--load) 26%, transparent); }
.pl-into { fill: var(--surface); stroke: var(--load); stroke-width: 1.4; }
.pl-intox { stroke: var(--load); stroke-width: 1.3; }
.pl-ring { fill: none; stroke: var(--load); stroke-width: 1.4; stroke-dasharray: 5 3; }
.pl-dot { fill: var(--surface); stroke: var(--load); stroke-width: 1.4; }
.pl-mvec { stroke: var(--moment); stroke-width: 1.5; fill: none; }
.pl-mring { fill: none; stroke: var(--moment); stroke-width: 1.4; stroke-dasharray: 6 3; }

/* section A–A */
.pl-secmark text { font-size: 11px; font-weight: 600; fill: var(--text-2); }
.pl-secmark line { stroke: var(--text-2); stroke-width: 1.6; }
.pl-bar { fill: var(--steel-350); stroke: var(--steel-700); stroke-width: .8; }
.pl-defl { fill: none; stroke: var(--sel); stroke-width: 1.6; stroke-dasharray: 5 3; }
.pl-tarrow { fill: var(--sel); }
.tdrag { cursor: ns-resize !important; }

/* peaks and the hovered check */
.pl-peak circle { fill: none; stroke: var(--text); stroke-width: 1.6; }
.pl-peak circle.c { fill: var(--text); stroke: none; }
.pl-peak { paint-order: stroke; }
.pl-focus circle { fill: color-mix(in srgb, var(--sel) 14%, transparent); stroke: var(--sel); stroke-width: 2; }
.pl-focus circle.o { fill: none; stroke-width: 1.2; opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .pl-focus circle.o { animation: pl-ping 1.2s ease-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes pl-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }

/* magnifier */
.pl-inbg { fill: var(--surface); }
.pl-inout { fill: var(--surface); }
.pl-inframe { fill: none; stroke: var(--steel-400); stroke-width: 1; }

/* 3D */
.pl-3d .d3hit { cursor: grab; }
.pl-3dref { fill: none; stroke: var(--faint); stroke-width: .9; stroke-dasharray: 4 3; }
.pl-iso { fill: none; stroke: var(--x-1c2733, #1c2733); stroke-width: .55; stroke-opacity: .3; pointer-events: none; }
.pl-3dedge { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; pointer-events: none; }
.pl-3d path:not(.pl-3dref) { pointer-events: none; }

/* pills (the 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.load rect { stroke: color-mix(in srgb, var(--load) 40%, transparent); } #view .pill.load text { fill: var(--load); font-weight: 600; }
#view .pill.mom rect { stroke: color-mix(in srgb, var(--moment) 40%, transparent); } #view .pill.mom text { fill: var(--moment); font-weight: 600; }
#view .pill.peak rect { fill: color-mix(in srgb, var(--surface) 94%, transparent); stroke: var(--text); stroke-width: 1; } #view .pill.peak text { fill: var(--text); font-weight: 600; }
#view .pill.editable { cursor: text; }
#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; }
#view .handle { cursor: grab; }
#view .handle .knob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.8; }
#view .handle:hover .knob { fill: var(--sel); }

/* live strip */
.pl-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; }
.pl-live b { font-weight: 500; color: var(--text-3); margin-right: 5px; }
.pl-live i { font-style: normal; color: var(--text-3); }
.pl-busy { color: var(--sel); font-size: 12px; }
.pl-busy::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sel); margin-right: 6px; vertical-align: 1px; animation: pl-blink 1s ease-in-out infinite; }
@keyframes pl-blink { 50% { opacity: .25; } }
.pl-flash { color: var(--warn); }

/* in-drawing editor */
.pl-board { display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; }
.pl-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 8px 2px 4px; box-shadow: 0 6px 18px rgba(20, 22, 28, .14); }
.pl-edit input { width: 82px; border: 0; outline: none; font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; padding: 3px 2px; }
.pl-edit span { font-size: 11.5px; color: var(--text-3); }

/* hover readout */
.pl-tip { position: fixed; z-index: 30; pointer-events: none; background: color-mix(in srgb, var(--surface) 97%, transparent); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(20, 22, 28, .1); font-size: 12px; color: var(--text-2); display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
.pl-tip[hidden] { display: none; }
.pl-tip b { font-weight: 600; color: var(--text); }

/* examples menu */
.ex-wrap { position: relative; }

/* panel */
.pl-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pl-type { display: grid; justify-items: center; gap: 1px; padding: 5px 8px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 11.5px; color: var(--text-2); }
.pl-type:hover { border-color: var(--line-2); }
.pl-type.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
.pl-kv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 12px; color: var(--text-2); padding: 6px 0 2px; }
.pl-kv .srcs a { font-size: 10.5px; }
.pl-edge { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; color: var(--text-2); }
.pl-seg { margin: 2px 0; }
.pl-seg button:disabled { opacity: .35; cursor: not-allowed; }
.grp > .pl-seg + .small-note, .grp > .pl-seg + .check { margin-top: 6px; }
.pl-stiffs { display: grid; gap: 4px; }
.pl-stiffrow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 26px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.pl-stiffrow .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)); }
.pl-adds { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pl-add { font-size: 12.5px; color: var(--sel); padding: 4px 2px; }
.pl-load .pl-edge { grid-template-columns: 74px minmax(0, 1fr); }
.pl-addload { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
#panel input.bad { color: var(--bad); }
#panel .num:has(input.bad) input { border-color: var(--bad); }
.pl-tag { font-size: 10.5px; color: var(--text-3); background: var(--fill-1); border-radius: 999px; padding: 0 6px; }

/* summary */
.verdict.busy .v { opacity: .55; }
.verdict .k em { font-style: normal; color: var(--sel); }
.pl-say { font-size: 12.5px; color: var(--text-2); margin-top: 6px; max-width: 40ch; line-height: 1.4; }
.pl-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pl-stats .stat .v { white-space: nowrap; }
#checks tr.adv td.l:first-child { color: var(--text-2); }
.margins td.note { white-space: normal; min-width: 260px; }
.pl-rx tr { cursor: default !important; }
.pl-rx tr:hover { background: none !important; }
/* links inside notes are underlined, so they are not told apart by colour alone (WCAG 1.4.1) */
main.pl .note a { text-decoration: underline; text-underline-offset: 2px; }
.pl-rx tr.rxh td { font-size: 12px; font-weight: 600; color: var(--text-2); padding-top: 16px; border-bottom: 1px solid var(--line); }
.pl-rx td { color: var(--text-2); }

/* what would change it */
.pl-what { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-what .fix { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .12s; }
.pl-what .fix:hover { border-color: var(--sel); }
.pl-what .fix b { font-weight: 600; font-size: 13.5px; }
.pl-what .fix p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.pl-what .fix .ms { margin-left: 8px; min-width: 0; }

/* three methods */
table.xc td.d { color: var(--text-3); font-size: 12px; }
table.xc tr.ref td { font-weight: 500; }
table.xc tbody tr { cursor: default; }

/* charts */
.pl-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#tChart, #nlChart, #coefChart { touch-action: none; user-select: none; }
.pl-charts .drag, #coefChart .drag { cursor: ew-resize; }
.ch-t { font-size: 10.5px; }
.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; }

@media (max-width: 1200px) { .pl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pl-stats .stat:nth-child(4) { border-left: 0; } .pl-stats .stat:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 900px) { .pl-what, .pl-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-stats .stat { border-left: 0; border-top: 1px solid var(--line); }
  .pl-stats .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .pl-stats .stat:nth-child(-n+2) { border-top: 0; }
  #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; }
  table.xc th:nth-child(6), table.xc td.note { display: none; }
  .pl-live { font-size: 12px; gap: 3px 12px; }
  main.pl .stage-bar .seg { display: grid; width: 100%; grid-auto-columns: minmax(0, 1fr); }
  main.pl #fieldSeg { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-edge, .pl-load .pl-edge { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  main.pl .stage-bar .seg button { padding: 4px 8px; }
}
/* phones: a 400-wide drawing, so 12 units are about 10 px on a 375 px screen */
#view.narrow .pl-h { font-size: 14px; }
#view.narrow .pl-sub, #view.narrow .pl-note { font-size: 12px; }
#view.narrow .pl-sh { font-size: 13.5px; }
#view.narrow .pl-lh, #view.narrow .pl-lt { font-size: 12px; }
#view.narrow .pill text { font-size: 12px; }
#view.narrow .pl-secmark text { font-size: 12px; }
.pl-barghost { fill: none; stroke: var(--sel); stroke-width: 1.2; stroke-dasharray: 4 3; }
/* narrow screens: the verdict comes right under the drawing, the inputs after it */
@media (max-width: 1300px) {
  main.pl .work { grid-template-columns: minmax(0, 1fr); }
  main.pl .panel { contain: none; }
  main.pl > * { order: 4; }
  main.pl > .work { display: contents; }
  main.pl > .work > .pl-board { order: 1; }
  main.pl > .summary { order: 2; }
  main.pl > .work > .panel { order: 3; }
}
/* load list */
.pl-total { display: grid; gap: 2px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-top: 12px; }
.pl-total b { color: var(--text); font-weight: 600; }
.pl-lact { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.pl-fac input:focus { border-color: var(--text-2); }
/* loads on the plan */
#view .off { opacity: .32; pointer-events: none; }
#view .pill.off { opacity: .45; }
.pl-lline { stroke: var(--load); stroke-width: 2.2; stroke-linecap: round; }
.pl-ldot { fill: var(--surface); stroke: var(--load); stroke-width: 1.3; }
#view .hit-line { fill: transparent; stroke: none; cursor: grab; }
.pl-lineat.hov .pl-lline, .pl-lineat:hover .pl-lline { stroke: var(--rust); stroke-width: 3; }
#view .handle .knob.small { stroke-width: 1.5; }
.ch-grid { fill: var(--fill-1); }
table.xc tr.na td { color: var(--text-3); }
.pl-treq { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.pl-treq b { color: var(--text); font-weight: 600; }
.pl-treq .btn { margin-left: 6px; padding: 2px 9px; }
.pl-stats .stat .s a { color: var(--text-2); }
.pl-rx a { color: var(--sel); text-decoration: none; }
.pl-rx a:hover { text-decoration: underline; }
.pl-lift circle { fill: var(--surface); stroke: var(--x-b45309, #b45309); stroke-width: 1.5; }
.pl-lift circle.d { fill: var(--x-b45309, #b45309); stroke: none; }
.pl-lift.held circle { stroke: var(--good); } .pl-lift.held circle.d { fill: var(--good); }
#view .pill.lift rect { stroke: color-mix(in srgb, var(--x-b45309, #b45309) 45%, transparent); } #view .pill.lift text { fill: var(--x-b45309, #b45309); font-weight: 600; }
main.pl .summary .verdict { max-width: 380px; }
@media (max-width: 1300px) { main.pl .summary .verdict { max-width: none; } }
.pl-3dhatch { stroke: var(--steel-650); stroke-width: .9; pointer-events: none; }
.pl-3dfix { stroke: var(--ink); stroke-width: 2.2; pointer-events: none; }
.pl-3dtri { fill: var(--surface); stroke: var(--ink); stroke-width: .9; stroke-linejoin: round; pointer-events: none; }
.pl-3darrow { stroke: color-mix(in srgb, var(--load) 45%, transparent); stroke-width: 1.1; pointer-events: none; }
.pl-3dload { stroke: color-mix(in srgb, var(--load) 85%, transparent); stroke-width: 1.6; pointer-events: none; }
.pl-3dlift { stroke: var(--x-b45309, #b45309); stroke-width: 1.8; pointer-events: none; }
/* margin rows: an icon per failure mode, and the animated preview card beside the row (screen only) */
#checks td.chk { display: flex; align-items: center; gap: 10px; }
#checks td.chk .pv-th { flex: none; margin: -6px 0; }
#checks td.chk:focus-visible { outline: 2px solid var(--sel); outline-offset: -2px; border-radius: 6px; }
.pv-th .pv-plate.th, .pl-pv .pv-plate { fill: var(--steel-150); stroke: var(--ink); stroke-width: 1; }
.pl-pv .pv-hole { fill: var(--surface); stroke: var(--ink); stroke-width: 1; }
.pl-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); }
.pl-pv[hidden] { display: none; }
.pl-pv svg { display: block; width: 204px; height: auto; margin: 4px 0 6px; }
.pl-pv .pv-h { font-weight: 600; font-size: 12px; }
.pl-pv .pv-c { color: var(--text-2); line-height: 1.35; }
.pl-pv .pv-m { margin-top: 4px; color: var(--text-3); }
.pl-pv .pv-yl { stroke-width: 1.8; stroke-linecap: round; }
.pl-pv .pv-bar { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.pl-pv .pv-fix { stroke: var(--ink); stroke-width: 2; } .pl-pv .pv-hatch { stroke: var(--steel-650); stroke-width: .9; }
.pl-pv .pv-tri, .pv-th .pv-tri { fill: var(--surface); stroke: var(--ink); stroke-width: 1; }
.pl-pv .pv-lim, .pv-th .pv-lim { stroke: var(--load); stroke-width: 1; stroke-dasharray: 3 2; }
.pl-pv .pv-mem { stroke: var(--moment); stroke-width: 1.6; }
.pl-pv .pv-q { stroke: color-mix(in srgb, var(--load) 75%, transparent); stroke-width: 1.2; }
.pl-pv .pv-t { font-size: 10.5px; fill: var(--text-3); }
@media print { .pl-pv { display: none !important; } }
/* labels in the panel are written in full and wrap, never cut off */
#panel .f > label span { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.3; }
#panel .f > label { align-items: center; }
/* load cards: a header line and one line of click-to-edit values; a click on the card opens the full form */
.pl-load { margin: 8px 0 0; padding: 6px 4px 6px 9px; cursor: pointer; transition: border-color .12s; }
.pl-load:hover { border-color: var(--line-2); }
.pl-load.open { cursor: default; }
.pl-load .load-h { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.pl-load .load-h > input[type=checkbox] { accent-color: var(--load); width: 15px; height: 15px; margin: 4px 2px 0 0; flex: none; cursor: pointer; }
.pl-lnm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; flex: 1 1 auto; margin: 0 !important; line-height: 1.35; }
.pl-load .load-h .pl-lnm .pl-lname, .pl-lnm .pl-lname { font: inherit; font-size: 13px; font-weight: 600; color: var(--load); background: none; border: 0; border-radius: 6px; padding: 2px 6px; margin: 0 0 0 -6px; cursor: text; text-align: left; overflow-wrap: anywhere; min-width: 0; }
.pl-lnm .pl-lname:hover { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.pl-lnm .pl-lname.pl-static { cursor: default; } .pl-lnm .pl-lname.pl-static:hover { box-shadow: none; background: none; }
.pl-load.off .pl-lnm .pl-lname { color: var(--text-3); }
.pl-ltype { display: inline-flex; align-items: center; gap: 3px; font: inherit; font-size: 12px; color: var(--text-3); background: none; border: 0; padding: 1px 4px; margin: 0 0 0 -4px; border-radius: 5px; cursor: pointer; }
.pl-ltype::before { content: "·"; margin-right: 3px; }
.pl-ltype:hover { color: var(--text); background: var(--fill-1); }
.pl-ltype svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.pl-load.open .pl-ltype svg { transform: rotate(180deg); }
.pl-ltype.pl-static { cursor: default; } .pl-ltype.pl-static:hover { background: none; color: var(--text-3); }
.pl-lact { display: inline-flex; align-items: center; gap: 0; flex: none; margin-top: -1px; }
.pl-fac { display: inline-flex; align-items: center; gap: 0; font-size: 12px; color: var(--text-3); margin-right: 0; cursor: text; }
.pl-fac input { width: 26px; height: 22px; border: 1px solid transparent; border-radius: 6px; padding: 0 4px; font: inherit; font-size: 12px; color: var(--text-2); background: none; text-align: left; outline: none; }
.pl-fac:hover input { border-color: var(--line); background: var(--surface); }
.pl-fac input:focus { border-color: var(--text-2); background: var(--surface); color: var(--text); }
.pl-dup { font-size: 12px; padding: 2px 6px; height: 22px; }
.pl-lact .x { width: 22px; height: 22px; font-size: 14px; }
.pl-lrow { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 3px 10px; margin: 4px 0 0; }
.pl-vals { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; font-size: 12px; color: var(--text-3); min-width: 0; }
.pl-vals > span { white-space: nowrap; }
.pl-chip { display: inline-flex; align-items: baseline; gap: 3px; font: inherit; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; line-height: 18px; cursor: text; white-space: nowrap; }
.pl-chip small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.pl-chip:hover { border-color: var(--line-2); background: var(--surface); }
.pl-chip:focus-visible, .pl-lname:focus-visible, .pl-ltype:focus-visible, .pl-q:focus-visible, .pl-share:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
.pl-chip.pl-cedge { cursor: pointer; font-weight: 500; }
.pl-chip.pl-static { cursor: default; } .pl-chip.pl-static:hover { border-color: var(--line); background: var(--bg); }
.pl-load.off .pl-chip { color: var(--text-3); }
.pl-cin { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); height: 22px; border: 1px solid var(--text-2); border-radius: 6px; padding: 0 8px; background: var(--surface); outline: none; box-sizing: border-box; }
.pl-cin.pl-nin { color: var(--text); margin-left: -6px; }
.pl-cin.bad { border-color: var(--bad); background: var(--bad-bg); }
.pl-u { color: var(--text-3); }
.pl-dot { margin: 0 2px; }
.pl-sq { display: inline-block; width: 9px; height: 9px; border: 1.3px solid var(--text-3); border-radius: 1px; margin-right: 1px; }
.pl-q { display: inline-grid; place-items: center; width: 15px; height: 15px; padding: 0; margin-left: 0; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 50%; background: var(--surface); font: inherit; font-size: 11px; font-weight: 600; line-height: 1; color: var(--text-3); cursor: help; }
.pl-q:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); }
.pl-vals { flex: 0 0 auto; max-width: calc(100% - 50px); }
.pl-share { margin-left: auto; flex: 0 1 auto; min-width: min-content; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 9px; font-size: 11px; line-height: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; cursor: help; border-radius: 4px; }
.pl-share > span { white-space: nowrap; }
.pl-load.open .pl-lform { margin: 6px 0 0; cursor: default; }
.pl-load.open .pl-lform .small-note { margin: 6px 0 2px; }
.pl-lfoot:empty { display: none; }
.pl-ptip { white-space: normal; max-width: 290px; line-height: 1.45; display: block; padding: 7px 10px; }
.pl-ptip[hidden] { display: none; }
.pl-self { margin-bottom: 4px; }
.pl-load .load-h span { margin-left: 0; font-size: inherit; }
.pl-load .load-h .pl-lact { margin-left: auto; }
.pl-g { display: inline-flex; align-items: center; gap: 0 4px; white-space: nowrap; }
.pl-g > span { white-space: nowrap; }
.pl-dup { display: inline-grid; place-items: center; width: 24px; padding: 0; }
.pl-dup svg { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.pl-pair { display: inline-flex; align-items: center; gap: 3px; }
.pl-pair .pl-cin { padding: 0 6px; }
.pl-gd { gap: 0 3px; }
.pl-load .load-h .pl-ltype { font-size: 12px; }
.pl-hq { position: relative; display: inline-flex; margin-right: 6px; }
.pl-hq > .pl-q { position: absolute; top: -6px; right: -8px; width: 14px; height: 14px; font-size: 9.5px; background: var(--surface); }
.pl-vals:last-child { max-width: 100%; }
.pl-ltype.bare::before { content: none; }
.pl-ltype.bare { padding: 3px 4px; margin-left: -2px; }
/* the origin of x and y at the plate's bottom-left corner (plan and 3D); the 3D gizmo itself is gizmo.js */
.pl-orig { pointer-events: none; }
.pl-o { fill: var(--text-2); stroke: var(--halo); stroke-width: 1; }
.pl-3dlead { stroke: color-mix(in srgb, var(--load) 55%, transparent); stroke-width: 1; pointer-events: none; }
.pl-3dtail { fill: var(--load); pointer-events: none; }
.panel-body.pl-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
@media (max-width: 420px) { table#checks td, table#checks th, table.xc td, table.xc th { padding-left: 3px; padding-right: 3px; font-size: 12px; } }
@media (max-width: 420px) { table.xc td, table.xc th { font-size: 11.5px; padding-left: 2px; padding-right: 2px; } }
/* load cards: the help "?" sits beside the load type in the header (never on a chip); phones keep a card to two rows:
   no "?" (the full form, one tap away, has the note), no "at", tighter gaps */
.pl-lnm .pl-q { align-self: center; }
@media (max-width: 560px) {
  .pl-lnm .pl-q, .pl-vals .pl-at { display: none; }
  .pl-vals { gap: 3px 4px; }
  .pl-load .load-h { gap: 4px; }
  .pl-lnm { gap: 0 2px; }
  .pl-load .load-h .pl-lnm .pl-lname { padding-left: 3px; padding-right: 3px; }
  .pl-load .load-h .pl-ltype { padding-left: 2px; padding-right: 2px; margin-left: 0; }
  .pl-lact .pl-dup, .pl-lact .x { width: 20px; }
  /* a line load's two end points on one row: the unit is on the load chip and in the form, and the share needs 46 px */
  .pl-vals .pl-uph { display: none; }
  .pl-vals .pl-g { gap: 0 2px; }
  .pl-vals { max-width: calc(100% - 46px); }
}

/* 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-1c2733: #becad7; --x-6e7177: #85827f; --x-b45309: #ea9567; --x-eef3fd: #25282e; --x-f1b9a2: #a97e6d;
    --x-f7d9cc: #412e26;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-1c2733: #becad7; --x-6e7177: #85827f; --x-b45309: #ea9567; --x-eef3fd: #25282e; --x-f1b9a2: #a97e6d;
    --x-f7d9cc: #412e26;
  }
}
/* theme-auto:end */
