:root{color-scheme:light;--ink:#233340;--muted:#63717d;--line:#d7e0e5;--teal:#087c80;--light:#e4f5fb;--green:#247d40;--gold:#b38a20}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:Inter,'Noto Sans JP',sans-serif;font-size:14px;letter-spacing:0}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button,select{cursor:pointer}button{background:#fff;border:1px solid var(--line);border-radius:4px}button:hover{background:#edf7f8}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #cf9f22;outline-offset:2px}a{color:#126b8a;text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}h1,h2,p{margin:0}h1{font-size:24px;font-weight:700}h2{font-size:17px;font-weight:700}svg.lucide{width:17px;height:17px;flex:none}select{background:#fff;border:1px solid #bccbd4;border-radius:4px;padding:7px 30px 7px 10px;min-height:36px;max-width:100%}.quiet{color:var(--muted);font-size:12px;line-height:1.7}
.page-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 24px;background:var(--light);border-bottom:1px solid #c1e3ed;color:#0c6076;min-height:40px}.page-bar nav{display:flex;align-items:center;gap:20px;font-size:12px;flex-wrap:wrap}.page-bar strong{font-size:13px;white-space:nowrap}main{max-width:1760px;padding:20px 24px 40px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.heading-copy{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.private-label{display:inline-flex;gap:5px;align-items:center;color:var(--muted);font-size:12px}.private-label svg{width:14px;height:14px}.preview-label{font-size:11px;background:#fff1cd;padding:3px 8px;border-radius:3px;color:#72530d}.month-control{display:flex;gap:10px;align-items:center;font-size:13px}.summary-strip{display:flex;gap:26px;align-items:center;flex-wrap:wrap;padding:16px 0 14px;min-height:60px}.summary-strip>span{display:flex;align-items:baseline;gap:9px}.summary-strip strong{font-size:20px;color:var(--green);font-variant-numeric:tabular-nums}.view-tabs{display:flex;gap:8px;border-bottom:1px solid #72aebd;margin-bottom:14px}.view-tabs button{border:0;background:none;border-bottom:3px solid transparent;border-radius:0;padding:10px 14px;font-size:13px}.view-tabs button[aria-selected=true]{border-color:var(--teal);color:#076c74;font-weight:700}
.monthly-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}.roster-pane{min-width:0}.table-toolbar{display:flex;align-items:center;gap:12px;min-height:42px;margin-bottom:8px}.search-field{display:flex;align-items:center;gap:8px;border:1px solid #bccbd4;border-radius:4px;padding:0 10px;max-width:320px;flex:1;height:36px;color:#71808d}.search-field input{border:0;min-width:0;width:100%;outline:0;background:transparent;font-size:13px}.search-field:focus-within{outline:2px solid #76afb6;outline-offset:1px}.table-toolbar>.quiet{margin-left:auto}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;flex:none}.table-scroll{overflow:auto;max-width:100%}.roster-table{width:100%;min-width:940px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px;font-variant-numeric:tabular-nums}.roster-table th,.roster-table td{padding:5px 10px;border-bottom:1px solid #e0e6ea;text-align:right;height:30px;white-space:nowrap}.roster-table th{height:37px;border-top:2px solid var(--teal);border-bottom:1px solid #a4b3bd;background:#fff;font-size:12px}.roster-table th:first-child,.roster-table td:first-child{width:20%;text-align:left;position:sticky;left:0;background:#fff;z-index:1}.roster-table th:nth-child(2){width:16%}.roster-table th:nth-child(3){width:15%}.roster-table th:nth-child(4){width:9%}.roster-table th:nth-child(5){width:10%}.roster-table th:nth-child(6),.roster-table th:nth-child(7){width:15%}.roster-table th button{border:0;background:none;padding:0;display:inline-flex;align-items:center;gap:4px;font-weight:600;font-size:12px}.roster-table th svg{width:12px;height:12px;color:#85939d}.roster-table th[aria-sort=descending],.roster-table th[aria-sort=ascending]{color:var(--teal)}.roster-table .member-button{border:0;background:transparent;display:flex;gap:5px;align-items:center;max-width:100%;padding:0;text-align:left;font-size:13px}.member-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-button svg{width:13px;height:13px;color:var(--teal)}.roster-table tbody tr:hover td{background:#edf8f5}.positive{color:var(--green)}.negative{color:#a54545}.empty-state{padding:32px 12px;text-align:center;color:var(--muted)}
.histogram-pane{min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.histogram-tool{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 13px;text-align:left;display:block;background:#fff;width:100%;min-width:0;cursor:zoom-in}.histogram-tool:hover{background:#f7fbfc}.histogram-heading{display:flex;align-items:center;gap:10px;min-height:28px}.histogram-heading h2{font-size:15px;color:#126b81}.histogram-heading>svg{margin-left:auto;width:17px;height:17px;color:#59717d}.histogram-caption{display:flex;justify-content:space-between;gap:6px 10px;font-size:11px;color:var(--muted);padding:2px 0 6px;flex-wrap:wrap;min-height:38px;align-content:start}.histogram-caption strong{font-size:12px;font-weight:600;color:var(--ink)}.mini-chart-wrap{position:relative;height:130px;min-width:0}.mini-chart-wrap canvas{max-width:100%}.histogram-empty{display:flex;align-items:center;justify-content:center;height:130px;color:var(--muted);font-size:12px}
.history-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:18px 0 24px}.history-toolbar label{display:flex;gap:8px;align-items:center;font-size:12px}.history-toolbar select{font-size:13px}.segmented{display:inline-flex;border:1px solid #bdcbd3;border-radius:4px;overflow:hidden}.segmented button{border:0;border-radius:0;font-size:13px;padding:8px 15px}.segmented button[aria-pressed=true]{background:#dff2f3;color:#08666f;font-weight:700}.history-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;margin-bottom:14px}.history-heading p{max-width:800px}.trend-chart-wrap{height:390px;position:relative;min-width:0}.history-table-wrap{margin-top:28px;max-height:420px}.history-table,.bin-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.history-table td,.history-table th,.bin-table td,.bin-table th{padding:9px 12px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.history-table td:first-child,.history-table th:first-child,.bin-table th:first-child,.bin-table td:first-child{text-align:left}.history-table thead{position:sticky;top:0;background:#eef6f8;z-index:1}.history-table .selected-month td{background:#e4f4ee}.load-state{max-width:700px;margin:80px auto;padding:24px}.load-state p{margin:16px 0;color:var(--muted);line-height:1.8}.command{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 16px;border:1px solid var(--teal);border-radius:4px;background:#eff8f8;color:#086b73;font-size:14px}
.histogram-dialog{width:min(900px,calc(100% - 32px));max-height:90dvh;border:1px solid #c4d2da;border-radius:6px;padding:24px;color:var(--ink);overflow:auto}.histogram-dialog::backdrop{background:rgba(12,28,38,.5)}.dialog-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:8px}.dialog-summary{display:flex;gap:30px;flex-wrap:wrap;margin:18px 0}.dialog-summary>div{min-width:100px}.dialog-summary dt{font-size:12px;color:var(--muted);margin-bottom:5px}.dialog-summary dd{font-size:20px;font-weight:600;margin:0;font-variant-numeric:tabular-nums}.expanded-chart-wrap{position:relative;height:330px;margin:12px 0 24px}.bin-table{font-size:12px}
@media(min-width:1500px){.mini-chart-wrap,.histogram-empty{height:150px}.roster-table th,.roster-table td{height:30px}}
@media(max-width:1100px){.histogram-pane{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-strip{gap:18px}}
@media(max-width:820px){main{padding:16px 14px 28px}.page-bar{padding:8px 14px}.summary-strip{gap:12px 20px}.summary-strip strong{font-size:18px}.trend-chart-wrap{height:310px}.history-toolbar{gap:12px}.history-toolbar label{flex-wrap:wrap}.page-heading h1{font-size:22px}.history-toolbar select{max-width:calc(100vw - 120px)}}
.mobile-sort{display:none}.histogram-statistics{display:flex;flex-wrap:wrap;gap:2px 8px}
@media(max-width:1000px){
  .view-tabs{scroll-margin-top:45px}
  .mobile-sort{display:flex;align-items:center;gap:10px;margin:0 0 10px}.mobile-sort label{font-size:12px;flex:none}.mobile-sort select{flex:1;min-width:0}
  .roster-pane>.table-scroll,.history-table-wrap{overflow:visible;max-height:none}
  .roster-table,.history-table{display:block;min-width:0;width:100%;table-layout:auto}
  .roster-table thead,.history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .roster-table tbody,.history-table tbody{display:block}
  .roster-table tbody tr,.history-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;padding:12px 0 16px;border-bottom:1px solid var(--line)}
  .roster-table td,.history-table td{display:flex;flex-direction:column;gap:4px;min-width:0;height:auto;white-space:normal;border:0;padding:0;text-align:left;font-size:15px;overflow-wrap:anywhere}
  .roster-table td::before,.history-table td::before{content:attr(data-label);font-size:12px;line-height:1.4;font-weight:400;color:var(--muted)}
  .roster-table td:first-child,.history-table td:first-child{position:static;grid-column:1/-1;width:auto;background:transparent;font-weight:600}
  .roster-table td:first-child::before,.history-table td:first-child::before{content:none}
  .roster-table .member-button{width:100%;min-height:36px;font-size:15px;font-weight:600}.member-button span{white-space:normal;text-overflow:clip;overflow-wrap:anywhere}
  .roster-table td:nth-child(2){font-size:18px;font-weight:600}.roster-table td:nth-child(3){font-size:16px}
  .roster-table tbody tr:hover td{background:transparent}.history-table .selected-month{background:#eef8f4}.history-table .selected-month td{background:transparent}
  .history-table-wrap{margin-top:20px}.history-table td:first-child{padding-bottom:2px;font-size:14px}
}
@media(max-width:600px){
  main{padding:14px 14px 28px}.page-bar{padding:4px 14px;gap:8px}.page-bar nav{gap:12px}.page-bar nav a{display:inline-flex;align-items:center;min-height:40px;font-size:12px}
  .page-heading{gap:12px}.heading-copy{gap:8px}.private-label{font-size:12px}.month-control{width:100%;justify-content:space-between}.month-control select{min-width:164px}
  select,input{font-size:16px!important}select{min-height:44px}.icon-button{width:44px;height:44px}.search-field{height:44px}.search-field input{min-height:42px}
  .summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px 0 12px;min-height:0}.summary-strip>span{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:12px}.summary-strip strong{font-size:16px;white-space:nowrap}.summary-strip #measurement-note{grid-column:1/-1;font-size:12px}
  .view-tabs{position:sticky;top:45px;background:#fff;z-index:3;gap:0}.view-tabs button{flex:1;min-height:46px;font-size:14px;padding:10px}
  .monthly-layout{gap:16px}.histogram-pane{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.histogram-heading{min-height:26px;gap:5px;align-items:flex-start}.histogram-heading h2{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.histogram-heading>svg{width:15px;height:15px;margin-top:2px}
  .histogram-caption{display:block;min-height:58px;font-size:11px;padding:2px 0 4px;line-height:1.6}.histogram-statistics{display:grid;gap:0}.histogram-caption>span:last-child{display:block}.mini-chart-wrap,.histogram-empty{height:88px}.histogram-tool{padding-bottom:8px}
  .table-toolbar{gap:8px;margin-bottom:10px}.table-toolbar>.quiet{font-size:12px;white-space:nowrap}.search-field{padding:0 8px;gap:6px;max-width:none}
  .roster-table tbody tr,.history-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.roster-table .member-button{min-height:40px}.roster-table td{font-size:15px}
  .history-toolbar{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;margin:14px 0 18px}.segmented{grid-column:1/-1;display:flex}.segmented button{flex:1;min-height:44px;font-size:14px;padding:8px 12px}
  .history-toolbar label{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;font-size:12px}.history-toolbar select{width:100%;max-width:100%;min-width:0}#person-control{grid-column:1/-1;width:100%}#history-member{max-width:100%}
  .history-heading{display:block}.history-heading h2{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.history-heading p{margin-top:6px}.trend-chart-wrap{height:280px}
  .histogram-dialog{padding:16px;width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.dialog-heading{gap:10px;align-items:flex-start}.dialog-heading h2{font-size:16px;line-height:1.5}.dialog-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.dialog-summary>div{min-width:0}.dialog-summary dd{font-size:17px}.expanded-chart-wrap{height:240px}.bin-table td,.bin-table th{white-space:normal;overflow-wrap:anywhere;padding:9px 6px}
}
@media(max-width:360px){.history-toolbar{grid-template-columns:minmax(0,1fr)}}
