.weight-page [hidden] { display: none !important; }
.weight-page .tool-shell > * { min-width: 0; }
.weight-page .result-empty :is(strong,span) { display: block; }
.weight-page .result-empty span { margin-top: .5rem; }
.weight-page .result-number { font-size: clamp(2rem,5vw,4rem) !important; white-space: normal !important; overflow-wrap: anywhere; }
.weight-page .weight-kicker { display: inline-block; padding: .38rem .72rem; border-radius: 2rem; border: 1px solid #b48a4670; font-size: .8rem; text-transform: uppercase; letter-spacing: .075em; font-weight: 800; color: #eeb746; }
.weight-units, .weight-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.weight-units { margin: .7rem 0 1rem; padding: .35rem; border: 1px solid #b48a4670; border-radius: 1rem; }
.weight-units button { flex: 1 1 8rem; min-width: 0; }
.weight-units button[aria-pressed=true] { color: #211603; background: linear-gradient(#ffe799,#e9aa32); border-color: #eab745; }
.weight-actions { margin-top: 1.15rem; }
.weight-actions .primary-btn { flex: 1 1 14rem; min-width: 0; white-space: normal; }
.weight-example { margin-top: .65rem; }
.weight-page :is(input,select,button,textarea,a):focus-visible { outline: 2px solid #eab745; outline-offset: 3px; }
.weight-error { padding: .65rem .8rem; border: 1px solid #d16b51; background: #d16b511a; border-radius: .65rem; }
.weight-box { padding: clamp(.65rem,2vw,1.15rem); margin: 1rem 0 0; border: 1px solid #b48a4670; border-radius: 1rem; background: #b48a4610; }
.weight-box :is(h3,figcaption) { font-size: 1.15rem; font-weight: 800; margin: 0 0 .5rem; }
.weight-box ol, .weight-page .weight-box p:last-child { margin-bottom: 0; }
.weight-page .weight-box li + li { margin-top: .55rem; }
.weight-stats { margin: .75rem 0; }
.weight-stats div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; border-bottom: 1px solid #80808044; padding: .4rem 0; }
.weight-stats dd { margin: 0; font-weight: 750; }
.weight-chart svg { display: block; width: 100%; height: auto; margin-top: .3rem; }
.weight-chart text { font: 15px system-ui,sans-serif; fill: currentColor; }
.weight-grid { stroke: currentColor; opacity: .2; }
.weight-goal-line { stroke: #72adcf; stroke-width: 2; stroke-dasharray: 6 5; }
.weight-projected-line { stroke: #e6ad39; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.weight-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .85rem; }
.weight-legend span::before { content: ''; display: inline-block; width: 1.6rem; margin-right: .4rem; vertical-align: middle; }
.weight-trend::before { border-top: 3px solid #e6ad39; }
.weight-target::before { border-top: 2px dashed #72adcf; }
.weight-page table.weight-table { border-collapse: collapse; width: 100%; min-width: 0; table-layout: fixed; }
.weight-page .weight-table :is(th,td) { text-align: left; padding: .55rem .35rem; border-bottom: 1px solid #80808044; white-space: normal; overflow-wrap: anywhere; }
.weight-page .weight-table :is(th,td):last-child { text-align: right; }
.weight-page .weight-table tbody th { background: transparent; text-transform: none; letter-spacing: normal; }
.weight-page .weight-solution h3, .weight-step-label { color: #f4c653; }
.weight-page .weight-step-intro { margin: 0 0 .85rem; color: var(--muted, #aeb6c2); }
.weight-page .weight-step-list { list-style: none; padding: 0; margin: 0; }
.weight-step-list li { padding: .7rem .8rem; border-inline-start: 3px solid #d8aa40; border-radius: 0 .6rem .6rem 0; background: #08090b65; break-inside: avoid; }
.weight-step-list code { display: block; margin-top: .4rem; color: inherit; font: .9em/1.55 ui-monospace,Consolas,monospace; white-space: normal; overflow-wrap: anywhere; }
.weight-step-list p { margin: .4rem 0 0; }
.weight-page .result-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(6.3rem,1fr)); gap: .5rem; margin: 1rem 0 0; }
.weight-page .result-actions button { min-width: 0; white-space: normal; }
#weight-copy-text { display: block; width: 100%; color: inherit; background: transparent; border-radius: .5rem; padding: .5rem; }
.weight-page .article details { margin-block: .75rem; padding: .75rem; border: 1px solid #b48a4670; border-radius: .65rem; }
.weight-page .article summary { cursor: pointer; font-weight: 700; }
.weight-page .article details p { margin: .5rem 0 0; }
.weight-page .related-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .75rem; }
.weight-page .related-card { display: grid; gap: .3rem; padding: .8rem; border: 1px solid #80808045; border-radius: .8rem; }
html[data-theme=light] .weight-page .weight-kicker { color: #7e560c; }
html[data-theme=light] .weight-goal-line { stroke: #266c91; }
html[data-theme=light] .weight-projected-line { stroke: #90630a; }
html[data-theme=light] .weight-page :is(.weight-solution h3,.weight-step-label) { color: #805908; }
html[data-theme=light] .weight-page .weight-step-list li { background: #b48a4610; }
@media(max-width:540px) { .weight-page .field-grid { grid-template-columns: 1fr; } }
@media print {
  body:has(.weight-page #weight-result.is-visible) > :not(.weight-page),
  .weight-page:has(#weight-result.is-visible) :is(.hero,.breadcrumbs,.calc-panel > :not(figure),.content-layout,.affiliate-equipment,.result-actions,.result-action-status,#weight-copy-fallback) { display: none !important; }
  html:has(.weight-page), body:has(.weight-page), .weight-page, .weight-page :is(.wrap,.tool-shell,.calc-panel,.result-panel,.result-content,.weight-box,.result-note,.weight-step-list li,.weight-table :is(th,td)) { background: #fff !important; color: #111 !important; box-shadow: none !important; border-color: #aaa !important; }
  .weight-page .tool-shell { display: block !important; margin: 0 !important; padding: 0 !important; }
  .weight-page :is(.tool-shell,.calc-panel,.result-panel,.result-content)::before,.weight-page :is(.tool-shell,.calc-panel,.result-panel)::after { display: none !important; }
  .weight-page .calc-panel { padding: 0 !important; margin: 0 !important; border: 0 !important; }
  .weight-page .result-content::before { display: block !important; content: 'Weight Loss Calculator'; font-size: 1.35rem; font-weight: 800; }
  .weight-page .result-number { font-size: 2rem !important; color: #111 !important; -webkit-text-fill-color: #111 !important; }
  .weight-page :is(.panel-kicker,.field-help,.weight-step-intro,.weight-step-label,.weight-solution h3) { color: #111 !important; }
  .weight-page figure { break-inside: avoid; print-color-adjust: exact; max-width: 32rem; }
}
