.bp-page { --bp-line: var(--border, #29343b); --bp-muted: var(--muted, #a6b1bb); --bp-accent: var(--primary); --bp-surface: var(--surface, #11161b); width: 100%; max-width: 960px; margin: 0 auto; padding: 16px; color: var(--text, #f2f4f6); letter-spacing: 0; }
.bp-page *, .bp-sheet * { box-sizing: border-box; letter-spacing: 0; }
@media(max-width:959px){.screen.bp-page{padding-bottom:calc(var(--bottom-nav-total, 61px) + 24px)}}
.bp-header, .bp-section-line, .bp-playback, .bp-form-actions { display: flex; align-items: center; gap: 12px; }
.bp-header { margin-bottom: 14px; }
.bp-header h1 { font-size: 22px; line-height: 1.25; margin: 0; flex: 1; min-width: 0; }
.bp-page h2, .bp-sheet h2 { font-size: 18px; line-height: 1.3; margin: 0 0 16px; }
.bp-page button, .bp-sheet button { font: inherit; cursor: pointer; }
.bp-page button:disabled { opacity: .45; cursor: default; }
.bp-icon { width: 44px; height: 44px; min-width: 44px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; color: inherit; border: 0; border-radius: 4px; background: transparent; }
.bp-icon:hover, .bp-link:hover { background: var(--surface-hover); }
.bp-page svg:not(.bp-chart):not(.rl-anatomy), .bp-sheet button svg { width: 22px; height: 22px; flex-shrink: 0; }
.bp-tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--bp-line); margin-bottom: 24px; }
.bp-tabs::-webkit-scrollbar { display: none; }
.bp-tabs button { flex: 1 0 auto; min-height: 48px; padding: 10px 12px; color: var(--bp-muted); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 13px; white-space: nowrap; }
.bp-tabs button[aria-selected=true] { color: var(--bp-accent); border-bottom-color: var(--bp-accent); }
.bp-identity { padding-bottom: 22px; }
.bp-identity strong { font-size: 20px; overflow-wrap: anywhere; }
.bp-identity p { margin: 6px 0 0; color: var(--bp-muted); font-size: 14px; }
.bp-identity p span { padding: 0 7px; }
.bp-section-line { justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.bp-section-line h2 { margin: 0; }
.bp-section-line time, .bp-chart-range, .bp-checkin-intro time { font-size: 12px; color: var(--bp-muted); }
.bp-trend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--bp-muted); }
.bp-trend.positive { color: var(--success); }
.bp-trend.warning,.bp-trend.negative { color: var(--warning); }
.bp-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.bp-metric { padding: 16px 0; border-top: 1px solid var(--bp-line); display: grid; gap: 5px; min-width: 0; }
.bp-metric > span { font-size: 12px; color: var(--bp-muted); }
.bp-metric strong { font-size: 25px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bp-metric strong small { font-size: 12px; font-weight: 400; }
.bp-metric > small { color: var(--bp-muted); font-size: 12px; }
.bp-more { margin: 10px 0 22px; }
.bp-more summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 13px; }
.bp-primary { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; width: 100%; margin: 20px 0 8px; border-radius: 6px; }
.bp-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; border: 0; background: none; padding: 10px 6px; min-height: 44px; font-size: 13px; }
.bp-empty { padding: 24px 0; color: var(--bp-muted); font-size: 14px; }
.bp-page select,.bp-page input:not([type=range]):not([type=file]),.bp-page textarea,.bp-sheet input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--bp-line); background: var(--bp-surface); color: inherit; border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 14px; }
.bp-page input[readonly] { color: var(--bp-muted); }
.bp-page input[type=range] { width: 100%; min-height: 32px; accent-color: var(--bp-accent); }
.bp-select { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--bp-muted); }
.bp-select select { width: min(70%,260px); color: var(--text,#f2f4f6); }
.bp-chart-section { padding: 22px 0; border-top: 1px solid var(--bp-line); }
.bp-chart { display: block; width: 100%; height: auto; aspect-ratio: 560/180; margin: 12px 0 0; overflow: visible; }
.bp-chart .bp-grid { stroke: var(--bp-line); stroke-dasharray: 3 5; fill: none; }
.bp-chart .bp-line { stroke: var(--bp-accent); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.bp-chart circle { fill: var(--bp-accent); }
.bp-chart-range { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.bp-chart-range strong { font-size: 14px; color: var(--text,#f2f4f6); }
.bp-periods { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin-top: 14px; gap: 4px; }
.bp-periods button,.bp-segment button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 10px 4px; color: var(--bp-muted); min-height: 44px; font-size: 13px; }
.bp-periods button[aria-pressed=true],.bp-segment button[aria-pressed=true] { color: var(--bp-accent); border-bottom-color: var(--bp-accent); }
.bp-checkin-intro { padding: 8px 0 28px; max-width: 520px; }
.bp-checkin-intro p { color: var(--bp-muted); font-size: 14px; }
.bp-checkin-intro time { display: block; margin-top: 20px; }
.bp-visual { padding-bottom: 26px; }
.bp-photo-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 520px; aspect-ratio: 3/4; margin: 16px auto 0; background: var(--media-scrim); overflow: hidden; border: 0; border-radius: 6px; }
.bp-photo-stage img,.bp-photo-pair img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bp-photo-stage time { position: absolute; bottom: 8px; left: 8px; color: var(--media-text); background: var(--media-scrim); padding: 4px 8px; font-size: 12px; border-radius: 4px; }
.bp-playback { justify-content: center; margin-top: 8px; }
.bp-playback select { width: 76px; }
.bp-photo-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.bp-photo-pair figure { margin: 0; min-width: 0; }
.bp-photo-pair img { aspect-ratio: 3/4; height: auto; background: var(--surface); border-radius: 4px; }
.bp-photo-pair figcaption { margin-top: 8px; font-size: 12px; text-align: center; }
.bp-compare-selects,.bp-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.bp-shared-measures { display:flex;align-items:center;gap:10px;min-height:44px;margin:0 0 16px;color:var(--muted);font-size:13px;cursor:pointer; }
.bp-shared-measures input[type=checkbox] { flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--red); }
.bp-compare-selects label { display: grid; gap: 6px; font-size: 12px; color: var(--bp-muted); }
.bp-comparison { padding: 0 0 28px; }
.bp-diff { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--bp-line); padding: 14px 0; }
.bp-diff small { display: block; margin-top: 4px; color: var(--bp-muted); }
.bp-diff strong { white-space: nowrap; font-size: 15px; }
.bp-history { margin-top: 8px; }
.bp-record { border-top: 1px solid var(--bp-line); padding: 18px 0; }
.bp-record summary { cursor: pointer; }
.bp-record summary time { font-weight: 700; font-size: 15px; }
.bp-record summary > span { display: block; margin-top: 8px; color: var(--bp-muted); font-size: 13px; }
.bp-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bp-thumbnails button { padding: 0; width: 64px; height: 84px; overflow: hidden; border: 0; border-radius: 4px; background: var(--bp-surface); }
.bp-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.bp-record-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.bp-record-values dt { color: var(--bp-muted); font-size: 12px; }
.bp-record-values dd { margin: 4px 0 0; }
.bp-record p { overflow-wrap: anywhere; }
.bp-anatomy { max-width: 390px; margin: 0 auto; }
.bp-anatomy .rl-anatomy { display: block; width: 100%; max-height: 60dvh; }
.bp-segment { display: flex; gap: 16px; }
.bp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0; font-size: 11px; color: var(--bp-muted); }
.bp-legend span { display: inline-flex; align-items: center; gap: 4px; }
.bp-legend i { width: 8px; height: 8px; min-width: 0; min-height: 0; padding: 0; margin: 0; flex: 0 0 8px; border: 0; border-radius: 50%; background: var(--surface); }
.bp-trend.empty { min-height: 0; padding: 0; margin: 0; border: 0; background: none; }
.bp-legend .positive { background: var(--success-soft); }.bp-legend .stable { background: var(--warning-soft); }.bp-legend .warning { background: var(--warning-soft); }.bp-legend .negative { background: var(--primary-strong); color: var(--button-primary-text); }
.bp-sheet { --bp-line: var(--border-soft); --bp-surface: var(--surface); padding: 24px; width: min(100%,540px); max-height: 85dvh; margin: auto auto 0; border: 1px solid var(--bp-line); border-radius: 8px 8px 0 0; background: var(--surface,#11161b); color: var(--text,#f2f4f6); }
.bp-sheet::backdrop { background: var(--overlay); }
.bp-sheet > .bp-icon { float: right; margin: -12px -12px 0 8px; }
.bp-sheet-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; clear: both; }
.bp-sheet-metrics span { display: block; font-size: 12px; margin-bottom: 8px; }
.bp-sheet-metrics strong { font-size: 18px; }
.bp-sheet .bp-photo-stage { max-height: 65dvh; }
.bp-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin-bottom: 24px; }
.bp-steps button { background: none; border: 0; border-bottom: 2px solid var(--bp-line); color: var(--bp-muted); padding: 8px 2px; font-size: 11px; }
.bp-steps span { display: block; font-size: 14px; margin-bottom: 4px; }
.bp-steps [aria-current=step] { color: var(--bp-accent); border-bottom-color: var(--bp-accent); }
.bp-page .field { display: grid; gap: 7px; margin-bottom: 14px; min-width: 0; }
.bp-page .field > span { font-size: 12px; color: var(--bp-muted); }
.bp-form-actions { position: static; padding: 12px 0; margin-top: 22px; }
.bp-form-actions button { flex: 1; min-height: 48px; }
.bp-photo-inputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.bp-photo-input { position: relative; min-width: 0; }
.bp-photo-input label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bp-surface); border: 1px dashed var(--bp-line); border-radius: 6px; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.bp-photo-input label > span { font-size: 12px; text-align: center; padding: 5px; overflow-wrap: anywhere; z-index: 1; background: var(--bp-surface); }
.bp-photo-input label img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.bp-photo-input label:has(img) > span { margin-top: auto; }
.bp-photo-input input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bp-photo-input > button { width: 40px; height: 40px; min-width: 40px; }
.bp-error { color: var(--danger); font-size: 14px; }
.bp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bp-page :focus-visible,.bp-sheet :focus-visible { outline: 2px solid var(--bp-accent,#ff1744); outline-offset: 3px; }
.bp-page [hidden] { display: none !important; }
.bp-assessment-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 20px 0; gap: 4px; }
.bp-assessment-tabs button { min-width: 0; min-height: 44px; white-space: normal; }
@media(min-width:768px){.bp-page{padding:24px 32px}.bp-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.bp-photo-stage{max-width:380px}.bp-form-actions{bottom:0}.bp-photo-inputs{grid-template-columns:repeat(4,minmax(0,1fr))}.bp-sheet{margin:auto;border-radius:8px}.bp-checkin-intro{margin:auto}}
