/* One outer glass layer; controls and day contents stay solid. */
.history-filters{padding:18px;margin:0 0 18px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.history-filters .field{margin-bottom:12px}.history-filters .field label{font-size:12px;display:block;margin-bottom:6px}.history-filters input,.history-filters select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.history-filter-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.history-filter-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.history-filter-bottom .note{margin:0}.history-filter-bottom button{min-height:44px}
#historyAdvanced{margin:0 0 12px}#historyAdvanced summary{font-size:13px;min-height:44px;color:var(--text)}#historyAdvanced[open] summary{margin-bottom:10px}
.workflow-error{font-size:13px;color:var(--danger);line-height:1.5;white-space:normal;overflow-wrap:anywhere}.workflow-error:not(:empty){margin:12px 0}.workflow-caption{line-height:1.6;overflow-wrap:anywhere;margin:0 0 16px}
.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:16px}.history-pagination[hidden]{display:none}.history-pagination button{min-height:44px}.history-pagination span{font-size:12px;color:var(--muted)}
.weekly-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.weekly-day:last-child{grid-column:auto}
#historyList{background:transparent!important;border:none;overflow:visible;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}#historyList .history-day{margin-bottom:14px;overflow:hidden}#historyList .history-day-head{background:var(--surface2)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}#historyList .chip-btn{min-height:44px;white-space:normal}
#weeklyGrid .weekly-slot{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px;margin:10px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}#weeklyGrid .weekly-start{grid-column:1/-1;border:0;border-radius:0;padding:12px;font-size:14px}#weeklyGrid .weekly-manage{font-size:12px;text-align:left;border:0;border-radius:0;background:var(--surface2);padding:10px}#weeklyGrid .weekly-unassign{width:44px;min-width:44px;min-height:44px;border:0;border-radius:0;background:var(--surface2)}
.plan-card-actions{flex-wrap:wrap;gap:4px}.plan-card-actions button{min-width:44px;padding-left:8px;padding-right:8px}.plan-line .plan-ex-name{grid-column:1/-1;grid-row:1}.plan-line .plan-ex-prescription{grid-column:1/-1;grid-row:3}.plan-line{grid-template-columns:minmax(0,1fr) repeat(3,44px);gap:6px;padding-bottom:10px;border-bottom:1px solid var(--line)}.plan-line .plan-ex-sets{grid-column:1;grid-row:2}.plan-line button{min-width:44px;min-height:44px;grid-row:2}.plan-line [data-move="-1"]{grid-column:2}.plan-line [data-move="1"]{grid-column:3}.plan-line [data-remove]{grid-column:4}
@media(max-width:600px){.weekly-grid{grid-template-columns:1fr}.weekly-day:last-child{grid-column:auto}.template-grid{grid-template-columns:1fr}.history-filters{padding:16px}.history-filter-dates{gap:8px}}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 :root[data-glass=on][data-theme] :is(.history-filters,#historyList .history-day,#historyList>.empty){background:var(--glass-base);border-color:var(--glass-edge);backdrop-filter:blur(var(--glass-blur,16px)) saturate(125%)!important;-webkit-backdrop-filter:blur(var(--glass-blur,16px)) saturate(125%)!important;box-shadow:inset 0 1px #ffffff15}
}
@media(prefers-reduced-transparency:reduce){:root[data-glass=on][data-theme] :is(.history-filters,#historyList .history-day,#historyList>.empty){background:var(--surface);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
