.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px;order:2;flex-shrink:0}.header-actions .profile-button{margin-left:0}.header-actions:has(#profile-button[hidden]):has(#work-calendar-button[hidden]){display:none}#work-calendar-button{width:44px;height:44px;color:var(--teal);border:1px solid var(--line);border-radius:10px}#work-calendar-button[aria-current=page]{background:#e2efeb;border-color:#8ab4aa}
.work-calendar{max-width:1440px;margin:0 auto;padding:4px 0 32px;color:var(--ink)}.wc-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.wc-heading .eyebrow{font-size:11px;letter-spacing:.18em;margin:0 0 6px}.wc-heading h1{font-size:28px;margin:0 0 8px}.wc-heading p:last-child{font-size:13px;color:#617976;margin:0;line-height:1.6}.wc-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.wc-month-nav{display:flex;align-items:center;gap:12px}.wc-month-nav h2{font-size:22px;font-variant-numeric:tabular-nums;margin:0;min-width:148px;text-align:center}.wc-month-nav>.icon-button{font-size:30px;min-width:44px;min-height:44px}.wc-filters{display:flex;align-items:center;gap:20px;font-size:13px}.wc-filters select{font:inherit;color:var(--ink);padding:10px 12px;border:1px solid #bdcecc;border-radius:8px;background:#fff;min-height:44px;max-width:100%}.wc-completed{display:flex;align-items:center;gap:7px;white-space:nowrap;min-height:44px}.wc-completed input{width:18px;height:18px;accent-color:var(--teal)}.wc-status{font-size:12px;color:#627b77;min-height:20px;line-height:1.7;margin:12px 0}.wc-status[role=alert]{color:#9b4d24}.wc-month{border:1px solid #d1dfdb;border-radius:12px;overflow:hidden;background:white}.wc-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#f1f5f3;border-bottom:1px solid #d1dfdb}.wc-weekdays span{text-align:center;padding:12px 0;font-size:12px;color:#566d66;font-weight:600}.wc-weekdays .wc-weekend{color:#a07065}.wc-week{position:relative;min-height:calc(64px + var(--wc-lanes)*28px);border-bottom:1px solid #e0e8e4}.wc-week:last-child{border-bottom:0}.wc-days{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.wc-day{min-width:0;border-right:1px solid #e0e8e4;position:relative;padding:3px 5px}.wc-day:last-child{border-right:0}.wc-outside{background:#f8faf9}.wc-outside .wc-date{color:#9daea6}.wc-selected{background:#edf5f1;box-shadow:inset 0 0 0 1px #93b9ab}.wc-date{font-size:13px;min-width:36px;height:36px;border-radius:50%;color:#385c4d}.wc-today{background:#245c4c;color:#fff!important;font-weight:700}.wc-more{position:absolute;bottom:1px;left:0;width:100%;min-height:23px;text-align:left;padding:0 8px;font-size:11px;color:#406759}.wc-more:not(:has(span:not(:empty))){display:none}.wc-bars{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:24px;gap:4px 0;padding:40px 0 24px;pointer-events:none}.wc-event{pointer-events:auto;display:flex;align-items:center;gap:5px;min-width:0;margin:0 3px;padding:3px 7px;border:1px solid #d3e2d8;border-left:3px solid #558a6d;border-radius:5px;background:#e5f0e8;color:#224e39;text-align:left;line-height:1.4;font-size:12px}.wc-event:hover{filter:brightness(.96)}.wc-event-kind{font-size:9px;flex-shrink:0;opacity:.8}.wc-event-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.wc-task{border-left-color:#698ead;background:#eaf1f8;border-color:#d6e3ef;color:#365c7d}.wc-event.wc-task{border-left-color:#698ead}.wc-done{opacity:.6}.wc-done .wc-event-title,.wc-done strong{text-decoration:line-through}.wc-late{margin-left:auto;color:#a14429;font-weight:700}.wc-continues-left{border-radius:0 5px 5px 0;border-left-width:1px;margin-left:0}.wc-continues-right{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}.wc-legend{display:flex;flex-wrap:wrap;gap:10px 20px;margin:16px 0 28px;font-size:11px;color:#678075}.wc-legend>span{display:flex;align-items:center;gap:6px}.wc-legend>span:last-child{margin-left:auto}.wc-legend i{width:8px;height:8px;border-radius:2px;background:#558a6d}.wc-legend .wc-task-dot{background:#698ead}.wc-agenda h2{font-size:18px;margin:0 0 14px}.wc-agenda-item{display:flex;align-items:center;gap:16px;text-align:left;width:100%;border:1px solid #d4e2db;border-left:3px solid #558a6d;border-radius:8px;padding:16px;margin-bottom:10px;background:white}.wc-agenda-item.wc-task{border-left-color:#698ead}.wc-agenda-main{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.wc-agenda-main small{font-size:11px;color:#647d71}.wc-agenda-main strong{font-size:14px;overflow-wrap:anywhere;color:var(--ink)}.wc-agenda-main>span{font-size:12px;color:#647d71;line-height:1.6}.wc-state{font-size:11px;white-space:nowrap;color:#647d71}.wc-empty{font-size:13px;color:#6c8279;background:#f0f5f2;padding:24px;border-radius:10px;line-height:1.8}.wc-mobile{display:none}.work-calendar button:focus-visible{outline:2px solid #255c4c;outline-offset:2px}.work-calendar button:disabled{opacity:.35;cursor:default}
@media(max-width:739px){.header-actions{gap:6px}.work-calendar{padding-top:8px}.wc-heading{margin-bottom:20px;align-items:flex-start}.wc-heading h1{font-size:23px}.wc-heading p:last-child{font-size:11px}.wc-heading>.secondary-button{padding:8px 12px;font-size:12px;min-height:44px}.wc-toolbar{gap:8px}.wc-month-nav{width:100%;gap:4px}.wc-month-nav h2{font-size:20px;min-width:0;flex:1}.wc-month-nav .today-button{margin-left:8px}.wc-filters{width:100%;justify-content:space-between;gap:8px;font-size:12px}.wc-filters select{font-size:16px;padding:8px;max-width:185px}.wc-status{font-size:11px;margin:10px 0;min-height:20px}.wc-weekdays span{padding:9px 0;font-size:11px}.wc-week{min-height:105px}.wc-day{padding:1px}.wc-date{font-size:12px;min-width:34px;height:34px}.wc-bars{padding:36px 0 23px;grid-auto-rows:20px;gap:3px 0}.wc-event{font-size:10px;padding:2px 3px;gap:2px;margin:0 1px;border-left-width:2px}.wc-event-kind{display:none}.wc-extra-lane,.wc-desktop{display:none}.wc-mobile{display:inline}.wc-more{font-size:10px;min-height:24px;padding:0 3px}.wc-legend{margin-bottom:22px;gap:8px 14px;font-size:10px}.wc-legend>span:last-child{margin:0;width:100%}.wc-agenda-item{gap:10px;padding:12px}.wc-agenda-main strong{font-size:13px}.wc-state{font-size:10px}}

/* Independent appointments and calendar entry. */
.wc-event.wc-event{touch-action:manipulation}.wc-event.wc-event[data-wc-route^="event/"]{background:#e9edf9;color:#30467d;border-left-color:#687bbc}.wc-agenda-item.wc-event{background:#f1f3fc;border-left-color:#687bbc;display:flex;font-size:inherit;grid-column:auto;grid-row:auto}
.wc-day{position:relative}.wc-date{position:relative;z-index:2}.wc-more{z-index:2}.wc-add-day{position:absolute;inset:0;background:transparent;border:0;cursor:pointer;border-radius:0;z-index:0}.wc-add-day:hover{background:#dceee766}.wc-bars{z-index:1}.wc-more:has(span:empty):not(:has(span:not(:empty))){pointer-events:none}
.ce-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.ce-heading h1{font-size:26px;overflow-wrap:anywhere}.ce-heading h2{margin:0}.ce-detail{max-width:900px;margin:auto;padding:16px 0 40px}.ce-detail p{overflow-wrap:anywhere}.ce-when{font-size:16px;font-weight:650}.ce-links{margin:24px 0;padding:20px;background:white;border:1px solid #d5e1df;border-radius:12px}.ce-links h2{font-size:19px;margin-top:0}.ce-links details,.ce-classification{margin:16px 0}.ce-links summary,.ce-detail>div>details summary,.ce-classification summary{cursor:pointer;font-weight:650;min-height:40px;padding:8px 0}.ce-card-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border-top:1px solid #e0e8e6;padding:12px 0}.ce-card-row small{flex:1 1 100%;color:#63736f}.ce-card-row .work-related{flex:1;margin:0}.ce-dates{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.ce-dialog .gw-field:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.ce-dialog input[type=checkbox]{width:20px;height:20px}.ce-dialog textarea{width:100%;resize:vertical;min-height:80px}.ce-dialog .gw-field[hidden]{display:none}.ce-dialog form>button{margin:12px 0}.ce-dialog>div>button{display:block;width:100%;margin:12px 0}.ce-cancelled{color:#80502c;background:#fff0dc;padding:10px}.ce-card-events{margin:24px 0}.ce-card-events h2{font-size:19px}.ce-detail button,.ce-dialog button{min-height:44px}.ce-detail .gw-link{padding:8px 12px}
@media(max-width:739px){.wc-heading{gap:8px;flex-wrap:wrap;margin-bottom:12px}.wc-heading>div{flex:1 1 100%}.wc-heading .eyebrow,.wc-heading p:last-child{display:none}.wc-heading h1{margin:0}.wc-heading>.primary-button,.wc-heading>.secondary-button{padding:8px 12px;font-size:13px}.wc-filters{flex-wrap:wrap;justify-content:flex-start}.wc-filters>label{flex:1 1 auto}.wc-filters select{max-width:150px}.ce-detail{padding:8px 0 30px}.ce-heading h1{font-size:23px}.ce-links{padding:14px}.ce-dialog{width:calc(100% - 24px);max-height:90dvh;padding:18px}.ce-dialog input,.ce-dialog select,.ce-dialog textarea{font-size:16px;min-width:0}.ce-heading .secondary-button{font-size:12px;padding:8px}.wc-agenda-item.wc-event{font-size:13px;margin:0 0 8px;padding:12px}.ce-card-row .work-related{flex-basis:100%}}

/* Compact calendar controls; filters are shown only in a modal dialog. */
.wc-toolbar{flex-wrap:nowrap}.wc-filter-button{white-space:nowrap;min-height:44px}.wc-filter-button.is-active{background:#e2efeb;border-color:#8ab4aa;color:#245c4c}
.wc-filter-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid #d1dfdb;border-radius:16px;padding:20px;background:white;color:var(--ink);box-shadow:0 18px 60px #173b3533}.wc-filter-dialog::backdrop{background:#173b3566}.wc-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.wc-filter-heading h2{font-size:19px;margin:0}.wc-filter-heading button{font-size:28px;width:44px;height:44px;flex:none}.wc-filter-dialog .wc-filters{display:grid;grid-template-columns:1fr;gap:12px;width:100%;font-size:14px}.wc-filter-dialog .wc-filters>label:not(.wc-completed){display:flex;flex-direction:column;gap:6px}.wc-filter-dialog .wc-filters select{width:100%;max-width:none;box-sizing:border-box;font-size:16px}.wc-filter-dialog .wc-completed{margin:0;min-height:40px}.wc-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.wc-filter-actions button{min-height:44px;padding:10px 16px}
@media(max-width:739px){.wc-toolbar{gap:6px}.wc-month-nav{width:auto;flex:1;min-width:0;gap:2px}.wc-month-nav h2{font-size:16px;white-space:nowrap}.wc-month-nav>.icon-button{min-width:32px;width:32px;flex:none}.wc-month-nav .today-button{margin-left:2px;padding:8px 5px;font-size:12px;min-height:44px}.wc-filter-button{font-size:12px;padding:9px 8px}.wc-filter-dialog{padding:16px}.wc-filter-heading h2{font-size:18px}}
