/* One calendar component for employee messages and personal planning. */
.tc-calendar{--tc-ink:var(--ink,#26352a);--tc-muted:var(--muted,#677563);--tc-line:var(--line,#e4e9e0);--tc-surface:var(--surface,#fff);--tc-soft:var(--surface-soft,#f3f6f1);--tc-accent:var(--accent,#2b553b);--tc-pale:var(--accent-soft,#e7efe3);background:var(--tc-surface);color:var(--tc-ink);border-radius:13px;padding:13px 12px 11px;font-size:12px;min-width:0;margin:0 4px;box-sizing:border-box}
.tc-calendar *{box-sizing:border-box}.tc-calendar button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.tc-calendar button:disabled{opacity:.35;cursor:default}.tc-calendar button:focus-visible{outline:2px solid var(--tc-accent);outline-offset:2px}.tc-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:8px}.tc-month-toggle{display:inline-flex;align-items:center;gap:5px;min-height:31px;padding:0 1px;text-align:left}.tc-month-toggle strong{font-size:12px;font-weight:650;white-space:nowrap}.tc-caret{font-size:15px;color:var(--tc-muted);line-height:1}.tc-controls{display:flex;align-items:center;gap:2px;flex-shrink:0}.tc-controls button{min-width:25px;min-height:31px;padding:3px 5px;border-radius:6px;font-size:11px}.tc-controls button:first-child,.tc-controls button:last-child{font-size:18px;font-weight:400}.tc-controls button:hover:not(:disabled),.tc-refresh:hover,.tc-more:hover{background:var(--tc-soft)}.tc-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;min-width:0}.tc-day{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:9px;min-width:0;min-height:56px;gap:5px;padding:7px 0 4px;position:relative}.tc-day:hover:not(:disabled){background:var(--tc-soft)}.tc-day.is-selected,.tc-day.is-selected:hover{background:var(--tc-ink);color:var(--tc-surface)}.tc-week-name{font-size:11px;color:var(--tc-muted);line-height:1.2}.tc-day strong{font-size:15px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}.tc-date-count{min-height:11px;height:11px;min-width:11px;font-size:11px;font-weight:600;line-height:11px;text-align:center;color:var(--tc-muted)}.tc-date-count.has-pending{border-radius:6px;background:var(--tc-pale);color:var(--tc-accent);padding:0 3px}.tc-date-count.has-completed{font-size:14px;color:var(--tc-muted)}.tc-day.is-selected .tc-week-name{color:var(--tc-surface);opacity:.78}.tc-day.is-selected .tc-date-count{color:var(--tc-surface);background:none}.tc-day.is-today:not(.is-selected){color:var(--tc-accent);background:var(--tc-pale)}.tc-day.is-other-month:not(.is-selected){color:var(--tc-muted);opacity:.58}.tc-week-heading{text-align:center;font-size:11px;font-weight:400;color:var(--tc-muted);padding:6px 0 5px;line-height:1.3}.tc-month-grid .tc-day{min-height:39px;gap:2px;padding:4px 0 2px;border-radius:7px}.tc-month-grid .tc-day strong{font-size:12px}.tc-month-grid .tc-date-count{height:10px;min-height:10px;line-height:10px;font-size:11px}.tc-summary{display:flex;gap:5px;justify-content:space-between;align-items:center;margin-top:9px;padding-top:9px;border-top:1px solid var(--tc-line)}.tc-summary button{display:flex;gap:4px;align-items:center;min-height:28px;padding:4px 5px;border-radius:5px;font-size:11px;color:var(--tc-muted);white-space:nowrap}.tc-summary button.active{background:var(--tc-soft);color:var(--tc-ink)}.tc-summary button.has-overdue b{color:#a85e45}.tc-summary b{font-size:11px;font-weight:600;line-height:1;min-width:12px;text-align:center;font-variant-numeric:tabular-nums}.tc-tasks-head{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:11px}.tc-tasks-head h3{margin:0;font-size:11px;font-weight:600;color:var(--tc-muted);line-height:1.5}.tc-refresh{font-size:11px!important;color:var(--tc-muted)!important;min-height:26px;padding:3px 5px;border-radius:4px}.tc-task-list{margin-top:1px}.tc-task{display:flex;width:100%;align-items:flex-start;gap:6px;min-height:42px;padding:8px 0;text-align:left;border-bottom:1px solid var(--tc-line)!important}.tc-task:last-child{border-bottom:0!important}.tc-task:hover .tc-task-copy strong{color:var(--tc-accent)}.tc-task-state{height:5px;width:5px;flex:0 0 auto;border-radius:50%;background:var(--tc-accent);margin-top:5px}.tc-task.is-done .tc-task-state{background:var(--tc-muted);opacity:.55}.tc-task.is-done .tc-task-copy strong{color:var(--tc-muted)}.tc-task-copy{min-width:0;flex:1}.tc-task-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:11px;font-weight:500;line-height:1.55}.tc-task-copy small{display:block;font-size:11px;font-weight:400;color:var(--tc-muted);line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.tc-task-status{font-size:11px;line-height:1.5;color:var(--tc-muted);flex:0 0 auto;white-space:nowrap;padding-top:1px}.tc-task-status.is-overdue{color:#a85e45}.tc-empty{font-size:11px;line-height:1.7;color:var(--tc-muted);margin:9px 0 3px}.tc-error{font-size:11px;line-height:1.65;margin:6px 0;color:#a35040}.tc-error small{display:block;color:var(--tc-muted);font-size:11px;margin-top:3px}.tc-more{font-size:11px!important;color:var(--tc-accent)!important;min-height:27px;padding:5px 0;margin-top:2px;width:100%;text-align:left}.tc-calendar-note{font-size:11px;line-height:1.65;color:var(--tc-muted);margin:8px 0 0}.tc-calendar-note span{display:block;margin-top:2px}.tc-loading{font-size:11px;line-height:1.8;padding:18px 0;text-align:center;color:var(--tc-muted)}
/* The same component gains space on a personal-workspace page. */
.tc-calendar.tc-calendar-wide{padding:19px;max-width:none}.tc-calendar-wide .tc-month-toggle strong{font-size:16px}.tc-calendar-wide .tc-controls button{min-width:35px;min-height:35px;font-size:12px}.tc-calendar-wide .tc-day{min-height:65px}.tc-calendar-wide .tc-month-grid .tc-day{min-height:62px}.tc-calendar-wide .tc-task-copy strong{font-size:13px}.tc-calendar-wide .tc-task-copy small,.tc-calendar-wide .tc-task-status,.tc-calendar-wide .tc-calendar-note{font-size:11px}.tc-calendar-wide .tc-summary button,.tc-calendar-wide .tc-summary b,.tc-calendar-wide .tc-tasks-head h3,.tc-calendar-wide .tc-refresh{font-size:12px!important}.tc-calendar-wide .tc-summary{justify-content:flex-start;gap:12px}.tc-calendar-wide .tc-empty{font-size:12px}.tc-calendar-wide .tc-week-name,.tc-calendar-wide .tc-week-heading{font-size:12px}.tc-calendar-wide .tc-task{padding:12px 0}
@media(max-width:760px){.tc-calendar{padding:14px;margin:0 3px;border-radius:15px}.tc-calendar-head{margin-bottom:5px}.tc-month-toggle,.tc-controls button{min-height:44px}.tc-month-toggle strong{font-size:15px}.tc-controls button{min-width:32px;padding:4px;font-size:12px}.tc-controls button:first-child,.tc-controls button:last-child{font-size:22px}.tc-day{min-height:65px;gap:7px;border-radius:10px}.tc-day strong{font-size:18px}.tc-week-name,.tc-week-heading{font-size:11px}.tc-date-count{font-size:11px;min-height:12px;height:12px;line-height:12px}.tc-month-grid .tc-day{min-height:44px;gap:3px;padding:5px 0 2px}.tc-month-grid .tc-day strong{font-size:14px}.tc-summary{gap:5px;margin-top:10px;padding-top:8px}.tc-summary button{min-height:44px;font-size:12px;padding:5px}.tc-summary b{font-size:11px}.tc-tasks-head{margin-top:9px}.tc-tasks-head h3{font-size:12px}.tc-refresh{min-height:38px;font-size:12px!important}.tc-task{min-height:54px;padding:10px 0;gap:8px}.tc-task-copy strong{font-size:13px}.tc-task-copy small{font-size:11px}.tc-task-status{font-size:11px;line-height:1.7}.tc-task-state{margin-top:7px}.tc-empty,.tc-error{font-size:12px}.tc-error small{font-size:11px}.tc-more{min-height:44px;font-size:12px!important}.tc-calendar-note{font-size:11px;line-height:1.75;margin-top:7px}.tc-loading{font-size:12px}}
html[data-theme=dark] .tc-calendar{--tc-ink:var(--ink,#e7ebe5);--tc-muted:var(--muted,#a1aaa0);--tc-line:var(--line,#30372e);--tc-surface:var(--surface,#1e221e);--tc-soft:var(--surface-soft,#252a25);--tc-accent:var(--accent,#accaa0);--tc-pale:var(--accent-soft,#31412e)}html[data-theme=dark] .tc-task-status.is-overdue,html[data-theme=dark] .tc-summary button.has-overdue b,html[data-theme=dark] .tc-error{color:#e9a38e}

@media(max-width:760px){.tc-controls button{min-width:44px}.tc-week-heading{min-height:27px}.tc-date-grid{gap:1px}}
@media(max-width:380px){.tc-calendar{margin:0;padding-left:7px;padding-right:7px}.tc-date-grid{gap:0}.tc-month-toggle{gap:3px}.tc-month-toggle strong{font-size:14px}.tc-controls button{min-width:40px}}
