.workday-panel {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid #ddd8fb;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8f6ff, #fff 70%);
  box-shadow: 0 8px 28px #312e8108;
  min-width: 0;
}
.workday-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.workday-heading h2 { margin: 0 0 5px; color: #282244; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.workday-heading p, .workday-footnote { margin: 0; color: #646079; font-size: .82rem; line-height: 1.6; }
.workday-heading > div { min-width: 0; }
.workday-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.workday-filter, .workday-reset { font: inherit; cursor: pointer; text-align: left; background: #fff; color: #39334f; border: 1px solid #dcd9e9; border-radius: 13px; }
.workday-filter { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px 14px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.workday-filter-label { font-weight: 700; font-size: .91rem; }
.workday-filter-count { font-size: 1.8rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.workday-filter small { color: #666073; font-size: .71rem; line-height: 1.5; }
.workday-filter-overdue .workday-filter-count { color: #b42335; }
.workday-filter-urgent .workday-filter-count { color: #aa4219; }
.workday-filter-review .workday-filter-count { color: #5f40ad; }
.workday-filter-today .workday-filter-count { color: #1f638a; }
.workday-filter:hover, .workday-reset:hover { border-color: #7d66d9; background: #faf8ff; }
.workday-filter:focus-visible, .workday-reset:focus-visible, .workday-task-link:focus-visible { outline: 3px solid #8d74ed; outline-offset: 3px; }
.workday-selected, .workday-selected:hover { border-color: #7257ce; background: #f0ebff; box-shadow: inset 0 0 0 1px #7257ce; }
.workday-reset { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; flex-shrink: 0; font-size: .83rem; font-weight: 600; min-height: 44px; }
.workday-reset span { padding: 1px 6px; border-radius: 7px; background: #e8e0ff; color: #4e368c; }
.workday-footnote { margin-top: 12px; font-size: .74rem; }
.workday-tools { display: flex; gap: 10px; margin: 18px 0 10px; min-width: 0; }
.workday-tools label { flex: 1; min-width: 0; }
.workday-tools input, .workday-tools select { box-sizing: border-box; min-height: 44px; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #dcd9e9; border-radius: 10px; background: #fff; color: #39334f; font: inherit; }
.workday-tools select { width: min(35%, 250px); }
.workday-result-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: #4b4363; font-size: .86rem; margin: 14px 0 10px; }
.workday-result-summary p { margin: 0; }
.workday-task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.workday-task-list:focus-visible { outline: 3px solid #8d74ed; outline-offset: 3px; }
.workday-task-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #e7e4ef; border-radius: 12px; text-decoration: none; color: #332c49; background: #fff; }
.workday-task-link:hover { background: #faf8ff; border-color: #a994e7; }
.workday-task-content { min-width: 0; }
.workday-task-title { display: block; font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }
.workday-task-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; color: #6a627a; font-size: .75rem; line-height: 1.6; margin-top: 4px; overflow-wrap: anywhere; }
.workday-task-open { white-space: nowrap; font-size: .78rem; color: #5c438e; flex-shrink: 0; }
.workday-detail-link { color: inherit; text-decoration: underline; text-decoration-color: #b7a8df; text-underline-offset: 3px; }
.workday-detail-link:hover { color: #6547af; }
.workday-detail-link:focus-visible { outline: 3px solid #8d74ed; outline-offset: 3px; border-radius: 3px; }
.workday-empty { padding: 24px 14px; margin: 0; border: 1px dashed #d7d0e9; border-radius: 12px; color: #6a627a; text-align: center; line-height: 1.7; background: #fff; }
.workday-loading { margin: 0; color: #6a627a; }
.workday-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .workday-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .workday-panel { padding: 16px; border-radius: 17px; }
  .workday-heading { flex-wrap: wrap; gap: 10px; }
  .workday-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .workday-filter { padding: 11px; }
  .workday-filter:last-child { grid-column: 1 / -1; }
  .workday-filter:last-child .workday-filter-count { position: absolute; right: 14px; top: 12px; }
  .workday-tools { flex-direction: column; }
  .workday-tools select { width: 100%; }
  .workday-task-link { align-items: flex-start; }
  .workday-task-open { font-size: .72rem; }
}
@media (max-width: 389px) {
  .workday-panel { padding: 12px; }
  .workday-filter-label { font-size: .82rem; }
  .workday-filter small { font-size: .67rem; }
  .workday-filter-count { font-size: 1.5rem; }
  .workday-task-link { flex-direction: column; gap: 6px; padding: 11px; }
  .workday-task-list { max-height: 380px; }
}
