.p266-history{min-width:0;max-width:100%}.p266-head h1{font-size:34px;overflow-wrap:anywhere}.p266-head>p{margin:10px 0 20px;line-height:1.6}.p266-history form{padding:18px;border:1px solid var(--line);border-radius:22px;background:var(--card);margin-bottom:18px}.p266-history .two{grid-template-columns:repeat(2,minmax(0,1fr))}.p266-history label,.p266-history select,.p266-history input{min-width:0;max-width:100%;width:100%}.p266-history .acts{flex-wrap:wrap}.p266-history .acts>.btn{min-height:44px;white-space:normal}.p266-summary{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.p266-help{font-size:13px;line-height:1.65;color:var(--ink2);margin-bottom:20px}.p266-dose{display:flex;align-items:center;gap:20px;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px;margin:12px 0;min-width:0}.p266-dose-info{min-width:0;flex:1}.p266-dose h2{font-size:24px;margin:8px 0;overflow-wrap:anywhere;line-height:1.3}.p266-dose p{margin:6px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.p266-dose .p266-log{font-size:12px}.p266-dose>.btn{flex:0 1 220px;max-width:100%;white-space:normal;min-height:46px;text-align:center;justify-content:center}.p266-dose.given{border-color:#cbdcc6}.p266-progress{display:flex;flex-direction:column;gap:5px;background:var(--sage-soft);border-radius:18px;padding:15px 18px;overflow-wrap:anywhere}.p266-progress b{font-size:20px}.p266-progress span{font-size:13px;color:var(--ink2)}.p266-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;flex-wrap:wrap}.p266-pagination span{font-size:12px}.p266-history-link{margin:16px 0}.p266-history-link>.btn{white-space:normal;max-width:100%;min-height:44px;text-align:center}
@media(max-width:599px){.p266-head h1{font-size:30px}.p266-history form{padding:14px}.p266-history .two{grid-template-columns:minmax(0,1fr)}.p266-dose{flex-direction:column;align-items:stretch;gap:10px;padding:15px}.p266-dose>.btn{flex:none;width:100%;font-size:13px}.p266-dose h2{font-size:22px}.p266-history .acts>.btn{flex:1 1 140px}.p266-pagination>.btn{padding:10px 12px;min-height:44px;font-size:13px}}
@media(max-width:899px){.p266-history,.p266-history section,.p266-history article,.p266-history form{min-width:0}.p266-history select{text-overflow:ellipsis}.p266-history [type=date]{appearance:auto;-webkit-appearance:auto;box-sizing:border-box}.p266-history-link{padding-bottom:4px}}

.p266-filter-panel{margin:16px 0}.p266-filter-panel>summary{cursor:pointer;min-height:48px;padding:13px 16px;border:1px solid var(--line);border-radius:16px;background:var(--card);font-size:14px;font-weight:650;overflow-wrap:anywhere}.p266-filter-panel[open]>summary{margin-bottom:10px}.p266-progress,.p266-summary{scroll-margin-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
