* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, system-ui, sans-serif; color: #251f21; background: #fff; max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
header h1 { font-size: 28px; margin: 24px 0 2px; font-weight: 600; letter-spacing: -0.02em; }
.sub { color: #585254; margin: 0 0 12px; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #eae9ea; margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 10px; min-height: 44px; font-size: 14px; color: #585254; }
.tabs button.active { color: #251f21; font-weight: 600; box-shadow: inset 0 -2px 0 #251f21; }
.tab { display: none; }
.tab.active { display: block; }
h2 { font-size: 20px; margin: 8px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0 0 10px; }
.card { border: 1px solid #eae9ea; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.row.wrap, .wrap { flex-wrap: wrap; display: flex; gap: 8px; }
button { font: inherit; cursor: pointer; border-radius: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #eae9ea; background: #fff; }
button.primary { background: #251f21; color: #fff; border-color: #251f21; }
button.chip { border-radius: 999px; }
button.chip.active, button.on { background: #73a89a; border-color: #73a89a; color: #fff; }
button.ghost { border-color: transparent; color: #585254; }
.muted { color: #585254; }
.small { font-size: 13px; }
.hidden { display: none; }
.pitch { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.pitchnote { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.notes button { min-width: 48px; }
.timerface { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.list { list-style: none; padding: 0; margin: 0 0 10px; }
.list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eae9ea; flex-wrap: wrap; }
.list li .grow { flex: 1 1 auto; min-width: 120px; }
.lbl { display: block; margin: 12px 0 4px; font-size: 13px; color: #585254; }
input[type=text], input[type=time] { font: inherit; padding: 10px; border: 1px solid #eae9ea; border-radius: 8px; width: 100%; margin-top: 4px; min-height: 44px; }
.row input[type=text] { flex: 1 1 auto; width: auto; min-width: 0; }
.row.nowrap button { flex-shrink: 0; }
.timein { width: 110px; flex: 0 0 auto; }
.counter { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.counter .name { flex: 1 1 auto; font-weight: 600; }
.counter .val { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.counter button { min-width: 44px; padding: 8px 10px; }
.photostrip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photostrip figure { margin: 0; width: 96px; }
.photostrip img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.photostrip figcaption { font-size: 11px; color: #585254; }
.dayhead { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; border-top: 1px solid #eae9ea; background: none; padding: 12px 0; font-weight: 600; }
.dayhead .n { font-weight: 400; color: #585254; font-size: 13px; }
.bar { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.bar .bl { flex: 0 0 45%; font-size: 13px; }
.bar .bt { flex: 1 1 auto; background: #f4efec; border-radius: 4px; height: 14px; overflow: hidden; }
.bar .bf { background: #73a89a; height: 100%; }
.bar .bv { flex: 0 0 42px; text-align: right; font-size: 13px; font-weight: 600; }
.note { background: #f4efec; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
audio { height: 36px; max-width: 180px; }
.pitch.hidden { display: none; }
.counter { gap: 6px; }
.counter .name { min-width: 0; font-size: 14px; }
.counter button { min-width: 40px; min-height: 40px; padding: 6px 8px; flex: 0 0 auto; }
.counter .val { flex: 0 0 auto; }

.actrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #eae9ea; }
.actrow:first-of-type { border-top: 0; }
.actrow .name { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.actrow .timein { width: 108px; flex: 0 0 auto; margin-top: 0; min-height: 44px; }
