.goal-list li{padding:0}.goal-list li:before{display:none}.goal-link{width:100%;border:0;background:none;color:var(--ink);display:flex;align-items:center;justify-content:space-between;padding:17px 0;text-align:left;font:inherit}.goal-link b{font-size:16px;font-weight:600}.goal-link small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.goal-link em{font-style:normal;color:#aa6b49;font-size:23px}#goalDialog{overflow:hidden;max-height:calc(100dvh - env(safe-area-inset-top) - 12px)}.goal-sheet{display:flex;flex-direction:column;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);padding-bottom:0}.goal-sheet>.grab,.goal-sheet>.sheet-head{flex-shrink:0}.goal-sheet>.sheet-head{min-height:48px;border-bottom:1px solid var(--line);grid-template-columns:60px minmax(0,1fr) 60px}#goalBody{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 0 calc(24px + env(safe-area-inset-bottom));font-size:13px;line-height:1.7}.goal-purpose{margin:0 0 14px;color:var(--muted)}.goal-progress{padding:15px;background:#eee0cf;border-radius:16px}.goal-progress b,.goal-progress span{display:block}.goal-progress span{font-size:11px;color:var(--muted)}.goal-section{margin:22px 0}.goal-section h3{font-size:16px;margin:0 0 10px}.goal-section p{color:var(--muted)}.goal-section ul{padding-left:20px}.goal-section li{margin:9px 0}.goal-section details{padding:12px 0;border-top:1px solid var(--line)}.goal-section summary{cursor:pointer;color:#8d5b3b}.goal-history-row{display:block;width:100%;padding:14px;margin:9px 0;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:15px;text-align:left;font:inherit}.goal-history-row b{font-size:13px}.goal-history-row p{font-size:12px;margin:7px 0}.goal-history-row span,.goal-note{font-size:11px;color:var(--muted)}.goal-discuss{border:0;border-radius:15px;padding:15px;width:100%;background:var(--green);color:white;font:inherit}
.goal-sheet,.day-sheet,.session-sheet{height:min(82dvh,760px)!important;max-height:calc(100dvh - env(safe-area-inset-top) - 72px)!important;overflow:hidden}
#goalDialog,#dayDialog,#sessionDialog{margin: auto auto 0;max-height:calc(100dvh - env(safe-area-inset-top) - 72px)}
#goalBody,#dayDetailBody,#sessionBody{flex:1 1 auto;min-height:0;scroll-padding-bottom:24px}
dialog .sheet-head button:focus{outline:none}dialog .sheet-head button:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:8px}
