.home-calendar{margin-top:24px;padding:28px;overflow:hidden}
.cal-heading,.cal-toolbar,.cal-nav,.cal-controls,.cal-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.cal-heading{margin-bottom:26px}.cal-heading h2{font-family:Georgia,serif;font-size:29px;font-weight:400;margin:9px 0}.cal-heading p{margin:0}.cal-heading p span{margin-left:8px;white-space:nowrap}.cal-heading>.button{white-space:nowrap}
.cal-toolbar{flex-wrap:wrap;margin-bottom:22px}.cal-nav{justify-content:flex-start;gap:7px;flex-wrap:wrap}.cal-nav h3{font-size:15px;font-weight:500;margin:0 0 0 10px}.cal-nav .icon-button{font-size:24px}.cal-nav .button{padding:8px 12px}.cal-controls{gap:10px}.cal-controls>input{width:145px;font-size:11px;background:var(--surface)}
.cal-switch{display:flex;border:1px solid var(--border);border-radius:9px;padding:3px;background:var(--surface-soft)}.cal-switch button{border:0;border-radius:6px;background:transparent;padding:8px 14px;color:var(--muted);font-size:12px}.cal-switch button[aria-pressed=true]{background:var(--accent);color:var(--surface)}
.cal-week-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:12px}.cal-week-grid{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));min-height:225px}.cal-week-day{min-width:0;display:flex;flex-direction:column;padding:9px 7px;border-right:1px solid var(--border)}.cal-week-day:last-child{border-right:0}.cal-selected{background:var(--surface-soft)}.cal-week-items{flex:1;padding:10px 0;display:flex;flex-direction:column;gap:6px}.cal-open-day{font-size:10px;color:var(--muted);text-align:center;margin-top:22px}
.cal-date{position:relative;display:flex;align-items:center;gap:8px;flex-direction:column;width:100%;border:0;background:transparent;color:var(--text);padding:8px;border-radius:8px}.cal-date>span{font-size:10px;color:var(--muted)}.cal-date>strong{display:flex;align-items:center;justify-content:center;border-radius:50%;width:30px;height:30px;font-size:16px;font-weight:500}.cal-date.cal-today>strong{background:var(--accent);color:var(--surface)}.cal-date[aria-current=date]{box-shadow:inset 0 0 0 1px var(--accent)}
.cal-journal-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent)}.cal-date>.cal-journal-dot{position:absolute;top:7px;right:8px}
.cal-item{display:flex;flex-direction:column;gap:5px;text-align:left;color:var(--text);background:var(--accent-soft);border:0;border-left:3px solid var(--fill);border-radius:6px;padding:12px 14px;width:100%;min-width:0}.cal-item-time{font-size:11px;color:var(--accent);white-space:normal}.cal-item strong{font-size:13px;font-weight:500;overflow-wrap:anywhere;line-height:1.5}.cal-item-meta{font-size:10px;color:var(--muted)}.cal-item.cal-task{background:var(--surface-soft);border-left-color:#839ac5}.cal-item.cal-person{background:var(--surface-soft);border-left-color:#ca9b7c}.cal-item.cal-done strong{text-decoration:line-through;color:var(--muted)}.cal-item.cal-compact{padding:7px 7px;gap:3px}.cal-compact .cal-item-time{font-size:9px}.cal-compact strong{font-size:11px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.cal-inline-add{display:block;border:1px dashed var(--border);border-radius:7px;background:transparent;color:var(--muted);padding:8px;font-size:12px;width:100%}.cal-inline-add:hover,.cal-date:hover{background:var(--accent-soft);color:var(--accent)}.cal-item:hover{filter:brightness(.97)}
.cal-weekdays,.cal-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.cal-weekdays{padding:0 0 12px;color:var(--muted);text-align:center;font-size:10px}.cal-month-grid{border-top:1px solid var(--border);border-left:1px solid var(--border);border-radius:8px;overflow:hidden}.cal-cell{min-height:126px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:6px;min-width:0}.cal-cell .cal-date{padding:2px;align-items:flex-start;min-height:30px}.cal-cell .cal-date>span{display:none}.cal-cell .cal-date>strong{font-size:12px;width:25px;height:25px}.cal-cell-items{display:grid;gap:4px;margin-top:6px}.cal-outside>.cal-date{opacity:.5}.cal-outside{background:var(--bg)}.cal-more{font-size:10px;color:var(--accent);padding:5px;border:0;background:transparent}.cal-mobile-count{display:none}
.cal-detail{margin-top:28px}.cal-detail-heading{margin-bottom:15px}.cal-detail-heading h3{font-size:16px;font-weight:500;margin:0}.cal-detail-heading h3 span{font-size:12px;font-weight:400;color:var(--muted);margin-left:10px}.cal-day-agenda{display:grid;gap:9px}.cal-empty{padding:20px 0 24px}.cal-empty strong{font-family:Georgia,serif;font-size:20px;font-weight:400}.cal-empty p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 0}.cal-legend{display:flex;flex-wrap:wrap;gap:18px;border-top:1px solid var(--border);margin-top:24px;padding-top:16px;font-size:10px;color:var(--muted)}.cal-legend span{display:flex;align-items:center;gap:6px}.cal-legend i{width:6px;height:6px;border-radius:50%;background:var(--fill)}.cal-legend .cal-task-dot{background:#839ac5}.cal-legend .cal-person-dot{background:#ca9b7c}.home-calendar button:focus-visible,.cal-week-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:1100px){.home-calendar{padding:21px}.cal-toolbar{align-items:flex-start}.cal-controls{flex-wrap:wrap}.cal-week-grid{grid-template-columns:repeat(7,minmax(105px,1fr))}}
@media(max-width:700px){.home-calendar{padding:17px;margin-top:20px}.cal-heading{gap:10px;margin-bottom:20px;align-items:center}.cal-heading h2{font-size:24px}.cal-heading .eyebrow{font-size:8px;letter-spacing:1px}.cal-heading .button{padding:10px;font-size:11px}.cal-heading p{font-size:10px;line-height:1.8}.cal-heading p span{display:block;margin:0}.cal-nav{width:100%}.cal-nav h3{flex:1;font-size:12px;margin-left:3px;line-height:1.7}.cal-controls{width:100%;justify-content:space-between}.cal-controls>input{width:137px;min-width:0;font-size:12px;padding:8px}.cal-switch button{font-size:11px;padding:8px 10px}.cal-detail{margin-top:22px}.cal-cell{min-height:68px;padding:3px}.cal-cell-items,.cal-more{display:none}.cal-cell .cal-date{min-height:30px}.cal-mobile-count{display:block;text-align:center;font-size:8px;color:var(--muted);padding-top:7px}.cal-legend{gap:12px;font-size:9px}.cal-detail-heading h3 span{display:block;margin:5px 0 0}.cal-week-scroll{margin:0 -1px}.cal-week-grid{grid-template-columns:repeat(7,125px)} }

/* Use the shared compact rhythm without shrinking calendar hit targets. */
.home-calendar{margin-top:14px;padding:18px}.cal-heading{margin-bottom:14px}.cal-toolbar{margin-bottom:14px}
.cal-detail{gap:18px;margin-top:18px}.cal-empty{padding:8px 0 12px}.cal-empty p{margin:0}
.cal-legend{margin-top:14px;padding-top:12px}
@media(max-width:700px){
 .home-calendar{margin-top:12px;padding:14px}.cal-heading{margin-bottom:12px}.cal-heading h2{margin:0;font-size:22px}
 .cal-toolbar{gap:10px;margin-bottom:12px}.cal-detail{gap:14px;margin-top:14px}
 
 .cal-legend{margin-top:12px;padding-top:10px;gap:10px}
 .cal-nav .icon-button{width:44px;height:44px}.cal-nav .button,.cal-switch button,.cal-inline-add{min-height:44px}
 .cal-controls>input{font-size:16px;min-height:44px;width:155px}
 .cal-detail-heading{margin-bottom:10px}
}

