/* weight-journey.css: the weight journey INSIDE the Weight & BMI sheet (Oct 22 2026, merged: one sheet, one design). Same dark glass
   language as body-stats.css (white ink, cyan rims, glow), brand blues only (#0A84FF, #5AA9FF, #8FE7FF). The sheet stays dark in
   Day mode too, like Weight & BMI always has, so the rules below hold for data-theme="light" as well. 44 px targets, Reduce Motion. */
.bs-wjhost { --wj-line: #8fe7ff; --wj-acc: #5aa9ff; --wj-deep: #0a84ff; --wj-rim: rgba(143, 231, 255, .3); --wj-glass: rgba(255, 255, 255, .07); }
.bs-wjhost:empty { display: none; }
.bs-wjhost h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.bs-wjhost button { -webkit-tap-highlight-color: transparent; }

/* progress: start + goal with Edit, since start + to go, one bar */
.wj-prog { margin-top: 6px; }
.wj-start { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; border-radius: 20px; background: var(--wj-glass); border: 1px solid var(--wj-rim); box-shadow: inset 0 0 14px rgba(143, 231, 255, .12); }
.wj-start > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wj-start small, .wj-stat small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.wj-start b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wj-link { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--wj-line); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wj-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wj-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: 20px; background: var(--wj-glass); border: 1px solid var(--wj-rim); box-shadow: inset 0 0 14px rgba(143, 231, 255, .12); }
.wj-stat b { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(143, 231, 255, .45); overflow-wrap: anywhere; }
.wj-stat b i { font-style: normal; font-size: 14px; opacity: .8; }
.wj-stat b .wj-link { min-height: 32px; padding: 0; font-size: 16px; text-align: left; }
.wj-stat span { font-size: 12.5px; opacity: .8; }
.wj-stat.wj-good b { color: #8fe7ff; text-shadow: 0 0 16px rgba(143, 231, 255, .8); }
.wj-goalbar { height: 10px; margin: 12px 2px 2px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.wj-goalbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0a84ff, #5aa9ff, #8fe7ff); box-shadow: 0 0 12px rgba(143, 231, 255, .6); transition: width .5s ease; }

/* chart */
.wj-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(2, 10, 34, .35); border: 1px solid var(--wj-rim); }
.wj-tab { flex: 1 1 auto; min-width: 40px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; opacity: .78; }
.wj-tab[aria-selected="true"] { opacity: 1; color: #04122c; background: linear-gradient(135deg, #8fe7ff, #5aa9ff); text-shadow: none; }
.wj-range { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 6px 0 2px; text-align: center; }
.wj-range b { font-size: 13.5px; font-weight: 700; opacity: .9; }
.wj-arrow, .wj-arrow-sp { width: 44px; height: 44px; }
.wj-arrow { border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-size: 22px; cursor: pointer; }
.wj-arrow:disabled { opacity: .3; cursor: default; }
.wj-chart { min-height: 120px; padding: 6px 0 4px; border-radius: 20px; background: rgba(2, 10, 34, .35); border: 1px solid rgba(143, 231, 255, .22); overflow: hidden; text-shadow: none; }
.wj-svg { display: block; max-width: 100%; }
.wj-grid { stroke: rgba(143, 231, 255, .14); stroke-width: 1; }
.wj-ax { fill: rgba(255, 255, 255, .7); font-size: 10.5px; font-weight: 600; font-family: inherit; }
.wj-f0 { stop-color: #5aa9ff; stop-opacity: .38; }
.wj-f1 { stop-color: #0a84ff; stop-opacity: 0; }
.wj-line { fill: none; stroke: var(--wj-line); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(143, 231, 255, .6)); }
.wj-dot { fill: #0b2350; stroke: var(--wj-line); stroke-width: 1.6; }
.wj-dot.wj-last { fill: #8fe7ff; stroke: #fff; stroke-width: 2; }
.wj-dot.wj-peak { fill: #5aa9ff; stroke: #fff; stroke-width: 1.4; }
.wj-lab rect { fill: rgba(10, 30, 70, .92); stroke: rgba(143, 231, 255, .55); stroke-width: 1; }
.wj-lab text { fill: #fff; font-size: 11px; font-weight: 800; font-family: inherit; }
.wj-lab-last rect { fill: #8fe7ff; stroke: none; }
.wj-lab-last text { fill: #04122c; }
.wj-goalln { stroke: #5aa9ff; stroke-width: 1.6; stroke-dasharray: 6 5; }
.wj-flag path { stroke: #5aa9ff; stroke-width: 1.6; fill: none; }
.wj-flag .wj-flagcloth { fill: #5aa9ff; stroke: none; }
.wj-goallb { fill: #8fe7ff; font-size: 11px; font-weight: 800; font-family: inherit; }
.wj-startln { stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; stroke-dasharray: 3 4; }
.wj-startlb { fill: rgba(255, 255, 255, .85); font-size: 10.5px; font-weight: 800; font-family: inherit; }
.wj-startdot { fill: #0a84ff; stroke: #fff; stroke-width: 1.6; }
.wj-empty, .wj-note { margin: 10px 14px; font-size: 13.5px; opacity: .85; }
.wj-chart-empty { padding: 24px 0; text-align: center; }

/* weigh-ins (tap to edit or delete) */
.wj-list ul { list-style: none; margin: 0; padding: 0; }
.wj-list li button { display: grid; grid-template-columns: 1fr auto 64px 16px; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 4px; border: 0; border-bottom: 1px solid rgba(143, 231, 255, .15); background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.wj-list li.wj-on button { background: rgba(143, 231, 255, .12); border-radius: 12px; }
.wj-list li b { font-variant-numeric: tabular-nums; }
.wj-list li em { font-style: normal; text-align: right; opacity: .8; font-variant-numeric: tabular-nums; }
.wj-list li i { font-style: normal; opacity: .55; }
.wj-more { display: block; margin: 6px auto 0; }

/* edit forms (one weigh-in, start + goal): same fields as the weight input above */
.wj-card { margin: 0 0 10px; padding: 14px; border-radius: 20px; background: rgba(2, 10, 34, .4); border: 1px solid rgba(143, 231, 255, .4); }
.wj-card h3 { margin: 0 0 6px; }
.wj-card p { margin: 0 0 10px; font-size: 13.5px; opacity: .9; }
.wj-fields { display: grid; gap: 10px; }
.wj-fields.wj-two { grid-template-columns: 1fr 1fr; }
.wj-fields label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12.5px; font-weight: 700; }
.wj-fields label em { font-style: normal; font-weight: 600; opacity: .7; }
.wj-fields input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(143, 231, 255, .45); background: rgba(255, 255, 255, .1); color: inherit; font: inherit; font-size: 17px; font-weight: 750; color-scheme: dark; outline: none; }
.wj-fields input:focus { border-color: #8fe7ff; box-shadow: 0 0 0 3px rgba(143, 231, 255, .3); }
.wj-err { margin: 8px 0 0; color: #bfe9ff; font-size: 13px; font-weight: 700; }
.wj-err:empty { display: none; }
.wj-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wj-btn { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; font-weight: 800; color: #04122c; cursor: pointer; background: linear-gradient(135deg, #bff3ff, #8fe7ff); box-shadow: 0 0 16px rgba(143, 231, 255, .45); text-shadow: none; }
.wj-btn.wj-ghost { color: inherit; background: rgba(255, 255, 255, .08); border: 1px solid rgba(143, 231, 255, .4); box-shadow: none; text-shadow: inherit; }
.wj-btn.wj-del { margin-left: auto; }

@media (max-width: 360px) { .wj-stat b { font-size: 20px; } .wj-fields.wj-two { grid-template-columns: 1fr; } .wj-start { grid-template-columns: 1fr 1fr; } .wj-start .wj-link { grid-column: 1 / -1; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .wj-goalbar i { transition: none; } }
