#main-system #home-dashboard .dashboard-aligned-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.45fr);gap:24px;align-items:stretch}
#main-system #home-dashboard .dashboard-aligned-grid>div{width:auto;min-width:0;padding:0}
#main-system #home-dashboard .dashboard-aligned-grid>.col-12{grid-column:1/-1}
#main-system #home-dashboard .dashboard-aligned-grid>div>.card{height:100%!important;margin:0;display:flex;flex-direction:column;min-width:0;transform:none!important}
#main-system #home-dashboard .dashboard-aligned-grid>div>.card>.card-header{min-height:68px;height:68px;flex:none;box-sizing:border-box;gap:8px;padding:12px 16px}
#main-system #home-dashboard .dashboard-aligned-grid h5{font-size:15px;line-height:1.4}
#main-system #home-dashboard .dashboard-aligned-grid>.col-12>.card>.card-header{height:auto;min-height:54px}
#main-system #home-dashboard .workspace-calendar-card>.card-body{flex:1;min-width:0}
@media(max-width:1199px){#main-system #home-dashboard .dashboard-aligned-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#main-system #home-dashboard .dashboard-calendar-slot{grid-column:1/-1}}
@media(max-width:599px){#main-system #home-dashboard .dashboard-aligned-grid{grid-template-columns:minmax(0,1fr);gap:16px}}
.he-calendar{min-width:0;color:var(--m-text);font-family:"Segoe UI","Microsoft YaHei",sans-serif}
.he-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;font-size:13px;color:var(--m-text-muted)}
.he-calendar button{font:inherit;cursor:pointer;color:inherit}
.he-calendar-today,.he-calendar-add{border:1px solid var(--m-border);border-radius:6px;background:var(--m-bg-card);padding:5px 10px;font-size:14px!important}
.he-calendar-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:0 10px 10px}
.he-calendar-week{text-align:center;font-size:13px;line-height:28px;color:var(--m-text-muted)}
.he-calendar .he-calendar-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:56px;padding:3px 2px;border:1px solid transparent;background:transparent;border-radius:8px;line-height:1.3;overflow:hidden}
.he-calendar-number{font-size:16px;font-weight:650}
.he-calendar-lunar{display:block;max-width:100%;font-size:12px;color:var(--m-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.he-calendar-lunar.festival{color:var(--m-accent)}
.he-calendar-count{font-size:12px;min-height:16px;color:var(--m-accent)}
.he-calendar .he-calendar-cell.other-month{opacity:.48}
.he-calendar .he-calendar-cell.today{border-color:var(--m-accent)}
.he-calendar .he-calendar-cell.selected{background:var(--m-fill);box-shadow:inset 0 0 0 1px var(--m-accent)}
.he-calendar button:focus-visible{outline:2px solid var(--m-accent);outline-offset:1px}
.he-calendar .he-calendar-cell:hover{background:var(--m-fill)}
.he-calendar-detail{border-top:1px solid var(--m-border);padding:12px 14px}
.he-calendar-detail-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.he-calendar-detail-heading strong{font-size:14px}
.he-calendar-description{font-size:13px;color:var(--m-text-muted);line-height:1.6;margin:8px 0;overflow-wrap:anywhere}
.he-calendar-tasks{max-height:150px;overflow:auto;scrollbar-gutter:stable;min-height:34px}
.he-calendar-empty{font-size:14px;color:var(--m-text-muted);margin:8px 0}
.he-calendar .he-calendar-task{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:9px 0;background:transparent;border:0;border-bottom:1px solid var(--m-border)}
.he-calendar-task>span{font-size:14px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
.he-calendar-task small{font-size:12px;white-space:nowrap;color:var(--m-text-muted)}
.he-calendar-task.done>span{text-decoration:line-through;color:var(--m-text-muted)}
.he-calendar-credit{display:inline-block;font-size:12px;color:var(--m-text-muted);margin-top:8px}
.he-calendar-day-dialog{width:min(520px,calc(100vw - 32px));max-height:80vh;padding:20px;border:1px solid var(--m-border);border-radius:14px;background:var(--m-bg-card,#fff);color:var(--m-text,#25334b);box-shadow:0 20px 60px #0003}
.he-calendar-day-dialog::backdrop{background:#17233c66}
.he-calendar-day-dialog .he-calendar-tasks{max-height:50vh}
.he-calendar-day-dialog .he-calendar-description{white-space:normal}
.he-calendar-detail>.he-calendar-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.he-calendar-day-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:599px){.he-calendar .he-calendar-cell{min-height:62px}.he-calendar-month{padding:0 6px 8px;gap:2px}}
@media(max-width:380px){
  #main-system #home-dashboard .dashboard-aligned-grid .workspace-calendar-card>.card-header{height:auto!important;min-height:104px!important;flex-wrap:wrap}
  #main-system #home-dashboard .workspace-calendar-card>.card-header>h5{flex-basis:100%;white-space:nowrap}
  #main-system #home-dashboard .workspace-calendar-card>.card-header>.input-group{width:100%!important}
}
