.wec-calendar{ --wec-border:#e5e7eb; --wec-muted:#6b7280; --wec-text:#111827; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; width:100%; max-width:1000px; margin:0 auto; color:var(--wec-text); box-sizing:border-box; }
.wec-calendar *{ box-sizing:border-box; }
.wec-head{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.wec-head-left{ display:flex; align-items:center; gap:10px; }
.wec-nav-btn{ border:1px solid var(--wec-border); background:#fff; width:34px; height:34px; border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--wec-text); transition:background .15s; }
.wec-nav-btn:hover{ background:#f3f4f6; }
.wec-today-btn{ border:1px solid var(--wec-border); background:#fff; padding:7px 14px; border-radius:8px; cursor:pointer; font-size:13px; font-weight:500; color:var(--wec-text); }
.wec-today-btn:hover{ background:#f3f4f6; }
.wec-month-label{ position:relative; }
.wec-month-btn{ background:none; border:none; font-size:20px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:6px; color:var(--wec-text); padding:4px 6px; border-radius:6px; }
.wec-month-btn:hover{ background:#f3f4f6; }
.wec-month-btn .chev{ font-size:12px; color:var(--wec-muted); }
.wec-month-picker{ position:absolute; top:calc(100% + 6px); left:0; background:#fff; border:1px solid var(--wec-border); border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.08); padding:12px; display:none; gap:8px; z-index:20; }
.wec-month-picker.open{ display:flex; }
.wec-month-picker select{ border:1px solid var(--wec-border); border-radius:6px; padding:6px 8px; font-size:13px; }

.wec-legend{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:16px; }
.wec-legend-item{ display:flex; align-items:center; gap:7px; font-size:13px; cursor:pointer; user-select:none; padding:5px 10px; border-radius:20px; border:2px solid var(--wec-border); background:#fff; transition:opacity .15s; }
.wec-legend-item.wec-off{ opacity:.5; }
.wec-legend-checkbox{ width:14px; height:14px; margin:0; flex:0 0 auto; cursor:pointer; }

.wec-grid{ width:100%; border:1px solid var(--wec-border); border-radius:12px; overflow:hidden; background:#fff; }
.wec-grid-head{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-bottom:1px solid var(--wec-border); background:#fafafa; }
.wec-grid-head div{ min-width:0; padding:10px 8px; font-size:12px; font-weight:600; color:var(--wec-muted); text-transform:uppercase; letter-spacing:.03em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wec-grid-body{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.wec-cell{ min-width:0; min-height:104px; border-right:1px solid var(--wec-border); border-bottom:1px solid var(--wec-border); padding:8px 6px; overflow:hidden; }
.wec-cell:nth-child(7n){ border-right:none; }
.wec-cell.wec-out{ background:#fafafa; }
.wec-cell.wec-out .wec-daynum{ color:#c7cbd1; }
.wec-cell.wec-today .wec-daynum{ background:#111827; color:#fff; }
.wec-daynum{ font-size:14px; font-weight:600; color:#374151; width:26px; height:26px; display:flex; align-items:center; justify-content:center; border-radius:50%; margin-bottom:6px; flex:0 0 auto; }
.wec-bars{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.wec-bar{ max-width:100%; font-size:11px; line-height:1.5; color:#fff; padding:2px 7px; border-radius:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:default; position:relative; font-weight:500; }
.wec-empty-msg{ padding:40px; text-align:center; color:var(--wec-muted); }

.wec-tooltip{ position:fixed; background:#111827; color:#fff; font-size:12px; padding:7px 10px; border-radius:7px; pointer-events:none; z-index:1000; max-width:240px; box-shadow:0 6px 18px rgba(0,0,0,.2); display:none; line-height:1.4; }

@media (max-width:640px){
	.wec-cell{ min-height:70px; padding:6px 3px; }
	.wec-bar{ font-size:9px; padding:1px 3px; border-radius:4px; }
	.wec-daynum{ font-size:12px; width:20px; height:20px; margin-bottom:3px; }
	.wec-grid-head div{ font-size:10px; padding:6px 2px; }
	.wec-month-picker{ flex-wrap:wrap; }
	.wec-month-picker select{ min-width:0; flex:1 1 auto; }
}

@media (max-width:400px){
	.wec-cell{ min-height:56px; padding:4px 2px; }
	.wec-bar{ font-size:8px; padding:1px 2px; border-radius:3px; }
	.wec-daynum{ font-size:11px; width:18px; height:18px; }
}
