/* Private work manager. Scoped: no changes to public website. */
.admin-view[data-panel="work"] .work-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.work-metrics .work-count{background:#fff;border:1px solid #e4e4df;padding:11px 15px;min-width:125px;display:flex;gap:10px;align-items:baseline}
.work-count strong{font-size:20px;font-weight:650}.work-count span{font-size:11px;color:#777}
.work-panel{padding:18px !important}
.work-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.work-period,.work-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.work-period button{height:36px;min-width:36px;border:1px solid #ddd;background:white;cursor:pointer}
.work-period .admin-select{width:auto;min-width:72px;height:36px;padding:0 8px}
.work-period #work-today{padding:0 14px}
.work-search{display:flex;align-items:center;gap:5px;margin:0}
.work-search input{height:36px;min-width:165px;width:180px;max-width:100%;padding:0 10px;background:#fff;border:1px solid #ddd;font:inherit}
.work-search button,.work-tools>.secondary-btn{height:36px;padding:0 12px;white-space:nowrap}
.work-status{font-size:11px;color:#777;min-height:16px;margin:0 0 8px}
.work-workspace{display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:start;gap:16px}
.work-scroller{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-color:#ccc transparent}
.work-calendar{width:100%;min-width:760px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #d9d9d4;border-top:1px solid #d9d9d4;background:#fff}
.work-week-head{padding:10px 4px;background:#f6f6f4;border-right:1px solid #d9d9d4;border-bottom:1px solid #d9d9d4;font-size:11px;text-align:center;font-weight:650}
.work-week-head:first-child,.work-day:nth-child(7n+8) .work-day-number{color:#e36d65}
.work-week-head:nth-child(7){color:#3955d1}
.work-day{min-width:0;min-height:126px;padding:4px 3px 5px;background:#fff;border-right:1px solid #d9d9d4;border-bottom:1px solid #d9d9d4;position:relative}
.work-day.is-outside{background:#fafaf9}
.work-day.is-today{background:#f0f8e8}
.work-day.is-selected{box-shadow:inset 0 0 0 2px #628b41}
.work-day-number{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:26px;gap:3px;padding:0 2px;margin:0 0 2px;border:0;background:none;color:#2b2b2b;text-align:left;cursor:pointer;font-size:13px;font-weight:700}
.work-day-number .work-day-count{font-size:9px;font-weight:400;color:#999}
.work-day.is-outside .work-day-number{color:#a7a7a3}
.work-event-chip{display:block;width:100%;min-width:0;border:0;border-radius:4px;padding:5px 4px;line-height:1.2;font-size:11px;font-weight:500;white-space:normal;overflow-wrap:anywhere;margin-top:3px;text-align:center;cursor:pointer}
.work-event-chip:hover{filter:brightness(.94)}.work-event-chip:focus-visible{outline:2px solid #111;outline-offset:1px}
.work-more{width:100%;border:0;background:none;text-align:center;font-size:10px;color:#565656;cursor:pointer;margin-top:3px;text-decoration:underline}
.work-sidebar{background:#fff;border:1px solid #e4e4df;padding:15px;min-width:0}
.work-sidebar h2{font-size:15px;font-weight:650;margin:0 0 14px}
.work-day-list{display:grid;gap:8px}
.work-side-event{display:block;width:100%;border:1px solid #ddd;padding:9px;text-align:left;background:#fff;cursor:pointer}
.work-side-event strong{font-size:12px;display:block;line-height:1.35;margin-bottom:4px}
.work-side-event small{font-size:10px;color:#777}
.work-sidebar-empty{font-size:12px;color:#999;margin:0}
.work-editor[hidden]{display:none !important}
.work-editor{position:fixed;inset:0;z-index:1400;display:flex;align-items:center;justify-content:center;padding:20px}
.work-editor-shade{position:absolute;inset:0;background:rgba(0,0,0,.48)}
.work-editor-sheet{position:relative;width:min(640px,100%);max-height:calc(100dvh - 30px);overflow-y:auto;background:white;padding:24px;box-shadow:0 15px 70px rgba(0,0,0,.2);display:grid;gap:15px}
.work-editor-top{display:flex;justify-content:space-between;align-items:center}
.work-editor-top h2{font-size:19px;margin:0}
.work-editor-top button{background:transparent;border:0;font-size:28px;cursor:pointer;min-width:40px;min-height:40px}
.work-editor-sheet label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#444}
.work-editor-sheet label input:not([type=color]),.work-editor-sheet label select,.work-editor-sheet textarea{width:100%;border:1px solid #ddd;padding:11px;font:inherit;color:#111;min-height:42px;background:white}
.work-editor-sheet input[type=color]{min-height:42px;width:100%;padding:3px;border:1px solid #ddd;background:white;cursor:pointer}
.work-editor-sheet textarea{font-size:12px;line-height:1.6;resize:vertical}
.work-editor-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.work-preview-box{font-size:11px;color:#555;display:grid;gap:6px}
#work-edit-preview{padding:8px;border-radius:4px;text-align:center;min-height:37px}
.work-comments{padding:12px;background:#fafaf7;border:1px solid #ededeb}
.work-comments h3{margin:0 0 10px;font-size:13px}
.work-comments-list,.work-comments>div{display:grid;gap:10px}
.work-comment{border-bottom:1px solid #ddd;padding:0 0 8px;font-size:12px}
.work-comment p{margin:6px 0;white-space:pre-wrap;word-break:break-word}
.work-comment small{color:#777}
.work-editor-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
#work-delete{margin-right:auto;color:#af4c45}
.work-edit-message{font-size:12px;margin:0;min-height:16px;color:#a33}
@media(max-width:1300px){.work-workspace{grid-template-columns:1fr}.work-sidebar{width:100%}}
@media(max-width:760px){.work-panel{padding:10px !important}.work-editor{padding:0}.work-editor-sheet{max-height:100dvh;height:100dvh;padding:18px}.work-calendar{min-width:745px}.work-day{min-height:96px}.work-event-chip{font-size:10px}.work-search input{width:175px}.work-topbar{gap:10px}}
@media(max-width:440px){.work-editor-two{grid-template-columns:1fr}.work-period{gap:4px}}
/* Admin-only work month shortcuts. */
.work-favorites-panel{margin-bottom:14px;padding:16px !important}
.work-favorites-head{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;font-size:13px;margin-bottom:12px}
.work-favorites-head span{font-size:11px;color:#888}
.work-favorite-items{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
.work-favorite-chip{display:flex;align-items:center;border:1px solid #dfdfdc;background:#fbfbfa;min-height:38px;gap:2px}
.work-favorite-go{height:36px;border:0;background:transparent;padding:0 12px;color:#245b26;font-weight:650;cursor:pointer;white-space:nowrap}
.work-favorite-rename{background:#fff;border:1px solid #eee;width:77px;padding:7px 5px;font:11px -apple-system,BlinkMacSystemFont,sans-serif}
.work-favorite-action{background:transparent;border:0;color:#676762;font-size:14px;min-width:29px;min-height:34px;cursor:pointer}
.work-favorite-action:disabled{opacity:.25;cursor:default}
.work-favorite-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:8px 0 0}
.work-favorite-form label{display:grid;gap:5px;font-size:11px;color:#777}
.work-favorite-form select{min-width:90px;min-height:38px}
.work-favorite-form input{border:1px solid #ddd;min-height:38px;padding:6px 9px;font:inherit;width:140px}
.work-favorite-form button{min-height:38px;white-space:nowrap}
.work-favorite-feedback{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.work-favorite-feedback p{font-size:11px;margin:0;flex:1;color:#777}
.work-favorite-feedback button{font-size:11px;padding:7px 10px}
.work-favorites-empty{color:#888;font-size:11px}
@media(max-width:760px){.work-favorites-panel{padding:12px !important}.work-favorite-chip{max-width:100%}.work-favorite-go{padding:0 8px}}

/* Compact saved-month shortcuts: calendar occupies the first viewport. */
.work-favorites-panel{padding:10px 16px !important;margin-bottom:10px !important}
.work-favorites-head{align-items:center;margin-bottom:6px !important}
.work-favorites-head #work-favorite-toggle{margin-left:auto;white-space:nowrap;font-size:11px;padding:8px 12px}
.work-favorite-items{margin-bottom:0 !important}
.work-favorites-panel:not(.is-managing) .work-favorite-rename,
.work-favorites-panel:not(.is-managing) .work-favorite-action{display:none !important}
.work-favorite-form[hidden],.work-favorite-feedback[hidden]{display:none !important}
.work-favorites-panel.is-managing .work-favorite-items{margin-bottom:12px !important}
.work-metrics{margin-top:14px}

/* Date-to-compose and accessible quick colors (admin only, 2026-10-10). */
.work-day{cursor:pointer}
.work-day-number:focus-visible{outline:2px solid #50733a;outline-offset:-1px;border-radius:3px}
.work-editor-sheet .work-color-field{min-width:0;padding:0;margin:0;border:0}
.work-color-field legend{font-size:12px;font-weight:600;color:#444;padding:0;margin:0 0 8px}
.work-color-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.work-color-preset{display:flex;align-items:center;gap:6px;position:relative;min-height:42px;min-width:0;border:1px solid #d8d8d3;border-radius:5px;background:#fff;color:#333;padding:7px 23px 7px 8px;font:inherit;font-size:11px;text-align:left;cursor:pointer;touch-action:manipulation}
.work-color-preset[aria-pressed="true"]{border-color:#3f5d30;box-shadow:inset 0 0 0 1px #3f5d30;background:#f4f7f1}
.work-color-preset[aria-pressed="true"]::after{content:'✓';position:absolute;right:7px;color:#355025;font-weight:700}
.work-color-preset:focus-visible{outline:2px solid #355025;outline-offset:2px}
.work-color-dot{width:18px;height:18px;flex:0 0 18px;border:1px solid rgba(0,0,0,.18);border-radius:4px;box-sizing:border-box}
.work-color-name{min-width:0;white-space:nowrap}
.work-editor-sheet label.work-custom-color{display:flex;flex-direction:row;align-items:center;gap:10px;margin-top:8px;font-size:11px;font-weight:400;color:#666}
.work-editor-sheet .work-custom-color input[type="color"]{width:50px;min-height:32px;height:32px;padding:2px;margin:0}
@media(max-width:440px){.work-color-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.work-color-preset{min-height:44px;font-size:11px}}

/* Compact calendar editor: visible title, optional note and unnamed color swatches only. */
.work-editor-sheet.work-editor-compact{height:auto;align-content:start;gap:16px;max-height:calc(100dvh - 32px);min-width:0}
.work-editor-compact .work-compact-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:center;min-width:0}
.work-compact-color-group{display:flex;align-items:center;gap:6px;min-width:0}
.work-compact-color-label{font-size:11px;color:#666;white-space:nowrap;flex-shrink:0}
.work-editor-compact .work-color-presets{display:flex;flex-wrap:nowrap;gap:3px;min-width:0}
.work-editor-compact .work-color-preset{width:24px;min-width:24px;max-width:24px;height:28px;min-height:28px;flex:0 0 24px;padding:2px;display:grid;place-items:center;border:1px solid transparent;background:transparent;border-radius:4px;gap:0}
.work-editor-compact .work-color-dot{width:18px;height:20px;border-radius:3px;flex:auto;box-shadow:none}
.work-editor-compact .work-color-preset[aria-pressed="true"]{border-color:#333;box-shadow:0 0 0 1px #333;background:#fff}
.work-editor-compact .work-color-preset[aria-pressed="true"]::after{display:none;content:none}
.work-editor-compact .work-color-preset:hover{border-color:#aaa}
.work-editor-compact .work-color-preset:focus-visible{outline:2px solid #333;outline-offset:2px}
.work-editor-compact label.work-custom-swatch{position:relative;display:grid;place-items:center;width:24px;height:28px;min-width:24px;flex:0 0 24px;border:1px solid #ccc;border-radius:4px;margin:0;padding:0;font-size:18px;font-weight:400;gap:0;background:white;cursor:pointer}
.work-editor-compact .work-custom-swatch input[type="color"]{position:absolute;inset:0;width:100%;height:100%;min-height:0;opacity:0;margin:0;padding:0;border:0;cursor:pointer}
.work-custom-swatch:focus-within{outline:2px solid #333;outline-offset:2px}
.work-editor-compact .work-optional{color:#999;font-size:11px;font-weight:400}
.work-editor-compact label:has(textarea){display:block}
.work-editor-compact textarea{display:block;margin-top:7px;min-height:140px;font-size:14px;line-height:1.6}
.work-editor-compact .work-edit-message:empty{display:none}
.work-editor-compact .work-editor-actions button{min-height:40px}
.work-editor-compact .work-editor-actions [hidden]{display:none!important}
@media(max-width:760px){
 .work-editor{padding:12px;align-items:center}
 .work-editor-sheet.work-editor-compact{height:auto;max-height:calc(100dvh - 24px);padding:18px;gap:15px}
 .work-editor-compact input:not([type="color"]),.work-editor-compact textarea{font-size:16px!important}
}
@media(max-width:639px){.work-editor-compact .work-compact-colors{grid-template-columns:1fr;gap:10px}}
@media(max-width:360px){
 .work-editor-compact .work-color-presets{gap:2px}
 .work-editor-compact .work-color-preset{width:22px;min-width:22px;max-width:22px;flex-basis:22px;padding:1px}
 .work-editor-compact .work-compact-color-group{gap:5px}
 .work-editor-compact .work-compact-color-label{font-size:10px}
 .work-editor-compact label.work-custom-swatch{width:22px;min-width:22px;flex-basis:22px}
}
