/* Lifting lug: page-specific styles on top of ../calc.css */
/* the verdict sits right under the drawing (left column); the inputs run the full height on the right */
.lugpage .work { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "stage panel" "sum panel"; grid-template-rows: auto auto; }
.lugpage .work > .stage { grid-area: stage; }
.lugpage .work > .panel { grid-area: panel; }
.lugpage .work > .summary { grid-area: sum; min-height: 100px; }
@media (min-width: 1101px) {
  .lugpage .summary .verdict { max-width: 340px; }
  .lugpage .summary .stat { padding-left: 14px; padding-right: 12px; }
  .lugpage .summary .stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
}

/* stage bar: one row on a desktop; limits said on the drawing show as a note under it */
.lugpage .stage-bar { flex-wrap: wrap; gap: 8px 10px; justify-content: flex-start; }
.lugpage .stage-bar #layerSeg { margin-right: auto; }
.lugpage #hint { position: absolute; bottom: 48px; left: 12px; max-width: calc(100% - 24px); z-index: 4; pointer-events: none; font-size: 12px; line-height: 1.4; background: var(--warn-bg, #fdf3e1); border-radius: 6px; padding: 3px 8px; }
.lugpage #hint:empty { display: none; }
#view .govchip { cursor: help; }

/* examples menu */
.ex-wrap { position: relative; }
.ex-menu { position: absolute; top: calc(100% + 6px); right: 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: 320px; max-width: calc(100vw - 32px); }
.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; }

/* drawing */
#view .knob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.8; }
#view .handle.tip .knob { fill: var(--load); stroke: var(--halo); stroke-width: 1.6; }
#view .handle:hover .knob { stroke-width: 2.8; }
#view [data-check] { cursor: help; }
#view.dragging, #view.dragging * { cursor: grabbing !important; }
.stage-bar #layerSeg button[aria-pressed="false"] { color: var(--text-3); }

/* sheets */
.lugsheets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet.stack col.role { width: 82px; } .sheet.stack col.ro { width: 13%; } .sheet.stack col.msc { width: 22%; }
.sheet.cases col.lname { width: 24%; } .sheet.cases col.msc { width: 22%; } .sheet.cases col.dir { width: 34px; }
.sheet td.ro { text-align: right; padding: 0 8px; color: var(--text-2); font-size: 12.5px; }
.sheet td .na { display: block; text-align: center; color: var(--text-3); }
button.kind.role-lug { color: var(--x-b23f1a, #b23f1a); background: var(--load-bg); }
button.kind.role-clevis { color: var(--moment); background: var(--moment-bg); }
.sheet tr.sling input:disabled { color: var(--text-2); background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 4px, var(--fill-1) 4px, var(--fill-1) 8px); }
.sheet tr[data-case] td.rn { cursor: pointer; }
.sheet input:disabled { opacity: 1; }
.num input:disabled { background: var(--surface-2); color: var(--text-2); }

/* margins */
table.lugms td.part { width: 92px; }
/* the clause sits under the check's name (no column of its own): the table fits its card without scrolling */
/* long names wrap to a second line instead of widening the table (the icon keeps its 46 px) */
table.lugms td.chk .nm { display: block; min-width: 9em; white-space: normal; }
table.lugms td.chk .cl { display: block; margin-top: 1px; color: var(--text-3); font-size: 11.5px; line-height: 1.25; font-weight: 400; }
table.lugms .th-sub { font-weight: 400; color: var(--text-3); }
table.lugms td.num { white-space: nowrap; }
table.lugms td.cap .ln-note, table.lugms td.num .ln-note { white-space: normal; max-width: 150px; margin-left: auto; }
table.lugms td.csd { padding-left: 4px; padding-right: 4px; }
table.lugms .ms.sm.worst { box-shadow: 0 0 0 1.5px currentColor inset; }
table.lugms tbody tr.hl { background: var(--sel-bg); }
/* hover / focus / highlight states change colour and background only: a weight change re-measures the table */
table.lugms tbody tr.hl td:nth-child(2) { color: var(--sel); }
table.lugms th.cs { cursor: pointer; font-size: 11.5px; }
table.lugms th.cs.on { color: var(--text); font-weight: 600; }
.ms.sm { min-width: 52px; font-size: 11.5px; padding: 1px 6px; }
.pt { font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 2px 7px; color: var(--text-2); background: var(--fill-1); }
.pt-lug { color: var(--x-b2441f, #b2441f); background: var(--load-bg); } .pt-cheek { color: var(--x-9a4a2a, #9a4a2a); background: var(--soil); }
.pt-clevis { color: var(--moment); background: var(--moment-bg); } .pt-pin { color: var(--sel-ink); background: var(--sel-bg-2); }
.pt-weld { color: var(--x-8a5a00, #8a5a00); background: var(--x-fbecd0, #fbecd0); } .pt-base { color: var(--x-4b5361, #4b5361); background: var(--steel-blue); }
.pt-shackle { color: var(--teal); background: var(--good-bg); } .pt-geometry { color: var(--text-3); background: var(--fill-1); }

/* figures */
.mk { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; white-space: nowrap; }
.mk::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--mc); opacity: .8; }
.lugpage .fig svg { max-height: 360px; }
.readout small { font-weight: 400; margin-left: 4px; }
.lugsrc li { margin: 6px 0; }
.lugsrc a { color: var(--text-2); }

@media (max-width: 1100px) {
  .lugpage .work { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "sum" "panel"; }
  .lugpage .work > .panel { min-height: 560px; }
  .lugsheets { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; gap: 8px 16px; } .bar .title { white-space: nowrap; } .bar-right { width: 100%; justify-content: space-between; }
  .stage-bar .hist { margin-left: auto; }
  .stage-bar #layerSeg { display: flex; order: 10; width: 100%; } .stage-bar #layerSeg button { flex: 1; }
  .lugpage .stage-bar #layerSeg { margin-right: 0; }
  .lugpage .stage-bar { position: relative; }
  .lugpage .stage-bar .ex-wrap { position: static; }
  .lugpage .stage-bar .ex-menu { top: auto; left: 8px; right: 8px; margin-top: 6px; min-width: 0; max-width: none; }
  .lugpage .work > .summary { min-height: 270px; }
  /* the drawing is ~0.57× on a phone: labels drawn larger so they read at ≥ 10 px, the minor ones left out */
  #view text { font-size: 19px; } #view .t-dim { font-size: 18px; } #view .minor { display: none; }
}

table.lugms td.chk { display: flex; align-items: center; gap: 8px; }
table.lugms td.chk .th { flex: none; width: 46px; height: 46px; margin: -8px 0; }
table.lugms td { padding-top: 5px; padding-bottom: 5px; }

.na-note { display: block; margin: 0 8px; font-size: 11.5px; color: var(--text-3); font-style: italic; text-align: center; }
.small-note.warnnote { color: var(--warn); }
.lugpage .detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* the pin diagram across the top; the two capacity maps side by side below it, large enough to name their regions */
.lugpage .detail > .fig:first-child { grid-column: 1 / -1; }
.lugpage .detail > .fig:first-child svg { max-width: 760px; margin: 4px auto 0; }
.lugpage .detail > .fig:not(:first-child) svg { max-height: none; }
@media (max-width: 760px) { .lugpage .detail { grid-template-columns: minmax(0, 1fr); } }
.rec-card.lug-rec { grid-template-columns: minmax(0, 1fr) auto; }
.rec-card.lug-rec .rec-info > b { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.rec-card.lug-rec .rec-info > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* custom outline handles */
#view .handle.edge .eknob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.5; }
#view .handle.edge:hover .eknob { fill: var(--sel); }
/* stress legend */
.fe-leg { display: inline-grid; gap: 2px; }
.fe-sw { display: flex; }
.fe-sw i { width: 18px; height: 9px; display: inline-block; }
.fe-sw i:first-child { border-radius: 3px 0 0 3px; } .fe-sw i:last-child { border-radius: 0 3px 3px 0; }
.fe-ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); width: 198px; }
.fe-ticks b { font-weight: 400; white-space: nowrap; }
.fe-ticks b:last-child { margin-right: -120px; }
table.lugms tr.fe-row td { color: var(--text-2); background: var(--surface-2); }

/* labels on the drawing edit in place */
#view .ed { cursor: text; outline: none; }
#view .ed:hover text, #view .ed:focus text { fill: var(--sel) !important; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: color-mix(in srgb, var(--sel) 50%, transparent); }
.lug-edit { position: absolute; transform: translate(-50%, -50%); z-index: 5; display: flex; align-items: center; gap: 8px; 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); }
.lug-edit label { display: flex; align-items: center; gap: 4px; }
.lug-edit input { width: 82px; border: 0; outline: none; font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; padding: 3px 2px; }
.lug-edit select { border: 0; font: inherit; font-size: 13px; padding: 3px 2px; outline: none; }
.lug-edit span { font-size: 11.5px; color: var(--text-3); }
.ln-note { display: block; font-size: 10.5px; color: var(--text-3); line-height: 1.1; }
.fe-face { font-size: 12px; border: 1px solid var(--line); }
.fe-nm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.fe-nm i { width: 18px; height: 10px; border-radius: 2px; background: repeating-linear-gradient(45deg, var(--steel-200), var(--steel-200) 3px, var(--x-a7abb2, #a7abb2) 3px, var(--x-a7abb2, #a7abb2) 4.4px); }
@keyframes feIn { from { opacity: 0; } to { opacity: 1; } }
.stage-foot .warnnote { color: var(--warn); font-size: 12px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--sel); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
#view.stressmode .handle:not(.tip) { opacity: 0; transition: opacity .15s; }
#view.stressmode:hover .handle:not(.tip) { opacity: .85; }
#view .zchip { cursor: pointer; }
#view .zchip rect { fill: var(--surface); stroke: var(--line-2); }
#view .zchip text { fill: var(--text-2); }
#view .zchip:hover rect { stroke: var(--sel); } #view .zchip:hover text { fill: var(--sel); }
#view [data-inset] { cursor: crosshair; }
.limmsg { font-size: 11.5px; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 3px 8px; margin: 2px 0 4px; }
#hint.limit { color: var(--warn); font-weight: 500; }
.fe-tip { position: absolute; z-index: 6; pointer-events: none; background: color-mix(in srgb, var(--text) 92%, transparent); color: var(--on-accent); font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 7px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.18); font-variant-numeric: tabular-nums; }
.fe-tip[hidden] { display: none; }
.paste-note.warn { color: var(--warn); }
.rulefail { color: var(--bad, #b3261e); font-weight: 600; font-size: 12px; white-space: nowrap; }
/* failure preview card beside a margins-table row (screen only) */
.lug-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); }
.lug-pv[hidden] { display: none; }
.lug-pv svg { display: block; width: 204px; height: auto; margin: 4px 0 6px; }
.lug-pv .pv-h { font-weight: 600; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lug-pv .pv-c { color: var(--text-2); line-height: 1.35; }
.lug-pv .pv-m { margin-top: 4px; color: var(--text-3); }
#table td.chk:focus-visible { outline: 2px solid var(--sel); outline-offset: -2px; border-radius: 6px; }
@media print { .lug-pv { display: none !important; } }
.lug-pv .pv-k { font-size: 11px; color: var(--text-2); margin-top: 1px; }
/* capacity maps: radial-range toggle, ranked legend, highlighted mode */
.fig-head { flex-wrap: wrap; }
.fig-head .fan-tog { margin-left: auto; }
.fig-head .fan-tog button { font-size: 11.5px; padding: 3px 10px; }
.fan-rank { display: grid; gap: 2px; margin: 6px 0 2px; font-size: 12px; }
.fan-rank .fr-h { color: var(--text-3); font-size: 11.5px; margin-bottom: 2px; }
.fan-rank .fr { display: grid; grid-template-columns: 30px 10px 30px minmax(0, 1fr) auto 78px; align-items: center; gap: 8px; padding: 2px 6px; border-radius: 6px; }
.fan-rank .fr:hover, .fan-rank .fr.on { background: var(--steel-50); }
.fan-rank .fr-n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.fan-rank .fr-sw { width: 10px; height: 10px; border-radius: 3px; }
.fan-rank .th { width: 30px; height: 30px; }
.fan-rank .fr-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan-rank .fr-v { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fan-rank .fr-ms { justify-self: end; white-space: nowrap; }
#table tr.mode-hl td { background: var(--steel-50); }
#table tr.mode-hl td.chk .nm { color: var(--text); }
.lug-pv .mk.on { font-weight: 600; }
/* the stage card draws its 1px frame as an inset ring (same look; its content runs edge to edge, so no side padding) */
.lugpage .card.stage { border: 0; box-shadow: 0 0 0 1px var(--line); }

/* phones: one stacked card per margin row: icon and name across the top, the numbers as labelled pairs beneath */
@media (max-width: 700px) {
  table.lugms thead { display: none; }
  table.lugms, table.lugms tbody { display: block; width: 100%; }
  table.lugms tbody tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 2px 10px; padding: 8px 4px 10px; border-bottom: 1px solid var(--line); }
  table.lugms tbody td { display: block; padding: 0; border: 0; text-align: left; }
  table.lugms tbody td.part { grid-column: 1 / -1; width: auto; }
  table.lugms tbody td.part:empty { display: none; }
  table.lugms tbody td.chk { grid-column: 1 / -1; display: flex; margin-bottom: 4px; }
  table.lugms tbody td.chk .th { margin: 0; }
  table.lugms tbody td[data-lab]::before { content: attr(data-lab); display: block; font-size: 10.5px; color: var(--text-3); }
  table.lugms tbody td[data-lab]:empty { display: none; }
  table.lugms td.cap .ln-note, table.lugms td.num .ln-note { margin-left: 0; max-width: none; }
  table.lugms td.num { white-space: normal; }
  .lugpage .table-wrap { overflow-x: visible; margin: 0; }
}

/* the row's icon: its highlighted feature breathes while the row is hovered or focused (still for reduced motion) */
@keyframes thHot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.12); } }
@media (prefers-reduced-motion: no-preference) {
  table.lugms tbody tr:hover .th .hot, table.lugms tbody tr:focus-within .th .hot { animation: thHot 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}

/* Connector: the picked shackle's card (catalogue figures, fit against this lug, the smallest that would do, source) */
.shcard { margin: 8px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: 12.5px; }
.shcard .sh-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.shcard .sh-h b { font-weight: 600; font-size: 13px; color: var(--text); }
.shcard .sh-tag { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.shcard .sh-k { margin: 2px 0 8px; color: var(--text-3); font-size: 12px; }
.shcard .sh-d { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0 0 8px; }
.shcard .sh-d div { min-width: 0; }
.shcard .sh-d dt { font-size: 11.5px; color: var(--text-3); }
.shcard .sh-d dd { margin: 0; font-weight: 500; color: var(--text); }
.shcard .sh-d dd small { font-weight: 400; color: var(--text-3); margin-left: 2px; }
.shcard .sh-fit { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.shcard .sh-fit li { display: grid; grid-template-columns: 8px auto minmax(0, 1fr); align-items: baseline; gap: 8px; }
.shcard .sh-fit i { width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.shcard .sh-fit .t { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.shcard .sh-fit .v { color: var(--text-2); text-align: right; }
.shcard .sh-sug, .shcard .sh-note, .shcard .sh-src { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.shcard .sh-note { color: var(--warn); }
.shcard .sh-src { color: var(--text-3); font-size: 11.5px; }
.shcard .sh-sec { display: inline-block; font-size: 11px; padding: 0 8px; border-radius: 5px; background: var(--x-f6eedf, #f6eedf); color: var(--x-8a5a00, #8a5a00); }
.shcard .linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--sel); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-align: left; }

/* Examples: a drawn thumbnail of each preset (front and side at one scale), two columns; phones get a two-column card grid */
.lugpage .ex-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(700px, calc(100vw - 48px)); max-height: min(74vh, 640px); overflow: auto; }
.ex-menu button.thumbed { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 8px; }
.ex-menu button.thumbed .th { display: block; width: 96px; height: 64px; }
.ex-menu .thumb { display: block; width: 96px; height: 64px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; box-sizing: border-box; }
.ex-menu button.thumbed .tx { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 560px) {
  .lugpage .stage-bar .ex-menu { width: auto; gap: 6px; }
  .ex-menu button.thumbed { grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; gap: 6px; padding: 6px; }
  .ex-menu button.thumbed .th, .ex-menu .thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

/* sheets: headers wrap instead of being cut; phones drop the derived Bearing / Share columns and the direction glyph */
.lugsheets .sheet th { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; vertical-align: bottom; overflow-wrap: anywhere; }
.lugsheets .sheet th span { white-space: nowrap; }
@media (max-width: 560px) {
  .lugsheets .sheet col.rn { width: 26px; } .lugsheets .sheet col.del { width: 26px; }
  .sheet.stack col.role { width: 64px; } .sheet.stack col.msc, .sheet.cases col.msc { width: 74px; }
  .sheet.stack col.ro, .sheet.cases col.dir { visibility: collapse; width: 0; }
  .sheet.cases col.lname { width: 24%; }
  .lugsheets .sheet th, .lugsheets .sheet input { padding-left: 4px; padding-right: 4px; }
}
.lugsheets .msbar span { white-space: nowrap; }
/* phones: one card per plate / load case (calc.css .sheet.cards); the first plate has no gap */
@media (max-width: 760px) {
  .lugsheets .sheet.cards td.c-none { display: none; }
  .lugsheets .sheet.cards td.ro { padding: 0; font-size: 12.5px; }
  .lugsheets .sheet.cards td.dir { padding: 0; }
}
@media (max-width: 560px) {
  .lugsheets .msbar { margin: 0 3px; } .lugsheets .msbar span { padding: 0 5px; }
  .fan-rank .fr { grid-template-columns: 22px 10px 30px minmax(0, 1fr) auto auto; gap: 6px; }
  .fan-rank .fr-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
}
.lugpage .panel-body.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.lugpage .step .eq.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.lugpage .step .eq.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.lugpage .step .eq.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.lugpage .ex-menu.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
@media (max-width: 560px) { .lugpage .stage-bar .ex-menu { max-height: min(62vh, 520px); } }
.lugpage .card.stage.menu-open { overflow: visible; z-index: 20; }

/* capacity maps: hover card, draggable load ring, one shared list with a legend grouped by where it fails */
.lugpage .detail > .fig { position: relative; }
.lugpage .detail > .fan-list { grid-column: 1 / -1; }
.fan-h { cursor: grab; }
svg.dragging, svg.dragging .fan-h { cursor: grabbing; }
.fan-h .knob { transition: r .15s; }
.fan-h:hover .knob { r: 7.5; }
.fan-sw { cursor: help; }
.fan-tipbox { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px rgba(20, 22, 28, .12); padding: 8px 12px; font-size: 12px; min-width: 190px; max-width: 280px; display: grid; gap: 3px; }
.fan-tipbox[hidden] { display: none; }
.fan-tipbox .tb-h { color: var(--text-2); font-weight: 600; font-size: 11.5px; margin-bottom: 1px; }
.fan-tipbox .tb-r { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: var(--text); }
.fan-tipbox .tb-r.on { font-weight: 600; }
.fan-tipbox .tb-sw { width: 9px; height: 9px; border-radius: 2px; }
.fan-tipbox .tb-v { color: var(--text-2); font-variant-numeric: tabular-nums; }
.fan-tipbox .tb-p { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 8px; align-items: center; color: var(--load); font-size: 11.5px; font-weight: 600; border-top: 1px dashed var(--x-e7c3b6, #e7c3b6); padding-top: 2px; }
.fan-tipbox .tb-more { color: var(--text-3); font-size: 11px; }
.fan-list .fl-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 10px; font-size: 12px; color: var(--text-2); }
.fan-list .fl-g { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.fan-list .fl-g b { font-weight: 600; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.fan-list .fl-k { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: default; }
.fan-list .fl-k i { width: 10px; height: 10px; border-radius: 3px; }
.fan-list .fl-k.on { font-weight: 600; color: var(--text); }
.fan-list .fan-rank { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 7), auto); gap: 2px 28px; }
.fan-list .fl-how { margin-top: 10px; font-size: 12px; color: var(--text-2); }
.fan-list .fl-how summary { cursor: pointer; color: var(--text-3); }
.fan-list .fl-how p { margin: 6px 0 0; max-width: 92ch; line-height: 1.5; }
@media (max-width: 760px) { .fan-list .fan-rank { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; } }
#roseHead, #roseBHead { align-items: center; row-gap: 6px; }
#roseHead h2, #roseBHead h2 { flex-basis: 100%; }
.fig-head .fan-sub { flex: 1 1 220px; order: 2; margin: 0; }
.fig-head .fan-tog { order: 3; }
.lugpage .detail .fig .cap:empty { display: none; }
.fan-list .fl-cap { margin: 0 0 12px; font-size: 12.5px; color: var(--text-2); max-width: 100ch; }

/* 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-000000: #ffffff; --x-111111: #e2dfdb; --x-2f68b8: #7aaaf0; --x-3a9cc9: #7cc6ec; --x-3f8f55: #83c391;
    --x-4b5361: #969daa; --x-5c4a78: #a495bf; --x-6e7177: #85827f; --x-6f8a8a: #637979; --x-7a4b55: #ba8f97;
    --x-7d8a9a: #67717e; --x-8a5a00: #c89e66; --x-8fcfe8: #77a9bd; --x-9a4a2a: #d99277; --x-a7abb2: #54575c;
    --x-b23f1a: #ee8a6d; --x-b2441f: #ec8d6f; --x-b5dc8c: #617d41; --x-c9b48a: #958564; --x-c9d8a8: #47512f;
    --x-cfd5dc: #373b40; --x-d8b3a6: #6c5249; --x-d9663a: #ff9c78; --x-e07a3f: #fea779; --x-e0b43c: #eeca71;
    --x-e3a86a: #f3c290; --x-e3e8f1: #2c2f34; --x-e7c3b6: #573f36; --x-e8958d: #fbb5ad; --x-f6eedf: #2f2a21;
    --x-fbecd0: #332a18;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-000000: #ffffff; --x-111111: #e2dfdb; --x-2f68b8: #7aaaf0; --x-3a9cc9: #7cc6ec; --x-3f8f55: #83c391;
    --x-4b5361: #969daa; --x-5c4a78: #a495bf; --x-6e7177: #85827f; --x-6f8a8a: #637979; --x-7a4b55: #ba8f97;
    --x-7d8a9a: #67717e; --x-8a5a00: #c89e66; --x-8fcfe8: #77a9bd; --x-9a4a2a: #d99277; --x-a7abb2: #54575c;
    --x-b23f1a: #ee8a6d; --x-b2441f: #ec8d6f; --x-b5dc8c: #617d41; --x-c9b48a: #958564; --x-c9d8a8: #47512f;
    --x-cfd5dc: #373b40; --x-d8b3a6: #6c5249; --x-d9663a: #ff9c78; --x-e07a3f: #fea779; --x-e0b43c: #eeca71;
    --x-e3a86a: #f3c290; --x-e3e8f1: #2c2f34; --x-e7c3b6: #573f36; --x-e8958d: #fbb5ad; --x-f6eedf: #2f2a21;
    --x-fbecd0: #332a18;
  }
}
/* theme-auto:end */
