/* Rick Lidgett weight tracker 1.0.1 */
:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #20382c; background: #f7faf8; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #21663f; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, .profile-link { min-height: 44px; }
button { border: 1px solid #23653f; border-radius: 5px; background: #23653f; color: white; padding: 9px 16px; cursor: pointer; font-weight: 600; }
button:hover { background: #184b2d; }
button:disabled { opacity: .65; cursor: wait; }
.secondary { background: white; color: #23653f; }
.secondary:hover { background: #edf5ef; }
:focus-visible { outline: 3px solid #3677b0; outline-offset: 3px; }
.shell { width: min(1180px, 100% - 40px); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid #d7e3db; }
.header-inner, nav, .heading, .history-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.header-inner { min-height: 72px; padding-block: 14px; }
.brand { text-decoration: none; font-weight: 750; font-size: 20px; }
nav { justify-content: flex-start; gap: 24px; }
main.shell { padding-top: 28px; }
.heading { margin-bottom: 12px; }
h1 { font-size: 30px; line-height: 1.2; margin: 3px 0 12px; }
h2 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #4f6d59; margin: 0; }
.muted, .fine, .stats span { color: #52645a; }
.fine, .stats span { font-size: 13px; }
.account { font-size: 14px; max-width: 800px; }
.personal-guidance { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d7e3db; max-width: 880px; }
.personal-guidance details { margin: 16px 0; }
.personal-guidance summary { cursor: pointer; font-weight: 650; padding: 10px 0; }
.personal-guidance h3 { font-size: 16px; margin: 16px 0 8px; }
.profiles { gap: 4px; border-bottom: 1px solid #c6d7cc; margin: 22px 0 24px; }
.profile-link { padding: 10px 28px; text-decoration: none; border-bottom: 3px solid transparent; font-weight: 650; }
.profile-link.active { border-color: #23653f; background: #e9f3ec; color: #184c2e; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 24px 0 12px; }
.stats > div { border-left: 3px solid #b3d1bc; padding-left: 14px; min-width: 0; }
dt { font-size: 13px; color: #52645a; }
dd { margin: 6px 0 2px; font-size: 24px; font-weight: 650; overflow-wrap: anywhere; }
dd.delta { font-size: 18px; }
.workspace { display: grid; grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); gap: 32px; border-top: 1px solid #d7e3db; margin-top: 25px; padding-top: 26px; }
.entry-panel { padding-right: 26px; border-right: 1px solid #d7e3db; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input:not([type="hidden"]):not([type="checkbox"]), select { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #8da997; border-radius: 4px; background: #fff; color: #20382c; min-width: 0; }
.entry-panel label:not(.checkbox), .login label { margin-top: 18px; }
.entry-panel button, .login button { margin-top: 20px; }
.entry-panel button { width: 100%; }
.history { min-width: 0; }
.history-heading { align-items: flex-start; gap: 12px; }
.range-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.range-form label { margin: 0; }
.range-form select { width: auto; }
.chart { margin: 18px 0; min-height: 70px; background: #fff; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: system-ui, sans-serif; fill: #435c4b; font-size: 13px; }
.chart .grid { stroke: #e0e8e2; }
.chart .axis { stroke: #80998a; }
.chart .line { stroke: #267345; stroke-width: 2.5; fill: none; }
.chart .point { fill: #23653f; stroke: #fff; stroke-width: 2; }
.chart .axis-title { font-size: 14px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; padding: 10px 0; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid #dce6df; white-space: nowrap; }
thead { background: #eaf2ec; }
tbody th { font-weight: 500; }
th:last-child, td:last-child { text-align: right; }
.message { padding: 13px 16px; border: 1px solid; border-radius: 5px; overflow-wrap: anywhere; }
.error { background: #fff5f4; border-color: #d19b94; color: #77352d; }
.success { background: #eaf5ed; border-color: #9cc4a8; color: #225437; }
.replacement { margin-top: 16px; padding-top: 12px; border-top: 1px solid #c7d5cc; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checkbox input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: #23653f; }
.login { max-width: 440px; margin: 28px 0 60px; }
.empty { padding: 18px 0; color: #52645a; }
footer { border-top: 1px solid #d7e3db; color: #52645a; font-size: 12px; margin-top: 36px; padding: 18px 0 26px; }
@media (max-width: 850px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace { grid-template-columns: minmax(0, 1fr); gap: 28px; } .entry-panel { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid #d7e3db; } .entry-panel form { max-width: 420px; } }
@media (max-width: 440px) { .shell { width: calc(100% - 28px); } nav { gap: 16px; } .stats { gap: 20px 12px; } dd { font-size: 21px; } dd.delta { font-size: 16px; } .history-heading { display: block; } .range-form { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
