:root{--green:#167256;--green-dark:#115a45;--mint:#e9f5ef;--ink:#23362d;--muted:#84928b;--line:#e7ece8;--canvas:#f7f9f7;--shadow:0 20px 70px #1a3a2724;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;font-size:14px;color:var(--ink);background:var(--canvas);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}input,textarea,select{width:100%;border:1px solid #dce4de;border-radius:9px;padding:11px 12px;background:white;outline:none;color:var(--ink);min-height:43px}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #16725610}textarea{resize:vertical;line-height:1.8}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #41a983;outline-offset:3px}[hidden]{display:none!important}button:disabled{opacity:.55;cursor:wait}.app-shell{display:flex;min-height:100dvh}.sidebar{width:248px;flex:none;padding:32px 20px 18px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:100dvh;position:sticky;top:0;height:100dvh}.brand{display:flex;align-items:center;gap:10px;padding:0 3px;font-size:18px;font-weight:750;white-space:nowrap;letter-spacing:-.5px}.brand-mark{display:flex;align-items:center;justify-content:center;background:var(--green);border-radius:11px;width:37px;height:39px;font-size:29px;color:white;line-height:1}.brand small{display:block;font-weight:400;font-size:10px;letter-spacing:.8px;color:var(--muted);margin-top:6px}.workspace{display:flex;align-items:center;gap:10px;background:#f7f9f7;border:1px solid var(--line);border-radius:11px;margin-top:32px;padding:13px 11px}.workspace-icon{display:grid;place-items:center;background:#e4ede6;color:#4c6859;width:34px;height:34px;border-radius:9px;font-weight:700}.workspace strong{font-size:12px;display:block}.workspace small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.workspace-chevron{color:var(--muted);margin-left:auto}.create-button{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--green);color:#fff;width:100%;border-radius:10px;padding:12px;margin-top:20px;font-weight:650;font-size:12px;box-shadow:0 4px 12px #16725616}.create-button span{font-size:20px}.sidebar-nav{display:flex;flex-direction:column;gap:4px;margin-top:25px}.nav-item{padding:14px;border-radius:9px;text-align:left;font-size:12px;color:#718077;font-weight:550;display:flex;gap:12px;align-items:center}.nav-item span{font-size:21px;font-weight:400;line-height:1}.nav-item.active{color:var(--green);background:#edf6f0}.sidebar-section{margin-top:35px;border-top:1px solid var(--line);padding:24px 12px}.sidebar-label{font-size:10px;color:#98a399;letter-spacing:1px;margin:0 0 20px}.filter-row{display:flex;gap:10px;align-items:center;font-size:12px;margin-bottom:16px;color:#6b7c70;cursor:pointer}.filter-row input{width:14px;min-height:14px;height:14px;margin:0;accent-color:var(--green)}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex:none}.pending{background:#b7954f}.progress{background:#579583}.done{background:#8897b0}.drive-note{padding:19px 15px;border-radius:11px;background:#f1f6f0;position:relative}.drive-note>.drive-symbol{float:right;font-size:24px;color:#65a185}.drive-note strong{font-size:11px;display:block;margin-top:2px}.drive-note p{font-size:11px;color:#90a090;line-height:1.8;margin:9px 0 12px}.text-button{color:var(--green);padding:0;font-size:11px;font-weight:600}.text-button span{margin-left:8px}.sidebar-bottom{margin-top:auto;padding-top:25px}.utility-button{display:flex;align-items:center;gap:12px;color:#839085;font-size:11px;padding:12px}.utility-button span{font-size:15px;width:16px;text-align:center}.profile{display:flex;align-items:center;border-top:1px solid var(--line);margin-top:10px;padding:20px 0 0;gap:10px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e5eee6;color:#6c8772;font-size:12px;font-weight:650}.profile strong{display:block;font-size:11px}.profile small{display:block;font-size:9px;color:var(--muted);margin-top:4px;max-width:137px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-settings{color:#829083;margin-left:auto;font-size:18px}.main-shell{flex:1;min-width:0}.topbar{height:102px;background:#fff;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:15px}.topbar-title{display:flex;align-items:center;gap:12px}.topbar h1{font-size:18px;letter-spacing:.2px;margin:0;font-weight:650}.topbar p{color:#a0a99f;font-size:11px;margin:7px 0 0}.mobile-brand{display:none;color:var(--green);font-size:30px}.topbar-actions{display:flex;align-items:center;gap:16px}.sync-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#8b9b90;white-space:nowrap}.sync-label i{height:5px;width:5px;border-radius:50%;background:#789c7f}.sync-label.offline i{background:#c18c44}.icon-button{width:32px;height:32px;display:inline-grid;place-items:center;font-size:23px;color:#93a094;border-radius:8px;padding:0;flex:none}.icon-button:hover{background:#f0f5f0;color:var(--green)}.header-create{background:var(--green);color:white;padding:10px 15px;border-radius:9px;font-size:12px;font-weight:600;white-space:nowrap}.notice{margin:18px 36px 0;background:#fff7e7;border:1px solid #f1e5c8;border-radius:10px;color:#866736;padding:12px 15px;font-size:12px;line-height:1.7;display:flex;align-items:center;gap:10px}.notice p{margin:0;flex:1}.notice button{font-size:11px;white-space:nowrap;text-decoration:underline}.notice.error{background:#fdf0ec;color:#99513b;border-color:#f1dcd3}.notice.offline{background:#edf1f6;border-color:#dbe3ed;color:#65758c}.draft-banner{display:flex;margin:12px 36px 0;background:#edf5ee;border-radius:8px;color:#598265;align-items:center;justify-content:space-between;padding:10px 15px;font-size:12px}.draft-banner button{font-size:11px;margin-left:10px;text-decoration:underline}main{padding:28px 36px 28px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.month-controls{display:flex;align-items:center;gap:18px}.month-controls h2{font-size:24px;letter-spacing:.4px;font-weight:620;margin:0;white-space:nowrap}.month-controls h2 small{font-size:14px;font-weight:400;color:#929e93;margin-left:11px}.month-arrows{display:flex;gap:2px}.month-arrows .icon-button{font-size:26px;width:26px}.today-button{border:1px solid #dbe4dc;background:white;border-radius:7px;padding:7px 13px;font-size:11px;color:#6d7d70}.toolbar-right{display:flex;gap:16px;align-items:center}.search-box{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:white;padding:8px 12px;border-radius:8px;color:#a2ada1;width:217px}.search-box>span{font-size:20px;line-height:1}.search-box input{padding:0;border:0;min-height:20px;font-size:10px;width:100%;box-shadow:none}.search-box kbd{font-size:9px;white-space:nowrap;font-family:inherit;color:#aeb9ae}.view-switch{display:flex;background:#e9eee8;padding:3px;border-radius:8px;flex:none}.view-switch button{padding:7px 15px;font-size:11px;color:#8a968a;border-radius:6px}.view-switch button.active{background:white;color:#486451;box-shadow:0 1px 4px #223e2510}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:24px;align-items:start}.calendar-panel{background:white;border:1px solid #e4ebe4;border-radius:12px;overflow:hidden;min-width:0}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:43px;align-items:center;text-align:center;border-bottom:1px solid var(--line);background:#fbfcfa;font-size:10px;color:#8a9a8d;letter-spacing:1px}.calendar-weekdays span:first-child{color:#c07c77}.calendar-weekdays span:last-child{color:#7696b0}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-cell{min-height:126px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 6px 7px;cursor:pointer;position:relative;min-width:0;transition:background .15s}.calendar-cell:nth-child(7n){border-right:0}.calendar-cell:hover{background:#fafcf9}.calendar-cell.selected{background:#f0f7ed;box-shadow:inset 0 0 0 1px #d5e6d2}.calendar-cell.other-month{background:#fcfdfb}.date-number{font-size:11px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;margin:0 0 7px 3px;color:#75867b}.calendar-cell:nth-child(7n+1) .date-number{color:#bc8580}.calendar-cell:nth-child(7n) .date-number{color:#83a0b9}.calendar-cell.other-month .date-number{color:#c6d0c6}.calendar-cell.today .date-number{background:var(--green);color:white;font-weight:600}.calendar-cell.selected:not(.today) .date-number{font-weight:700;color:var(--green)}.calendar-event{width:100%;display:block;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:9px;border-radius:4px;padding:4px 5px;margin-bottom:3px;line-height:1.4;font-weight:500;border-left:2px solid var(--event-color,#6b9e77);color:var(--event-text,#557561);background:var(--event-bg,#edf5ec)}.calendar-event .event-time{opacity:.75;font-size:8px;margin-right:4px}.more-events{font-size:9px;color:#93a493;margin:5px 0 0 5px}.calendar-footer{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;font-size:10px;color:#9faa9f;background:#fbfdf9}.footer-drive{display:flex;align-items:center;gap:5px;font-size:9px}.footer-drive .drive-symbol{color:#7aa484;font-size:16px}.day-panel{background:white;border:1px solid var(--line);border-radius:12px;padding:22px 18px;min-height:475px}.day-header{display:flex;align-items:center;justify-content:space-between}.day-header p{font-size:9px;letter-spacing:.5px;color:#a0ada0;margin:0 0 8px}.day-header h2{font-size:20px;margin:0;font-weight:600;letter-spacing:.5px}.day-header h2 small{font-size:11px;margin-left:9px;color:#8e9d91;font-weight:400}.small-add{width:29px;height:29px;background:#f1f6ee;border:1px solid #e1eadd;border-radius:8px;color:#719274;font-size:20px}.day-stats{font-size:10px;color:#98a89b;display:flex;gap:12px;border-bottom:1px solid var(--line);padding:18px 0;margin-bottom:17px}.day-events{display:flex;flex-direction:column;gap:14px}.day-event{padding:13px 12px;border:1px solid #e7ece5;border-left:3px solid var(--event-color,#789d7b);border-radius:9px;background:#fff;text-align:left;width:100%}.day-event:hover{border-color:#c8d9c8;background:#fcfefb}.day-event .time{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9ca89a;margin-bottom:9px}.status-chip{padding:3px 6px;border-radius:4px;font-size:8px;background:#faf3df;color:#a1915e}.status-chip.progress{background:#eaf4ee;color:#6b9681}.status-chip.done{background:#edf1f6;color:#8392a8}.day-event h3{font-size:12px;font-weight:600;margin:0;line-height:1.7}.day-event .location{font-size:9px;color:#9eac9e;margin:7px 0 0;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.day-event .memo{font-size:10px;color:#8d9d8e;line-height:1.8;margin:9px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.day-event .attachment-indicator{font-size:9px;color:#9bac98;margin:10px 0 0}.day-tip{display:flex;align-items:center;gap:10px;background:#f9fbf6;border-radius:8px;margin-top:23px;padding:12px 10px}.day-tip span{color:#9db997;font-size:20px}.day-tip p{color:#a1b09d;font-size:9px;line-height:1.8;margin:0}.empty-state{text-align:center;padding:42px 10px;color:#9fac9f}.empty-state .empty-icon{font-size:36px;color:#b6c9b2;margin-bottom:15px;display:block;font-weight:200}.empty-state h3{font-size:12px;font-weight:500;margin:0 0 9px;color:#80967e}.empty-state p{font-size:10px;line-height:1.9;margin:0}.empty-state button{margin-top:18px;color:var(--green);font-size:11px}.month-agenda{padding:10px 20px;min-height:480px}.agenda-group{padding:15px 0;border-bottom:1px solid var(--line)}.agenda-group:last-child{border-bottom:0}.agenda-group h3{font-size:12px;display:flex;gap:8px;align-items:center;color:#64816b}.agenda-group h3 small{color:#a1afa1;font-weight:400;font-size:10px}.agenda-event{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 5px;border-radius:7px}.agenda-event:hover{background:#f5f9f3}.agenda-event .agenda-time{font-size:10px;color:#9daa9c;width:80px;flex:none}.agenda-event .agenda-event-title{font-size:12px;flex:1}.agenda-event .status-chip{font-size:9px}.mobile-nav{display:none}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#234d3b;color:#fff;box-shadow:0 8px 30px #17372733;padding:14px 22px;border-radius:10px;font-size:12px;z-index:1000;max-width:calc(100% - 30px);line-height:1.6;min-width:200px;text-align:center}dialog{border:1px solid #e2e9df;border-radius:17px;padding:0;color:var(--ink);box-shadow:var(--shadow);width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto}dialog::backdrop{background:#182e2473;backdrop-filter:blur(3px)}.dialog-heading{padding:24px 28px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.dialog-heading h2{font-size:18px;margin:0;font-weight:650}.eyebrow{font-size:8px;letter-spacing:2px;color:#91a590;margin:0 0 8px}.dialog-heading .icon-button{font-size:25px}.dialog-body{padding:24px 28px;overflow:auto}.event-dialog .dialog-body{max-height:calc(100dvh - 226px)}.field-label{display:block;font-size:11px;font-weight:600;margin-bottom:18px;color:#5e7564}.field-label input,.field-label textarea,.field-label select{display:block;margin-top:8px;font-size:13px;font-weight:400}.required{font-size:8px;background:#edf5ee;color:#75a480;border-radius:3px;padding:2px 4px;margin-left:8px}.field-optional{font-size:9px;font-weight:400;color:#a0afa2;margin-left:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.color-field{border:0;padding:0;margin:0 0 18px}.color-field legend{font-size:11px;font-weight:600;color:#5e7564;padding:0;margin-bottom:15px}.color-choices{display:flex;gap:12px;align-items:center}.color-choice{background:var(--choice-color);border:3px solid white;box-shadow:0 0 0 1px transparent;width:25px;height:25px;border-radius:50%;padding:0}.color-choice.selected{box-shadow:0 0 0 1px var(--choice-color)}.attachment-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 13px}.attachment-heading h3{margin:0;font-size:12px;color:#5e7564}.attachment-heading span{font-size:10px;color:#9bab9f}.form-attachments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.attachment-card{position:relative;border:1px solid #e1e9df;border-radius:9px;overflow:hidden;background:#f7faf5}.attachment-card>button.attachment-preview{width:100%;padding:0;text-align:left}.attachment-card img{aspect-ratio:4/3;width:100%;display:block;object-fit:cover;background:#eef4eb}.attachment-placeholder{aspect-ratio:4/3;display:grid;place-items:center;color:#9cb196;font-size:32px;background:#f1f6ee}.attachment-card .attachment-caption{padding:8px 9px;display:block}.attachment-card strong{font-size:10px;font-weight:500;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.attachment-card small{font-size:8px;color:#95a58e;display:block;margin-top:3px}.remove-attachment{position:absolute;top:5px;right:5px;background:#fffddd;border:1px solid #dfe8da;color:#859a7c;width:22px;height:22px;border-radius:50%;font-size:15px;display:grid;place-items:center}.attachment-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 0}.upload-button,.secondary-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:10px 15px;font-size:11px;font-weight:550;gap:5px;cursor:pointer;min-height:37px;white-space:nowrap}.upload-button,.secondary-button{border:1px solid #dbe5d7;background:white;color:#749069}.primary-button{background:var(--green);color:white;border:1px solid var(--green)}.primary-button:hover,.create-button:hover,.header-create:hover{background:var(--green-dark)}.secondary-button:hover,.upload-button:hover{background:#f6faf3}.field-help{font-size:10px;color:#9aaa95;line-height:1.8;margin:12px 0 0}.inline-status{padding:10px 12px;background:#edf5ed;border-radius:7px;color:#648959;font-size:11px;margin-top:12px}.form-error{padding:12px;border:1px solid #f0d6ca;background:#fcf1ea;border-radius:8px;color:#a36448;font-size:12px;line-height:1.7;margin-top:15px;white-space:pre-wrap}.dialog-footer{border-top:1px solid var(--line);padding:16px 28px;display:flex;align-items:center;justify-content:flex-end;gap:10px;background:#fcfdfb}.save-note{margin-right:auto;color:#a2b09b;font-size:9px}.danger-button{color:#b57962;font-size:10px;margin-right:auto;padding:10px 0}.small-dialog{width:min(470px,calc(100vw - 32px))}.small-dialog .dialog-body>p{font-size:12px;line-height:1.9}.preview-dialog{width:min(1050px,calc(100vw - 32px))}.preview-actions{display:flex;gap:10px;align-items:center}.preview-dialog .dialog-heading{padding:18px 22px}.preview-dialog .dialog-heading h2{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview-dialog #preview-content{background:#eef2eb;display:grid;place-items:center;min-height:240px}.preview-dialog img{width:100%;max-height:68dvh;object-fit:contain;display:block}.preview-dialog iframe{width:100%;height:65dvh;border:0;background:#fff}.preview-help{padding:0 22px 16px;margin:12px 0 0}.editor-dialog{width:min(900px,calc(100vw - 28px))}.editor-toolbar{display:flex;gap:6px;padding:16px 24px 10px;flex-wrap:wrap}.tool-button{border:1px solid #dfe8da;background:#fff;color:#859a7c;border-radius:7px;padding:8px 12px;font-size:10px}.tool-button.active{background:#edf5e9;color:var(--green);border-color:#bed7b6}.editor-angle{display:flex;align-items:center;gap:20px;padding:0 24px 12px}.editor-angle label{display:flex;align-items:center;gap:10px;font-size:10px;color:#879e7f}.editor-angle input{width:130px;min-height:25px;padding:0;accent-color:var(--green)}.editor-angle output{font-size:10px;min-width:25px}.canvas-wrap{background:#e7ece3;padding:12px;display:flex;align-items:center;justify-content:center;min-height:180px;max-height:52dvh;overflow:hidden;background-image:linear-gradient(45deg,#e0e7dc 25%,transparent 25%),linear-gradient(-45deg,#e0e7dc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e7dc 75%),linear-gradient(-45deg,transparent 75%,#e0e7dc 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}#image-canvas{max-width:100%;max-height:calc(52dvh - 24px);height:auto;object-fit:contain;touch-action:none;cursor:crosshair;display:block;border:1px solid #bdcbb5}.editor-description{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 24px;font-size:10px;color:#91a486}.editor-description p{margin:0;line-height:1.7}.editor-dialog>.form-error{margin:0 24px 15px}.settings-storage{display:flex;align-items:center;gap:15px;padding:16px;background:#f2f7ee;border-radius:10px}.settings-storage .drive-symbol{font-size:36px;color:#7eaa71}.settings-storage strong{font-size:13px}.settings-storage p{margin:5px 0 0;font-size:10px;color:#91a587}.settings-status{margin:18px 0 0;padding:12px;border-radius:8px;border:1px solid #dbe7d3;font-size:12px;line-height:1.8;color:#7c9870}.settings-status.unconfigured{border-color:#ecdcc2;color:#a68a55;background:#fcf7ec}.settings-details{font-size:11px;margin-top:16px;color:#8da382;line-height:1.8}.help-body>div{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--line);position:relative;padding-left:35px}.help-body>div:last-of-type{margin-bottom:0}.help-body>div>span{position:absolute;left:0;top:3px;font-size:10px;color:#97b18d}.help-body h3{font-size:12px;margin:0 0 8px;color:#668859}.help-body p{font-size:11px;line-height:1.9;color:#93a78a;margin:0}.skeleton-cell{animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.5}}
@media(min-width:1500px){.calendar-layout{grid-template-columns:minmax(0,1fr) 300px}.calendar-cell{min-height:144px}.calendar-event{font-size:10px;padding:5px}.day-event h3{font-size:13px}}
@media(max-width:1200px){.sidebar{width:220px;padding:27px 16px 16px}.brand{font-size:16px}.brand small{font-size:9px}.topbar{padding:0 25px}.notice,.draft-banner{margin-left:25px;margin-right:25px}main{padding:25px}.calendar-layout{grid-template-columns:minmax(0,1fr) 244px;gap:18px}.calendar-cell{min-height:117px;padding-left:4px;padding-right:4px}.calendar-event{font-size:8px}.month-controls{gap:12px}.month-controls h2{font-size:22px}.search-box{width:185px}.search-box kbd{display:none}.toolbar-right{gap:10px}.day-panel{padding:20px 15px}.drive-note{padding:15px 12px}}
@media(max-width:1050px){.sidebar{width:200px;padding:26px 13px 16px}.brand{font-size:14px;gap:7px}.brand-mark{width:31px;height:34px;font-size:24px}.brand small{font-size:8px}.topbar-actions{gap:10px}.topbar{height:87px}.topbar h1{font-size:16px}.header-create{font-size:10px;padding:9px 11px}.sync-label{font-size:9px}.calendar-layout{grid-template-columns:minmax(0,1fr)}.day-panel{min-height:0}.day-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.day-header h2{font-size:18px}.day-stats{padding:12px 0}.day-tip{display:none}.calendar-cell{min-height:115px}.calendar-toolbar{gap:12px}.search-box{width:180px}.month-controls h2{font-size:20px}.month-controls h2 small{font-size:12px;margin-left:6px}.view-switch button{padding:7px 10px}.month-controls{gap:8px}}
@media(max-width:760px){.sidebar{display:none}.topbar{height:78px;padding:0 20px}.mobile-brand{display:block}.topbar h1{font-size:15px}.topbar p{font-size:10px;margin-top:5px}.topbar-actions{gap:7px}.sync-label{display:none}.topbar-actions .icon-button{width:28px;height:28px;font-size:20px}.header-create{display:none}.notice{margin:13px 16px 0;font-size:11px;padding:10px 12px;align-items:flex-start}.draft-banner{margin:10px 16px 0;font-size:10px;padding:10px}.draft-banner button{font-size:10px;margin-left:6px}main{padding:21px 16px 90px}.calendar-toolbar{margin-bottom:16px;flex-wrap:wrap;gap:14px}.month-controls{width:100%;justify-content:flex-start;gap:15px}.month-controls h2{font-size:23px}.month-controls h2 small{font-size:13px;margin-left:10px}.month-arrows{margin-left:auto}.today-button{padding:6px 11px;font-size:10px}.toolbar-right{width:100%;justify-content:space-between;gap:15px}.search-box{width:auto;flex:1;max-width:320px;padding:8px 10px}.search-box input{font-size:11px}.view-switch button{padding:7px 16px}.calendar-layout{gap:18px}.calendar-weekdays{height:36px;font-size:10px}.calendar-cell{min-height:100px;padding:6px 2px 5px}.date-number{font-size:10px;width:22px;height:22px;margin:0 auto 5px}.calendar-event{font-size:7px;padding:3px 2px;border-left-width:2px;border-radius:3px;margin-bottom:2px}.calendar-event .event-time{display:none}.more-events{font-size:7px;margin:4px 0 0 4px}.calendar-footer{padding:10px 12px;font-size:9px}.footer-drive{font-size:8px}.day-panel{padding:18px 16px}.day-events{grid-template-columns:1fr}.day-event{padding:13px 14px}.day-event h3{font-size:13px}.day-event .time{font-size:10px;margin-bottom:8px}.status-chip{font-size:9px}.day-event .location{font-size:10px}.day-event .memo{font-size:11px}.day-event .attachment-indicator{font-size:10px}.day-header p{font-size:9px}.day-stats{font-size:10px}.empty-state{padding:30px 10px}.empty-state h3{font-size:12px}.empty-state p{font-size:11px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffed;border-top:1px solid #e0e8dc;display:flex;justify-content:space-around;padding:8px 15px calc(9px + env(safe-area-inset-bottom));z-index:50;backdrop-filter:blur(10px)}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px;color:#a0b098;min-width:80px}.mobile-nav button>span{font-size:23px;line-height:25px}.mobile-nav button.active{color:var(--green)}.mobile-nav #create-mobile span{background:var(--green);color:white;border-radius:8px;width:31px;font-size:23px}.toast{bottom:85px;font-size:11px;min-width:220px}.month-agenda{padding:6px 15px;min-height:300px}.agenda-event .agenda-time{width:70px;font-size:9px}.agenda-event .agenda-event-title{font-size:11px}dialog{width:calc(100vw - 22px);max-height:calc(100dvh - 24px);border-radius:14px}.dialog-heading{padding:19px 18px 15px}.dialog-heading h2{font-size:17px}.dialog-body{padding:19px 18px}.event-dialog .dialog-body{max-height:calc(100dvh - 198px)}.field-label{font-size:11px;margin-bottom:15px}.field-label input,.field-label textarea,.field-label select{font-size:16px;padding:10px;min-height:44px}.form-grid{gap:12px}.field-optional{font-size:8px;display:inline}.form-grid .field-optional{display:none}.color-choices{gap:8px}.color-choice{width:25px;height:25px}.dialog-footer{padding:14px 18px;gap:8px}.dialog-footer .save-note{display:none}.event-dialog .dialog-footer{flex-wrap:wrap}.danger-button{font-size:10px}.secondary-button,.primary-button,.upload-button{font-size:11px;padding:9px 12px}.attachment-actions{gap:8px}.form-attachments{gap:8px}.attachment-card strong{font-size:9px}.attachment-card small{font-size:7px}.preview-dialog .dialog-heading{padding:15px;align-items:flex-start;flex-wrap:wrap;gap:10px}.preview-actions{margin-left:auto;gap:7px}.preview-actions .secondary-button,.preview-actions .primary-button{font-size:9px;padding:8px}.preview-dialog iframe{height:65dvh}.preview-dialog img{max-height:65dvh}.preview-help{padding:0 15px 14px;font-size:10px}.editor-toolbar{padding:13px 15px 10px;gap:6px}.tool-button{font-size:9px;padding:8px 10px}.editor-angle{padding:0 15px 10px;gap:15px}.editor-angle input{width:100px}.editor-description{padding:12px 15px;font-size:10px}.editor-description .secondary-button{font-size:9px;padding:8px}.editor-dialog>.form-error{margin:0 15px 10px}.help-body p{font-size:11px}.settings-storage p{font-size:10px}}
@media(max-width:370px){main{padding-left:10px;padding-right:10px}.calendar-cell{min-height:88px}.calendar-event{font-size:6px}.topbar{padding:0 15px}.month-controls h2{font-size:21px}.dialog-footer .secondary-button,.dialog-footer .primary-button{font-size:10px;padding:9px 11px}}
.help-share-check{display:block;width:100%;min-height:48px;padding:14px 12px;background:#115a45;color:#fff;text-align:center;font-size:14px;font-weight:700;white-space:normal}.help-body .help-share-check-note{margin:10px 0 24px;color:#3c5849;font-size:12px}
.submission-banner{border-color:#e3c46d;background:#fff8dc;color:#674e17}.submission-banner[hidden]{display:none}.submission-banner>div{display:flex;gap:8px;flex-shrink:0}.submission-failed{border-color:#d99685;background:#fff0e9;color:#8b3a29}.submission-badge{display:inline-flex;width:max-content;padding:3px 8px;border:1px solid #d7b456;border-radius:6px;background:#fff5cf;color:#694a0b;font-size:11px;font-weight:750}.submitted-pending{outline:1px dashed #967423;outline-offset:-1px}.submission-item{padding:14px 0;border-bottom:1px solid var(--line)}.submission-item>strong{font-size:14px;overflow-wrap:anywhere}.submission-item>p{font-size:12px;line-height:1.7}.submission-input{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto}.submission-state{color:#70541a;font-weight:700}#submission-dialog .dialog-body{max-height:65dvh;overflow:auto}@media(max-width:760px){.submission-banner{display:block}.submission-banner>div{margin-top:9px;flex-wrap:wrap}.submission-banner button{min-height:40px}.submission-item>p{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

.startup-status{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;background:#f2f7f5;color:#17372d}
.startup-status[hidden]{display:none}
.startup-card{max-width:380px;width:100%;padding:32px 24px;background:#fff;border:1px solid #dce9e2;border-radius:22px;text-align:center;box-shadow:0 12px 50px #193f2c12}
.startup-mark{font-size:40px;color:#16845b}.startup-card h1{font-size:22px;margin:16px 0}.startup-card p{font-size:14px;line-height:1.8}.startup-card small{display:block;font-size:11px;color:#597368;line-height:1.8;margin-top:16px}
.startup-card button{padding:13px 18px;background:#16845b;color:#fff;border-radius:10px;font-size:14px;font-weight:650;min-height:44px}
.startup-card button[hidden]{display:none}
.startup-card a{display:block;margin-top:16px;font-size:13px;color:#126544;text-decoration:underline}
.startup-card a[hidden]{display:none}
/* Daily schedule and assignment overview: compact, bright and legible. */
.sidebar-hint{font-size:11px;line-height:1.9;color:#687d71;margin:13px 3px 0}
#calendar-layout{grid-template-columns:minmax(0,1fr) 360px;gap:20px}
#calendar-layout:not(.day-open){grid-template-columns:minmax(0,1fr)}
.calendar-cell{min-height:132px}
.calendar-event{font-size:10px;font-weight:650;border-left-width:3px;padding:5px 5px;color:var(--event-text);background:var(--event-bg)}
.calendar-event .event-time{font-size:9px;opacity:1}
.more-events{font-size:10px;font-weight:600;color:#47644f}
.calendar-cell.selected{background:#e7f7ef;box-shadow:inset 0 0 0 2px #66b798}
.day-panel{padding:19px 17px;position:sticky;top:18px;max-height:calc(100dvh - var(--day-panel-space,210px));overflow:auto;min-height:min(500px,calc(100dvh - var(--day-panel-space,210px)));container-type:inline-size;container-name:daypanel}
.day-header{gap:10px}
.day-header>div{flex:1;min-width:0}
.day-header p{font-size:9px;color:#5f7768;margin:0 0 5px}
.day-header h2{font-size:23px}
.day-header h2 small{color:#566f60;font-size:12px}
.day-header #close-day{width:26px;height:32px;font-size:24px;color:#536d5c}
.small-add{width:35px;height:35px;background:#dff6e9;border-color:#b3dfc8;color:#0b714a;font-size:24px}
.day-stats{margin:0;padding:15px 0;font-size:11px;color:#687e70;justify-content:space-between;gap:8px}
.day-stats strong{color:#28583f;font-weight:650}
.staff-summary-section{margin:15px 0 18px;padding:12px;background:#f1f8f4;border:1px solid #d6e9dd;border-radius:10px}
.staff-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.staff-summary-heading h3{font-size:12px;font-weight:700;margin:0;color:#264f37}
.staff-summary-heading .text-button{font-size:10px;color:#276b45}
.staff-summary{display:grid;gap:7px;max-height:min(300px,36dvh);overflow-y:auto;scrollbar-gutter:stable;padding-right:4px;overscroll-behavior:contain;align-items:start}
.staff-count-total{grid-column:1/-1;position:sticky;top:0;z-index:1;background:#f1f8f4;font-size:10px;line-height:1.7;color:#587260;margin:0;padding:0 0 5px}
.staff-count-row{min-width:0;padding:7px 8px 8px;border:1px solid #b9d2c2;border-left:3px solid #70a88b;border-radius:8px;background:#fff;box-shadow:0 1px 2px #1e513409;font-size:12px;line-height:1.5}
.staff-count-name{display:block;font-size:12px;font-weight:750;color:#193f2b;white-space:normal;overflow-wrap:anywhere;min-width:0;margin:0 0 5px}
.staff-count-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d8e5dc;border-radius:5px;overflow:hidden;background:#f3f8f5}
.staff-count-slot{display:flex;align-items:center;gap:4px;justify-content:center;min-width:0;padding:3px 4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.staff-count-slot+.staff-count-slot{border-left:1px solid #d8e5dc}
.staff-slot-label{font-size:10px;color:#3e5d49;flex:none}
.count-value{color:#153c27;font-size:13px;font-weight:750;min-width:2ch;text-align:center}
.count-zero{color:#c01432;font-size:13px;font-weight:750;min-width:2ch;text-align:center}
.summary-note{font-size:9px;line-height:1.7;color:#62776a;margin:8px 0 0}
.staff-empty{font-size:11px;color:#587260;line-height:1.8;margin:5px 0}
.day-events{display:flex;flex-direction:column;gap:0}
.day-event{display:grid;grid-template-columns:49px minmax(0,1fr);gap:11px;border:0;border-bottom:1px solid #e4ebe5;border-left:0;border-radius:0;background:#fff;padding:13px 0}
.day-event.has-share-badge{grid-template-columns:49px minmax(0,1fr) 22px}
.day-share-approved{align-self:start;justify-self:end;color:var(--green);font-size:18px;font-weight:750;line-height:1.6;pointer-events:none}
.color-choices{flex-wrap:wrap}.current-event-color{flex-basis:100%;font-size:12px;color:var(--muted)}
.day-event:last-child{border-bottom:0}
.day-event:hover{background:#f4faf6;border-color:#d5e5d9}
.schedule-time{text-align:right;font-variant-numeric:tabular-nums;padding:1px 0}
.schedule-time strong{font-size:10px;font-weight:600;display:block;color:#334c3c}
.schedule-time small{font-size:10px;display:block;margin-top:7px;color:#758779}
.schedule-content{border-left:3px solid var(--event-color);padding-left:11px;min-width:0}
.staff-report-overview{display:flex;flex-direction:column;gap:10px;margin-top:12px;border:1px solid #cfdfd5;border-radius:10px;padding:0 10px 10px;background:#f3f7f4;overflow:hidden;color:#243e30;text-align:left;white-space:normal}.staff-report-summary{display:block;margin:0 -10px;padding:10px 12px;background:#e5f1e9;font-size:12px;line-height:1.65}.staff-report-row{display:flex;flex-direction:column;gap:11px;padding:12px;border:1px solid #cddbd2;border-radius:8px;background:#fff;min-width:0}.staff-report-person-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px;padding-bottom:9px;border-bottom:1px solid #e1e9e4}.staff-report-name{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.staff-report-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.staff-report-field{display:flex;flex-direction:column;gap:4px;min-width:0;padding:8px;border-radius:6px;background:#f2f7f4}.staff-report-field.is-wide{grid-column:1/-1}.staff-report-label{font-size:11px;line-height:1.5;color:#546b5c}.staff-report-detail{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:650}.staff-report-field.is-missing{background:#fff5e7}.staff-report-field.is-missing .staff-report-detail{color:#805322}.staff-report-value{padding:4px 7px;border-radius:5px;font-size:12px;line-height:1.5}.staff-report-value.is-recorded{background:#e0f4e8;color:#125537}.staff-report-value.is-missing{background:#fff0dc;color:#885218}.staff-report-expenses{display:flex;flex-direction:column;gap:8px;padding-top:10px;border-top:1px solid #e1e9e4}.staff-report-expense-empty{font-size:13px;color:#687e70}.staff-report-expense-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:9px;border-radius:6px;background:#f2f7f4}.staff-report-expense-description{font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.staff-report-receipts{grid-column:1/-1;font-size:11px;color:#546b5c}.report-overview-section{margin:15px 0}.report-overview-section h3{margin:0 0 8px;font-size:14px}.report-overview-section .staff-report-overview{margin-top:0}.leader-calendar .day-event.leader-completion-reported,.leader-calendar .agenda-event.leader-completion-reported{background:var(--event-bg);border-color:#e67878}.leader-calendar .leader-completion-reported .schedule-content{border-left-color:var(--event-color)}
.day-event h3{font-size:13px;line-height:1.6;color:#203d2c;font-weight:700}
.day-event .work-meta,.agenda-event-description .work-meta{display:block;width:fit-content;max-width:100%;margin:7px 0 0;padding:7px 10px;border:1px solid #c6d1ca;border-radius:7px;background:#fff;color:#172e22;font-size:14px;font-weight:750;line-height:1.7;letter-spacing:.02em;text-align:left;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;-webkit-line-clamp:unset;box-shadow:0 1px 2px #13291c0a}
.day-event .memo{font-size:10px;line-height:1.6;margin:4px 0 0;color:#708478;-webkit-line-clamp:1}
.day-event .attachment-indicator{font-size:9px;color:#67826e;margin:6px 0 0;display:block}
.agenda-event-description{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.agenda-event-description strong{font-weight:650}
.agenda-event-description small{font-size:10px;line-height:1.6;color:#5b7463}
.agenda-event .agenda-time{color:#52695a;font-size:11px}
.assignment-field{margin:0 0 20px;padding:0;border:0}
.travel-expenses-section{margin:20px 0 24px;padding:16px;border:1px solid #d6e5dc;background:#f6faf8;border-radius:12px}
.travel-sync-banner{border-color:#ded2a8;background:#fffbec;color:#665521}.travel-sync-banner p{flex:1;min-width:0}.travel-sync-banner button{flex-shrink:0}.travel-sync-settings{margin-top:16px;padding-top:12px;border-top:1px solid #e2e9df}.travel-sync-settings .field-help{color:#665521}@media(max-width:760px){.travel-sync-banner{flex-wrap:wrap;gap:8px}.travel-sync-banner button{width:100%;text-align:center;white-space:normal}}
.travel-expenses-section h3{font-size:14px;margin:0;color:#28543d}.travel-expenses-section>.field-help{color:#526d5d;margin-top:8px}
.travel-expenses{display:grid;gap:12px;margin-top:15px}
.travel-expense-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:12px;margin:0;padding:12px;border:1px solid #bfd5c7;border-radius:9px;background:#fff;min-width:0}
.travel-expense-row legend{font-size:13px;font-weight:700;padding:0 5px;color:#214e35}.travel-expense-row .field-label{margin:0;font-size:11px}.travel-expense-row>.field-help{grid-column:1/-1;margin:0}
.travel-expense-row input{min-width:0;width:100%;font-size:14px}.travel-expenses-section>button{margin-top:10px}
.work-completion-option{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:12px;border:1px solid #a4d2ba;border-radius:9px;background:#e7f8ef;font-size:14px;font-weight:700;color:#185a3a;cursor:pointer}.work-completion-option input{width:20px;height:20px;flex-shrink:0;accent-color:#168d57}.work-completion-option small{display:block;margin-top:5px;font-size:11px;font-weight:400;line-height:1.6;color:#3b6650}.work-report-inputs{grid-column:1/-1;display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);align-items:start;gap:12px;padding-top:12px;border-top:1px solid #e1ebe5}.work-report-inputs select{width:100%;min-height:42px;padding:9px 10px;border:1px solid #bfd5c7;border-radius:7px;background:#fff;font:inherit;color:#294e3b}.overtime-duration{display:grid;grid-template-columns:1fr 1fr;gap:10px}.overtime-duration[hidden]{display:none}.completion-warning{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#fff5da;color:#725623;font-size:12px;line-height:1.7}.work-complete-badge{display:inline-flex;align-items:center;gap:3px;margin-top:5px;padding:2px 7px;border:1px solid #afd9c1;border-radius:5px;background:#e3f5e9;color:#216641;font-size:10px;font-weight:700;white-space:nowrap}.agenda-event-description>.work-complete-badge{width:max-content}@media(max-width:450px){.work-report-inputs{grid-template-columns:1fr}.work-report-inputs select{font-size:16px}}
.weekly-work-completion{margin:14px 0 20px;padding:12px;border:1px solid #c5dfcf;border-radius:9px;background:#f1faf5}.weekly-work-completion button{width:100%;white-space:normal}.weekly-work-completion .field-help{margin:8px 0 0}
@media(max-width:450px){.travel-expenses-section{padding:12px}.travel-expense-row{grid-template-columns:1fr;gap:10px}.travel-expense-row input{font-size:16px}}
.assignment-field legend{font-size:11px;font-weight:600;color:#5e7564;margin-bottom:10px;padding:0}
.assignee-choices{display:flex;flex-wrap:wrap;gap:8px}
.assignee-option{display:flex;align-items:center;gap:7px;border:1px solid #d5e4d9;border-radius:7px;background:#f7fbf8;padding:8px 10px;font-size:12px;color:#355641;cursor:pointer;min-height:37px}
.assignee-option:has(input:checked){background:#dff6e9;border-color:#80bc98;color:#184d30}
.assignee-option input{width:15px;height:15px;min-height:0;accent-color:#128255;margin:0}
.assignee-auto{font-size:10px;color:#24694a;border-radius:4px;background:#fff;padding:2px 4px}
.assignment-field>.text-button{font-size:11px;margin-top:11px;color:#216744}
.all-day-option{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#365c43;margin-bottom:18px}
.all-day-option input{width:16px;height:16px;min-height:0;margin:0;accent-color:#128255}
.all-day-option span{font-weight:400;font-size:10px;color:#6f8375}
.field-label input:disabled{color:#7a8d7d;background:#f0f4f1;cursor:not-allowed}
.work-slots-summary{display:inline-block;border:1px solid #b4dcc8;background:#edfaf3;border-radius:8px;padding:9px 14px;color:#145b42;font-size:14px;font-weight:700;line-height:1.5}
.staff-editor-list{margin:18px 0 8px;display:flex;flex-direction:column;gap:10px;max-height:40dvh;overflow:auto}
.staff-editor-row{display:flex;align-items:center;gap:8px}
.staff-editor-row .field-label{flex:1;margin:0}
.staff-editor-row .icon-button{margin-top:20px}
.color-choice{width:30px;height:30px}
.day-backdrop{display:none}
@media(min-width:1500px){#calendar-layout{grid-template-columns:minmax(0,1fr) 410px}.calendar-event{font-size:11px}.day-event h3{font-size:14px}.staff-count-name{font-size:13px}}
@media(max-width:1200px) and (min-width:1101px){#calendar-layout{grid-template-columns:minmax(0,1fr) 330px;gap:15px}.calendar-event{font-size:9px}.day-panel{padding:17px 14px}}
@media(max-width:1100px){
  #calendar-layout{grid-template-columns:minmax(0,1fr)}
  body.day-sheet-open{overflow:hidden}
  .day-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#18332755;z-index:80;border:0;width:100%;height:100%;cursor:pointer}
  #day-panel{position:fixed;top:0;right:0;bottom:0;width:min(460px,100vw);max-height:none;height:100dvh;min-height:0;z-index:90;border-radius:14px 0 0 14px;box-shadow:-10px 0 40px #16352625;padding:24px 22px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
  .day-header{margin-bottom:3px}
  .day-events{display:flex;grid-template-columns:none}
  .day-event{padding:14px 0}
}
@media(max-width:760px){
  #day-panel{width:100%;border-radius:0;border:0;padding:20px 18px calc(24px + env(safe-area-inset-bottom))}
  .calendar-event{font-size:8px;padding:4px 3px;line-height:1.5}
  .more-events{font-size:9px;margin-left:3px}
  .calendar-cell{min-height:104px}
  .day-header h2{font-size:24px}
  .day-header p{font-size:10px}
  .day-stats{font-size:12px}
  .staff-summary-section{padding:13px 14px}
  .staff-summary-heading h3{font-size:13px}
  .staff-summary-heading .text-button{font-size:11px}
  .staff-count-name{font-size:13px}
  .staff-slot-label{font-size:11px}
  .count-zero,.count-value{font-size:14px}
  .summary-note{font-size:10px}
  .schedule-time strong,.schedule-time small{font-size:11px}
  .day-event h3{font-size:14px}
  .day-event .memo{font-size:11px}
  .assignee-option{font-size:13px;min-height:42px}
  .all-day-option{font-size:13px}
  .all-day-option span{font-size:10px;line-height:1.6}
}
@container daypanel (min-width:320px){
  .staff-summary{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:9px}
  .staff-summary>.staff-empty{grid-column:1/-1}
  .staff-count-row{padding:7px 6px 7px}
  .staff-count-slot{gap:3px;padding:3px 2px}
  .staff-slot-label{font-size:10px}
  .count-value,.count-zero{font-size:13px}
}

/* File-first sharing keeps company photos private until an explicit handoff. */
.event-share-entry{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:20px 0;padding:16px;background:#f0f8f3;border:1px solid #bfd8ca;border-radius:12px}.event-share-entry strong{font-size:14px}.event-share-entry .field-help{margin:6px 0 0;color:#456052}.event-share-entry>button{flex:none;min-height:44px}.share-dialog{width:min(680px,calc(100vw - 24px));max-height:90dvh;border:0;border-radius:18px;padding:0;background:white;color:var(--ink);box-shadow:var(--shadow)}.share-dialog .dialog-body{max-height:calc(90dvh - 150px);overflow:auto;overscroll-behavior:contain}.share-section-heading{font-size:14px;margin:24px 0 8px}.share-choices{display:grid;gap:8px;margin:12px 0 16px}.share-choice{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #d5e4da;border-radius:10px;background:#fbfdfb;min-width:0}.share-choice input{width:20px;height:20px;min-height:20px;flex:none;accent-color:var(--green)}.share-choice>span{min-width:0}.share-choice strong{display:block;font-size:13px;overflow-wrap:anywhere}.share-choice small{display:block;font-size:11px;line-height:1.7;margin-top:4px;color:#597065}.share-feedback{min-width:0;margin-right:auto}.share-feedback .form-error{margin:0}.share-status{font-size:12px;line-height:1.6;margin:0;color:#2c5c43}#share-submit{min-width:112px;min-height:44px;flex:none}.share-dialog textarea{font-size:14px;line-height:1.8;background:#fdfefd}.share-dialog .dialog-footer{gap:10px}
.share-text-selection{margin:0 0 12px}.share-text-selection .share-choice{margin-bottom:8px;border-color:#aacabb;background:#f1f8f4}.share-text-selection textarea{display:block;min-height:160px}


.share-preview-actions{flex-wrap:wrap}.share-preview-actions button{min-height:44px}.share-preview-actions #share-preview-edit{margin-right:auto}.share-preview-actions #share-preview-edit[hidden]{display:none}
.transport-mode-label,.transport-note,.transport-details,.rest-time-label{grid-column:1/-1}.transport-details{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:12px}.transport-details[hidden]{display:none}.transport-mode-label select{font-size:16px;min-height:44px}.transport-note{margin:0;font-size:11px;line-height:1.7}.rest-time-label{padding-top:12px;border-top:1px solid #dbe7df}.rest-time-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:360px}.rest-time-part{display:grid;gap:6px;font-size:12px}.rest-time-part select{font-size:16px;min-height:44px}.rest-time-label small{font-weight:400}
.staff-expenses-section,.travel-receipts-section{grid-column:1/-1;border-top:1px solid #c9ded0;margin-top:8px;padding-top:14px}.staff-expenses-section h4,.travel-receipts-section h4{font-size:14px;margin:0 0 12px;color:#254f39}.travel-receipts-section>.expense-receipt-upload{margin-top:12px}.staff-expense-card{display:grid;grid-template-columns:2fr minmax(100px,1fr);gap:12px;background:white;border:1px solid #c9ded0;padding:14px;border-radius:10px;margin-bottom:10px}.staff-expense-card>.text-button,.staff-expense-card>.field-help,.expense-receipts,.expense-receipt-upload{grid-column:1/-1}.expense-receipts{display:flex;flex-wrap:wrap;gap:10px}.expense-receipt-card{display:grid;gap:5px;justify-items:center}.expense-receipt-preview{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:96px;min-height:48px;padding:8px;border:1px solid #c9ded0;border-radius:8px;background:#f4faf6;color:#23503b;font-size:11px}.expense-receipt-preview img{display:block;object-fit:contain;width:80px;height:80px}.expense-receipt-preview img[hidden]{display:none}.expense-receipt-upload{justify-self:start;font-size:12px}.leader-report-context{white-space:pre-line}.event-site-meta{margin:4px 0;font-size:12px;color:#345d47;font-weight:600}
@media(max-width:760px){.staff-expense-card{grid-template-columns:1fr;padding:12px}.staff-expense-card>.field-label{grid-column:1/-1}.expense-receipt-upload{width:100%;text-align:center}}
@media(max-width:760px){.transport-details{grid-template-columns:1fr}.rest-time-selects{max-width:none}}
.share-photo-card{display:grid;grid-template-columns:28px 78px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #bfd8ca;border-radius:12px;background:#f6fbf7;align-items:center}.share-photo-order{font-size:18px;font-weight:800;color:#16583d;font-variant-numeric:tabular-nums;text-align:center}.share-photo-preview{width:78px;height:78px;padding:0;border:1px solid #afc6ba;border-radius:9px;background:#e4eee8;overflow:hidden;display:grid;place-items:center;color:#466854}.share-photo-preview img{width:100%;height:100%;object-fit:contain;background:#edf3ef}.share-photo-preview img[hidden],.share-photo-placeholder[hidden]{display:none}.share-photo-placeholder{font-size:16px}.share-photo-description{min-width:0}.share-photo-select{display:flex;gap:10px;align-items:center;min-height:44px}.share-photo-select input{width:22px;height:22px;min-height:22px;flex:none;accent-color:var(--green)}.share-photo-select strong{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.share-photo-description small{display:block;font-size:11px;color:#526c5e;line-height:1.7;padding-left:32px}.share-photo-move{grid-column:3;display:flex;gap:8px}.share-photo-move button{min-height:44px;padding:8px 12px;font-size:12px}.share-photo-unselected{background:#fafcfb;border-color:#e0e8e3}.share-photo-unselected .share-photo-order{color:#81978c}.share-preview-dialog{width:min(900px,calc(100vw - 24px));max-height:94dvh;border:0;border-radius:16px;padding:0;color:var(--ink);background:white;box-shadow:var(--shadow)}.share-preview-dialog .dialog-heading h2{font-size:16px;overflow-wrap:anywhere;min-width:0}.share-preview-content{display:grid;place-items:center;max-height:calc(94dvh - 175px);overflow:auto;min-height:140px;padding:12px;background:#edf3ef}.share-expanded-photo{display:block;width:auto;max-width:100%;max-height:calc(94dvh - 199px);object-fit:contain}.share-preview-help{margin:0;padding:12px 20px;line-height:1.7}.share-preview-dialog .dialog-footer{padding-top:12px;padding-bottom:12px}
@media(max-width:760px){.share-photo-card{grid-template-columns:23px 66px minmax(0,1fr);gap:9px;padding:12px 10px}.share-photo-preview{width:66px;height:72px}.share-photo-order{font-size:16px}.share-photo-move{grid-column:2/-1;justify-content:flex-end}.share-photo-move button{flex:1;max-width:130px;min-height:46px}.share-photo-description small{padding-left:0;margin-top:4px}.share-photo-select{gap:8px}.share-preview-dialog{width:calc(100vw - 12px)}.share-preview-help{padding:12px 16px}}
.leader-mode-bar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:14px 24px 0;padding:16px 20px;border:1px solid #9ccdb7;border-radius:14px;background:#edf9f1;color:#174e36}.leader-mode-bar[hidden]{display:none}.leader-mode-bar>div{flex:1}.leader-mode-bar strong{font-size:16px}.leader-mode-bar p{font-size:12px;margin:5px 0 0}.leader-mode-bar label{font-size:12px;font-weight:600;display:grid;gap:6px}.leader-mode-bar select{min-height:42px;min-width:180px;padding:8px 10px;border:1px solid #a9c7b7;border-radius:9px;background:white}.leader-preview-entry{text-align:right;margin:8px 24px}.leader-preview-entry:has(button[hidden]){display:none}.leader-calendar .sidebar-section,.leader-calendar .drive-note{display:none}.leader-calendar .mobile-nav{grid-template-columns:repeat(2,1fr)}.leader-report-context{padding:12px 14px;background:#f4f8f5;border-radius:9px;margin:0 0 20px;font-weight:600;font-size:14px}.leader-travel-heading{font-size:15px;margin:24px 0 8px}.leader-correction-section{margin-top:20px;padding:16px;background:#fff8df;border:1px solid #e6cb71;border-radius:12px}.leader-correction-section textarea{font-size:16px}.leader-report-dialog .save-note{font-size:11px}.leader-calendar #travel-sync-banner{display:none!important}
@media(max-width:760px){.leader-mode-bar{margin:10px 12px 0;padding:14px;gap:12px}.leader-mode-bar>div{flex-basis:100%}.leader-mode-bar label{flex:1;min-width:0}.leader-mode-bar select{min-width:0;width:100%;font-size:16px}.leader-mode-bar button{font-size:12px;padding:10px}.leader-report-dialog .dialog-footer{flex-wrap:wrap}.leader-report-dialog .save-note{flex-basis:100%}.leader-preview-entry{margin:8px 14px}}
@media(max-width:760px){.event-share-entry{align-items:flex-start;flex-direction:column;gap:12px}.event-share-entry>button{width:100%}.share-dialog{width:calc(100vw - 16px);max-height:94dvh;border-radius:14px}.share-dialog .dialog-body{max-height:calc(94dvh - 155px);padding:18px 16px}.share-dialog .dialog-heading,.share-dialog .dialog-footer{padding:16px}.share-dialog textarea{font-size:16px}}
/* Personal calendars never expose whole-roster summaries or management entry points. */
.worker-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;background:#eff9f4;border-bottom:1px solid #d4eade;color:#164e38}
.worker-mode-bar[hidden]{display:none}.worker-mode-bar strong{font-size:17px}.worker-mode-bar p{font-size:13px;line-height:1.6;margin:4px 0 0;color:#526b5c}
.worker-calendar .staff-summary-section,.worker-calendar .sidebar-section,.worker-calendar .sidebar-hint{display:none}
.worker-calendar .mobile-nav{grid-template-columns:repeat(2,1fr)}
.worker-report-deadline{padding:12px 14px;border:1px solid #cce2d6;border-radius:12px;background:#f0faf4;font-size:14px;font-weight:650;line-height:1.7;color:#245c43;white-space:pre-line}
.worker-coworkers{margin:0 0 18px;padding:12px 14px;border-left:3px solid #83b99b;border-radius:0 9px 9px 0;background:#f4f8f5;color:#294b38;font-size:14px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}
#worker-report-deadline{color:#bd2028;border-color:#efc6c8;background:#fff5f5}
.attachment-worker-share{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px;background:#edf9f2;border-top:1px solid #c9ded0;color:#185a3c;font-size:13px;font-weight:700;cursor:pointer}.attachment-worker-share input{width:22px;height:22px;flex:none;accent-color:#008d60}
.readonly-photo-item{display:grid;gap:8px;min-width:0;align-content:start}.readonly-photo-item .readonly-photo-card{width:100%}.photo-download-button{min-height:44px;width:100%;font-size:12px}.attachment-card>.photo-download-button{border-radius:0 0 10px 10px;border-width:1px 0 0}.attachment-heading{flex-wrap:wrap;gap:10px}.attachment-heading #attachments-download{margin-left:auto;font-size:12px}.readonly-section-heading{flex-wrap:wrap;gap:10px}.readonly-section-heading button{font-size:12px;min-height:44px}.image-download-dialog{width:min(480px,calc(100vw - 24px));padding:0;border:0;border-radius:16px;color:var(--ink);background:white;box-shadow:var(--shadow)}.image-download-dialog h2{font-size:18px}.image-download-dialog .dialog-body{padding:20px}.image-download-dialog .dialog-body>a{display:inline-flex;min-height:44px;align-items:center}.image-download-dialog .dialog-body>a[hidden]{display:none}
.worker-calendar-entry{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:44px;padding:10px 16px;border:1px solid #95cbb4;border-radius:10px;background:#e7f7ee;color:#135d42;font-weight:750;font-size:13px}.worker-calendar-entry:hover{background:#d5f0e2}.worker-calendar-entry:disabled{opacity:.55;cursor:wait}.worker-calendar-help{font-size:14px;line-height:1.9;color:#244d3b;margin:0 0 12px}.worker-calendar-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.worker-calendar-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;min-height:56px;padding:14px 16px;border:1px solid #bad8c9;border-radius:11px;background:#f4faf6;color:#214d39;text-align:left}.worker-calendar-choice:hover{background:#e6f6ec;border-color:#74b794}.worker-calendar-choice strong{font-size:16px;overflow-wrap:anywhere}.worker-calendar-choice span{font-size:12px;white-space:nowrap;color:#376c51}.worker-entry-notice{margin-top:0}
@media(max-width:600px){.worker-calendar-entry{width:100%;justify-content:space-between;font-size:14px}.worker-calendar-rows{gap:8px}.worker-calendar-choice{padding:13px 12px;gap:6px;min-height:58px}.worker-calendar-choice strong{font-size:15px}.worker-calendar-choice span{font-size:11px}}
.worker-config-rows{display:grid;gap:10px;margin-top:20px}.worker-config-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:14px;border:1px solid #dce8e0;border-radius:12px;background:#fbfdfb}.worker-config-row .field-label{margin:0}.worker-config-row input{font-size:16px}.worker-config-row button{min-height:44px;white-space:nowrap}
.worker-password-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 24px}.worker-password-actions button{min-height:44px}.worker-config-dialog input{font-size:16px}.worker-config-dialog .worker-report-deadline small{font-weight:400}.worker-config-dialog h3{margin-top:24px}
@media(max-width:600px){.worker-mode-bar{padding:13px 16px;align-items:flex-start;flex-direction:column;gap:10px}.worker-mode-bar strong{font-size:16px}.worker-config-row{grid-template-columns:1fr;padding:12px;gap:8px}.worker-config-row button{justify-self:end}.worker-config-dialog .dialog-footer{flex-wrap:wrap}.worker-config-dialog .save-note{flex-basis:100%}}
.full-detail-editor{display:block;min-height:120px;max-height:none!important;overflow-y:hidden;resize:none;field-sizing:content}
.detail-link-actions{display:flex;flex-wrap:wrap;gap:8px;margin:-3px 0 22px;overflow-wrap:anywhere}.detail-link-actions a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:10px 13px;border:1px solid #abcab9;border-radius:10px;background:#f1faf5;color:#145c3e;font-size:12px;font-weight:650;line-height:1.6;max-width:100%}
.readonly-site-details,.readonly-site-photos{margin:0 0 22px;padding:18px;border:1px solid #c8dfd1;border-radius:13px;background:#fbfefc}.readonly-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.readonly-section-heading h3{margin:0;font-size:15px;color:#234d37}.readonly-section-heading>span{flex:none;color:#5a7767;background:#eef5f0;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:600}.full-detail-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-size:15px;line-height:1.85;max-height:none;overflow:visible;color:#253e30}.full-detail-text a{color:#096d4c;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.full-detail-text a:focus-visible{outline-offset:2px}.readonly-site-details>.field-help,.readonly-site-photos>.field-help{margin:12px 0 0;color:#647e6e;font-size:11px;line-height:1.8}.readonly-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.readonly-photo-card{padding:0;min-width:0;overflow:hidden;border:1px solid #c2d7ca;border-radius:10px;background:#f1f7f3;display:grid;grid-template-rows:110px auto;text-align:left}.readonly-photo-card img{width:100%;height:110px;object-fit:contain;background:#e8f1eb;grid-area:1/1}.readonly-photo-placeholder{display:grid;place-items:center;min-width:0;height:110px;grid-area:1/1;color:#627e6d;font-size:12px}.readonly-photo-name{padding:9px 10px;font-size:11px;line-height:1.6;overflow-wrap:anywhere;background:white}.readonly-photo-dialog .dialog-footer{justify-content:flex-end;flex-wrap:wrap}.readonly-photo-dialog .primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
@media(max-width:760px){.readonly-site-details,.readonly-site-photos{padding:14px 12px;margin-bottom:18px}.full-detail-text{font-size:16px;line-height:1.85}.readonly-section-heading{align-items:flex-start;gap:8px}.readonly-section-heading>span{font-size:9px;white-space:nowrap}.readonly-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.readonly-photo-card{grid-template-rows:122px auto}.readonly-photo-card img,.readonly-photo-placeholder{height:122px}.readonly-photo-name{font-size:12px}.detail-link-actions a{font-size:13px;min-height:46px}}
.event-share-approval{padding:15px 16px;border:1px solid #9cd4ba;border-radius:14px;background:#effbf4}.event-share-approval .work-completion-option{margin:0}.event-share-approval input{accent-color:#008d60;width:22px;height:22px;flex:none}.event-share-approval .field-help{margin:8px 0 0}.event-share-approval[hidden]{display:none}
.event-detail-section{margin:22px 0}.detail-block{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;margin:0 0 16px}.detail-block:last-child{margin-bottom:0}.detail-block-boxed{border:2px solid #d29329;border-left-width:5px;border-radius:10px;background:#fff9ec;padding:14px 16px}.detail-text-red{color:#ba2d28}.detail-text-blue{color:#1659aa}.detail-text-green{color:#126b43}.detail-text-orange{color:#975000}.detail-block a{color:#126b56;text-decoration:underline;text-underline-offset:3px}.detail-block-editor-card,.detail-template-card,.share-text-block{min-width:0;border:1px solid #d4e2d9;border-radius:12px;background:#fff;padding:14px;margin:0 0 14px}.detail-block-editor-card-header,.detail-block-editor-toolbar,.detail-block-editor-controls,.detail-block-editor-actions,.detail-template-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.detail-block-editor-card-header{justify-content:space-between;margin-bottom:10px}.detail-block-editor-title{font-size:13px;color:#325b45;font-weight:700}.detail-block-editor-actions button{font-size:11px;min-height:36px;padding:6px 10px}.detail-block-editor-controls{margin:10px 0}.detail-block-editor-color-label{display:flex;align-items:center;gap:7px;font-size:12px}.detail-block-editor-controls select{min-width:115px;width:auto;min-height:38px;padding:7px 10px}.detail-block-editor-box-label,.detail-template-enabled{display:flex;align-items:center;gap:8px;font-size:12px}.detail-block-editor-box-label input,.detail-template-enabled input{width:19px;min-height:19px;height:19px;accent-color:var(--green)}.detail-block-editor-text{font-size:16px;line-height:1.8;resize:none;overflow:hidden;max-height:none;min-height:120px}.detail-block-editor-help,.detail-block-editor-status,.detail-template-token-help{font-size:11px;color:#667e70;line-height:1.7;margin:9px 0;overflow-wrap:anywhere}.detail-block-editor-preview{padding:12px;border-top:1px dashed #c8d7ce;margin-top:12px}.detail-block-editor-preview summary{cursor:pointer;font-size:12px;color:#236c4b;margin-bottom:10px}.detail-block-editor-add{border:1px dashed #8fbaa4;border-radius:10px;padding:12px;min-height:44px;width:100%;color:#236b4b;font-weight:600}.detail-template-card h3{margin:0 0 12px;font-size:16px}.detail-template-controls{margin:10px 0}.detail-template-controls input[type=number]{width:90px}.detail-template-import{border-top:1px solid var(--line);padding-top:15px}.detail-template-import summary{cursor:pointer;color:#426b52;font-size:12px}.detail-template-import textarea{margin-top:10px;font-size:12px}.share-text-block-preview{font-size:14px;line-height:1.8;margin:10px 0}.share-text-blocks .share-choice{margin:0}.share-text-block{background:#fbfdfb}.share-text-block>.detail-block-editor-actions{justify-content:flex-end}
.detail-text-boxed{display:inline;border:1.5px solid #bc8628;border-radius:4px;background:#fff7df;padding:.08em .22em;box-decoration-break:clone;-webkit-box-decoration-break:clone;line-height:1.95;overflow-wrap:anywhere}.detail-block-editor-box-button{min-height:44px;padding:9px 12px;border:1px solid #a8c2b2;border-radius:8px;background:#f4f8f5;color:#265a3e;font-size:12px;font-weight:600}.detail-block-editor-box-button:hover{background:#e9f2ec}.detail-block-editor-box-button:focus-visible{outline:2px solid #167256;outline-offset:3px}.detail-block-editor-box-button:disabled{opacity:.5;cursor:not-allowed}
.detail-block-editor-selection{font-size:12px;color:#426b52;line-height:1.6;margin:8px 0}.detail-block-editor-style-preview{border:1px solid #d7e4dc;border-radius:9px;padding:12px;background:#f8fcf9;margin-top:12px;overflow-wrap:anywhere}.detail-block-editor-style-preview-title{font-size:11px;line-height:1.6;color:#526e5d;margin:0 0 8px;font-weight:600}.detail-block-editor-style-preview-body{font-size:16px;line-height:1.85;min-width:0}.detail-block-editor-style-preview[hidden]{display:none}
@media(max-width:760px){.detail-block-editor-card,.detail-template-card,.share-text-block{padding:12px}.detail-block-editor-card-header{align-items:flex-start;gap:6px}.detail-block-editor-actions{gap:5px}.detail-block-editor-actions button{font-size:11px;min-height:40px}.detail-block-editor-controls{gap:12px}.detail-block-editor-controls select{font-size:16px}.detail-block-editor-box-button{min-height:46px;font-size:13px}.detail-block-boxed{padding:12px}.share-text-block-preview{font-size:16px}}

/* Horizontal navigation leaves native vertical scrolling and pinch zoom available. */
#day-panel,#preview-content,#worker-photo-preview-content,#share-preview-content{touch-action:pan-y pinch-zoom}
.day-pager{display:flex;align-items:center;flex:none;gap:2px}.day-pager .icon-button{width:34px;min-height:44px;font-size:29px;color:var(--green)}
.photo-pager{display:flex;align-items:center;justify-content:center;gap:22px;padding:6px 16px;background:#f3f7f4;border-top:1px solid var(--line)}
.photo-pager-button{display:grid;place-items:center;width:48px;height:44px;border-radius:9px;font-size:30px;color:var(--green)}.photo-pager-button:hover{background:#e4efe8}.photo-pager-button:disabled{opacity:.25;cursor:default}.photo-pager-count{min-width:55px;text-align:center;font-variant-numeric:tabular-nums;font-size:13px;font-weight:650;color:#324f40}
@media(max-width:600px){.day-header{gap:7px}.day-pager .icon-button{width:30px}.day-header h2 small{display:block;margin:3px 0 0}.photo-pager{gap:24px;padding:3px 12px}}

/* Report status stays visible; personal breakdowns are opened on demand. */
details.staff-report-overview{display:block;padding:0;gap:0}
summary.staff-report-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 12px;cursor:pointer;list-style:none;user-select:none;min-height:44px}
summary.staff-report-summary::-webkit-details-marker{display:none}
.staff-report-summary-text{min-width:0;font-size:12px;line-height:1.65}
.staff-report-toggle{display:flex;align-items:center;gap:8px;flex:none;font-size:11px;font-weight:650;color:#35664b}
.staff-report-toggle::after{content:'⌄';display:inline-block;font-size:16px;transition:transform .12s ease}
.staff-report-overview[open]>.staff-report-summary .staff-report-toggle::after{transform:rotate(180deg)}
.staff-report-body{display:flex;flex-direction:column;gap:10px;padding:10px}
.staff-report-overview:not([open])>.staff-report-body{display:none}
.day-event-group{min-width:0;padding-bottom:10px}.day-event-group>.day-event{width:100%;text-align:left;margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
.day-event-group>.staff-report-overview{margin-top:0;border-top:0;border-radius:0 0 10px 10px}
.agenda-event-group{min-width:0;padding-bottom:12px}.agenda-event-group>.agenda-event{border-bottom:0}.agenda-event-group>.staff-report-overview{margin:0 0 0 87px}
@media(max-width:760px){.agenda-event-group>.staff-report-overview{margin-left:0}}
@media(prefers-reduced-motion:reduce){.staff-report-toggle::after{transition:none}}

/* Calendar workspace navigation */
.app-shell {
  --calendar-header-height: 62px;
  --calendar-rail-width: 74px;
  --calendar-nav-ink: #23362d;
  --calendar-nav-border: #e2e9e4;
  display: grid;
  grid-template: auto 1fr / var(--calendar-rail-width) minmax(0, 1fr);
  align-items: start;
}

.app-shell > .topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 15;
  height: var(--calendar-header-height);
  padding: 0 24px 0 15px;
  border-color: var(--calendar-nav-border);
}

.app-shell > .main-shell { grid-column: 2; grid-row: 2; }
.app-shell > .calendar-rail[hidden] + .main-shell { grid-column: 1 / -1; }
.topbar-title { gap: 12px; min-width: 0; }
.topbar-actions { gap: 12px; }
.topbar .menu-toggle, .topbar-actions .icon-button { width: 40px; height: 40px; }
.menu-toggle {
  display: grid;
  place-items: center;
  color: #45594f;
  border-radius: 10px;
}
.menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px currentColor, 0 5px currentColor;
}
.menu-toggle[aria-expanded="true"], .menu-toggle:hover { background: #edf4f0; color: #12634d; }
.calendar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--calendar-nav-ink);
  padding: 0;
  font-weight: 760;
  white-space: nowrap;
}
.calendar-brand-mark {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.calendar-current-scope {
  max-width: 18ch;
  overflow: hidden;
  color: #245343;
  background: #edf4f0;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-menu-backdrop {
  position: fixed;
  z-index: 16;
  inset: var(--calendar-header-height) 0 0;
  width: 100%;
  border: 0;
  background: #192e2430;
}
.app-shell > .calendar-menu {
  display: flex;
  position: fixed;
  z-index: 17;
  inset: var(--calendar-header-height) auto 0 0;
  width: min(315px, calc(100vw - 34px));
  height: auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 17px 14px 20px;
  box-shadow: 10px 0 32px #192e241d;
}
.app-shell > .calendar-menu[hidden], .calendar-rail[hidden], .calendar-rail-button[hidden] { display: none; }
.calendar-menu .profile { margin: 0; padding: 10px; background: #f4f7f5; border-radius: 11px; }
.calendar-menu .profile strong, .calendar-menu .profile small { overflow-wrap: anywhere; }
.calendar-menu .sidebar-nav { margin-top: 20px; }
.calendar-menu .sidebar-section, .calendar-menu .sidebar-bottom {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--calendar-nav-border);
}
.calendar-menu .nav-item, .calendar-menu .utility-button {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}
.calendar-menu .utility-button:hover { background: #f1f6f3; color: #194f40; }

.calendar-rail {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: var(--calendar-header-height);
  min-height: calc(100dvh - var(--calendar-header-height));
  padding: 13px 8px;
  background: #fff;
  border-right: 1px solid var(--calendar-nav-border);
}
.calendar-rail-button {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 55px;
  min-height: 58px;
  padding: 5px 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #45594f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.calendar-rail-button[aria-pressed="true"] { border-color: #bbd5c8; box-shadow: inset 3px 0 #197b5b; background: #ecf5ef; color: #0e533d; }
.calendar-rail-button:disabled { cursor: default; }
.calendar-rail-button:disabled:not([aria-pressed="true"]) { opacity: .55; }
.calendar-rail-button:hover:not(:disabled) { background: #f0f6f3; }
.calendar-role-icon {
  position: relative;
  width: 30px;
  height: 29px;
  border-radius: 7px;
  color: #184f40;
  background: #d9eee4;
}
.calendar-role-icon::before, .calendar-role-icon::after { content: ""; position: absolute; }
.calendar-role-admin::before {
  inset: 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 43%, currentColor 43% 57%, transparent 57%),
    linear-gradient(transparent 43%, currentColor 43% 57%, transparent 57%);
}
.calendar-role-team { background: #e2ebf9; color: #2c5283; }
.calendar-role-team::before, .calendar-role-person::before {
  width: 6px;
  height: 6px;
  top: 7px;
  left: 12px;
  border-radius: 50%;
  background: currentColor;
}
.calendar-role-team::before { left: 8px; box-shadow: 8px 0 currentColor; }
.calendar-role-team::after, .calendar-role-person::after {
  top: 15px;
  height: 6px;
  left: 9px;
  width: 12px;
  border-radius: 7px 7px 2px 2px;
  background: currentColor;
}
.calendar-role-team::after { left: 6px; width: 8px; box-shadow: 10px 0 currentColor; }
.calendar-role-person { background: #f1e8f8; color: #624374; }
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#preview-dialog .dialog-heading,
#worker-photo-preview-dialog .dialog-heading,
#share-preview-dialog .dialog-heading { justify-content: flex-end; }
#preview-help:empty,
#worker-photo-preview-status:empty,
#share-preview-help:empty { display: none; }

@media (max-width: 760px) {
  .app-shell {
    --calendar-header-height: 56px;
    grid-template: auto auto 1fr / minmax(0, 1fr);
  }
  .app-shell > .topbar { padding: 0 10px 0 6px; gap: 8px; }
  .app-shell > .main-shell { grid-column: 1; grid-row: 3; }
  .topbar-title { gap: 4px; }
  .topbar-actions { gap: 4px; }
  .topbar .menu-toggle, .topbar-actions .icon-button { width: 36px; height: 40px; }
  .calendar-brand { gap: 6px; font-size: 14px; }
  .calendar-brand-mark { width: 27px; height: 27px; }
  .calendar-current-scope { max-width: 10ch; padding: 4px 5px; font-size: 10px; }
  .calendar-rail {
    grid-column: 1;
    flex-direction: row;
    position: static;
    min-height: 0;
    padding: 6px 12px;
    gap: 6px;
    border: 0;
    border-bottom: 1px solid var(--calendar-nav-border);
  }
  .calendar-rail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 66px;
    min-height: 36px;
    padding: 4px 7px;
  }
  .calendar-role-icon { width: 30px; height: 29px; zoom: .77; }
}

@media (max-width: 360px) {
  .topbar-actions { gap: 0; }
  .calendar-brand { font-size: 12px; }
  .calendar-current-scope { max-width: 7ch; }
}

/* Schedule editing */
#event-dialog > form > .dialog-body { display: grid; gap: 14px; background: #f5f7f6; }
#event-dialog .eyebrow { display: none; }
.event-edit-section {
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dce6e0;
  border-radius: 13px;
}
.event-edit-section h3 { margin: 0 0 13px; color: #254438; font-size: 14px; }
.event-edit-section .readonly-section-heading h3, .event-edit-section .attachment-heading h3 { margin: 0; }
.event-edit-section .field-label { margin: 0 0 12px; }
.event-edit-section .field-label:last-child, .event-edit-section .form-grid .field-label { margin-bottom: 0; }
.event-edit-section .field-label > input {
  min-height: 43px;
  margin-top: 5px;
  border-color: #cad8d0;
  background: #fff;
  font-size: 16px;
}
.event-edit-section .field-optional { color: #61736a; }
.event-date-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin-bottom: 12px; }
.event-date-row .field-label { margin: 0; }
.event-date-row .all-day-option { margin: 0; min-height: 43px; padding: 7px 12px; border: 1px solid #dce6e0; border-radius: 8px; background: #f4f8f5; white-space: nowrap; }
.event-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-date-row .field-label, .event-time-grid .field-label { min-width: 0; }
.event-native-picker {
  display: block;
  min-inline-size: 0;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid #cad8d0;
  border-radius: 9px;
  background: #fff;
}
.event-native-picker:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #16725610; }
.event-native-picker > input {
  display: block;
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  min-block-size: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.event-native-picker > input:focus { box-shadow: none; }
.event-native-picker > input::-webkit-date-and-time-value { min-width: 0; margin: 0; text-align: start; }
.event-native-picker > input::-webkit-datetime-edit { padding: 0; }
.event-work-slots { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; margin-top: 12px; color: #586e61; font-size: 12px; }
.event-work-slots .work-slots-summary { margin: 0; }
.assignment-disclosure { border: 1px solid #dce6e0; border-radius: 10px; }
.assignment-disclosure summary {
  display: flex;
  align-items: center;
  list-style: none;
  min-height: 44px;
  gap: 8px;
  padding: 8px 12px;
  color: #234b39;
  background: #f3f8f5;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}
.assignment-disclosure summary::-webkit-details-marker { display: none; }
.assignment-disclosure summary::after { content: '▼'; margin-left: auto; color: #386759; font-size: 11px; }
.assignment-disclosure[open] summary::after { transform: rotate(180deg); }
.assignment-count { font-size: 11px; padding: 2px 7px; border-radius: 10px; background: #dfeee5; }
.assignment-content { padding: 10px 12px; }
.event-detail-section { margin: 0; }
.event-detail-summary { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; margin-top: 8px; background: #f7faf8; border-radius: 9px; }
.event-detail-summary > .field-help { margin: 0; }
.event-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.event-detail-actions:not(:has(> button:not([hidden]))) { display: none; }
.event-detail-actions > button { min-height: 44px; }
.event-detail-dialog { width: min(780px, calc(100vw - 24px)); }
.event-detail-dialog .dialog-body { padding-top: 12px; background: #f4f7f5; }
.event-detail-dialog .detail-block-editor-card { padding: 12px; border-color: #cfded5; background: #fff; }
.detail-live-paper { position: relative; }
.detail-live-paper .detail-block-editor-text, .detail-live-text {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  font: 400 16px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  tab-size: 4;
}
.detail-live-paper .detail-block-editor-text {
  position: relative;
  z-index: 1;
  margin: 0;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #17382a;
}
.detail-live-paper .detail-block-editor-text::placeholder { color: #677c70; -webkit-text-fill-color: #677c70; }
.detail-live-paper .detail-block-editor-text::selection { background: #3771ac40; }
.detail-live-text { position: absolute; inset: 0; pointer-events: none; overflow: hidden; color: #20382c; }
.detail-size-small { font-size: .84em; }
.detail-size-large { font-size: 1.24em; }
.detail-size-xlarge { font-size: 1.51em; }
.detail-live-paper:not(.show-formatted) [class*="detail-size-"] { font-size: inherit; }
.detail-live-paper.show-formatted .detail-live-text { position: relative; overflow: visible; pointer-events: auto; background: #f6f9f7; border-radius: 8px; }
.detail-live-paper .detail-block-editor-text[hidden], .detail-size-view[hidden] { display: none; }
.detail-size-view { margin-top: 8px; min-height: 44px; color: #19614a; font-weight: 700; padding: 5px 10px; }
.detail-live-text .detail-text-boxed {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #a36312;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.detail-live-controls {
  position: sticky;
  z-index: 2;
  bottom: 0;
  padding: 8px;
  border: 1px solid #bed5c7;
  border-radius: 9px;
  background: #edf7f1;
  box-shadow: 0 3px 9px #22352b14;
}
.detail-live-controls[hidden] { display: none; }
.detail-live-controls select, .detail-live-controls button { min-height: 40px; }
.event-detail-controls:empty { display: none; }
@media (max-width: 760px), (pointer: coarse) {
  .event-detail-dialog[open] {
    position: fixed;
    inset: var(--detail-visible-top, 0px) 0 auto;
    margin: 6px auto 0;
    max-height: calc(var(--detail-visible-height, 100dvh) - 12px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .event-detail-dialog .dialog-heading, .event-detail-dialog .dialog-footer { flex: none; }
  .event-detail-dialog .dialog-heading { padding-block: 8px; }
  .event-detail-dialog .dialog-body { min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; }
  .event-detail-controls { flex: none; padding: 5px 10px; background: #f4f7f5; }
  .event-detail-controls > .detail-live-controls { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 5px; box-shadow: none; }
  .event-detail-controls .detail-block-editor-color-label { min-width: 0; }
  .event-detail-controls select { min-width: 0; width: 100%; padding-inline: 7px; font-size: 16px; }
  .event-detail-controls select, .event-detail-controls button { min-height: 38px; }
  .event-detail-controls button { padding-inline: 4px; }
}
@media(max-width: 600px) {
  .event-edit-section { padding: 13px 12px; }
  .event-date-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .event-date-row .all-day-option { justify-self: start; font-size: 12px; }
  .detail-live-controls { gap: 5px; padding: 6px; }
}
@media(max-width: 350px) {
  .event-time-grid { grid-template-columns: minmax(0, 1fr); }
}

.staff-summary-section.assignment-disclosure > summary { margin: -4px -4px 0; }
.staff-summary-section.assignment-disclosure[open] > summary { margin-bottom: 7px; }
.staff-summary-section.assignment-disclosure .staff-summary-heading { justify-content: flex-end; }
.staff-summary-section[hidden] { display: none; }
.event-template-insert { padding-inline: 16px; font-size: 14px; }
#event-template-choices { display: grid; gap: 8px; }
.event-absence-warning { display: block; margin: 4px 0; color: #a42431; font-size: 12px; font-weight: 750; }
.event-absence-warning[hidden] { display: none; }
#event-absence-warning { margin: 0; padding: 10px 13px; border: 1px solid #eec5c7; border-radius: 8px; background: #fff1f1; }

.calendar-role-staff, .calendar-role-payroll { display: grid; place-items: center; font-size: 18px; line-height: 1; }
.calendar-role-staff { background: #faebdd; color: #854c21; }
.calendar-role-payroll { background: #e1edf0; color: #295367; }
.calendar-rail-button .weekly-rail-label { font-size: 9px; }
.event-work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin: 6px 0 0; font-size: 12px; line-height: 1.55; min-width: 0; }
.event-plan-chip {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--plan-border, #bbc7d5);
  border-radius: 5px;
  background: var(--plan-bg, #edf1f6);
  color: var(--plan-text, #30445d);
  font-size: inherit;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.event-plan-short { --plan-bg: #e0f1ff; --plan-border: #91c7ec; --plan-text: #174c75; }
.event-plan-half { --plan-bg: #ffeadc; --plan-border: #eca97b; --plan-text: #783913; }
.event-plan-half-day { --plan-bg: #fbe7ee; --plan-border: #dc99b3; --plan-text: #702842; }
.event-plan-day { --plan-bg: #dff4e9; --plan-border: #8dc9a8; --plan-text: #20573b; }
.event-plan-night { --plan-bg: #efe4fa; --plan-border: #bea1da; --plan-text: #563477; }
.event-plan-foundation { --plan-bg: #fff0c9; --plan-border: #dfba65; --plan-text: #644410; }
.event-plan-construction { --plan-bg: #def4f2; --plan-border: #82bfbb; --plan-text: #1d5550; }
.event-plan-delivery { --plan-bg: #f5e9dd; --plan-border: #cfb099; --plan-text: #60412c; }
.event-worker-names { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 5px 6px; min-width: 0; }
.event-worker-chip {
  padding: 2px 7px;
  border: 1px solid #d9dedb;
  border-radius: 6px;
  background: #fff;
  color: #1e2722;
  box-shadow: 0 0 0 1px #242b28, 0 2px 3px #0003;
  font-weight: 690;
  overflow-wrap: anywhere;
}
.assignment-plan-picker { max-width: 16rem; }
.event-worker-chip.event-support-chip { background: #fff1df; color: #562f17; border-color: #e7c29b; }
.event-worker-chip.event-pending-crew-chip { background: #626a70; color: #fff; border-color: #535c62; box-shadow: none; }
.support-panel { margin-block: 10px; background: #fff6e9; border: 1px solid #ecd0af; border-radius: 10px; }
.support-panel > summary { color: #69401e; background: #fff0dc; }
.support-panel > summary::after { color: #85542b; }
.support-panel[data-locked] { background: #f3f1ed; border-color: #e0dcd5; }
.support-panel[data-locked] > summary { color: #756c60; background: #eeebe6; cursor: default; }
.support-panel[data-locked] > summary::after { color: inherit; }
.support-panel[data-locked] > div { opacity: .62; }
.support-panel[hidden], .support-company-section[hidden] { display: none; }
.support-company-section { margin: 10px 0 0; padding: 10px; background: #fff7ec; border: 1px solid #efd9bf; border-radius: 9px; }
.support-company-section h4 { margin: 0 0 7px; color: #704524; font-size: 12px; }
.assignee-option.support-option { color: #644022; background: #fff0dc; border-color: #e7cca9; }
.assignee-option.support-option:has(input:checked) { background: #ffe1b8; border-color: #be8650; }
.support-option input { accent-color: #a65a26; }
.support-count-card { border-color: #e5caaa; border-left-color: #bd8c59; }
.support-count-card .staff-count-slots { background: #fff5e7; border-color: #ead1b4; }
.support-count-card .staff-count-slot { border-color: #ead1b4; }
#support-memo { min-height: 150px; resize: vertical; font-size: 16px; line-height: 1.6; }
#day-events .day-event-group { padding-bottom: 3px; }
#day-events .staff-report-summary { min-height: 32px; gap: 6px; padding: 3px 9px; background: #f2f7f3; }
#day-events .staff-report-summary-text { font-size: 11px; line-height: 1.35; }
#day-events .staff-report-toggle { gap: 4px; }
#day-events .staff-report-body { gap: 5px; padding: 5px; }
#day-events .staff-report-row { gap: 5px; padding: 6px 8px; }
#day-events .staff-report-person-heading { gap: 5px; padding-bottom: 4px; }
#day-events .staff-report-values { gap: 4px; }
#day-events .staff-report-field { gap: 2px; padding: 4px 6px; }
#day-events .staff-report-expenses { gap: 4px; padding-top: 4px; }
.staff-management-dialog { width: min(680px, calc(100vw - 24px)); }
.staff-management-tabs { margin: 0 0 14px; }
.staff-management-tabs[hidden] { display: none; }
.staff-management-dialog .staff-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) auto; gap: 8px; align-items: end; }
.staff-management-dialog .staff-editor-row .field-label { margin: 0; }
.staff-management-dialog .staff-editor-row input { font-size: 16px; }
.staff-retire { color: #943542; min-height: 36px; white-space: nowrap; }
.staff-team-list { display: grid; gap: 9px; margin-bottom: 12px; }
.team-member-field { margin: 9px 0; border: 0; padding: 0; }
.team-member-field legend { font-weight: 700; color: #39594a; margin-bottom: 7px; }
@media (max-width: 760px) {
  .calendar-rail-button { min-width: min(62px, 18vw); padding-inline: 5px; }
  .calendar-rail-button .weekly-rail-label { white-space: nowrap; }
}
@media (max-width: 390px) {
  .calendar-rail { gap: 4px; padding-inline: 7px; }
  .calendar-rail-button { font-size: 9px; gap: 3px; padding-inline: 3px; }
}

.calendar-activity { max-width: 850px; margin-inline: auto; }
.calendar-activity h2 { margin: 0 0 16px; font-size: clamp(23px, 4vw, 30px); }
.activity-status { margin: 0 0 12px; color: #51665b; }
.activity-status:empty { display: none; }
.activity-items { display: grid; gap: 13px; }
.activity-card { min-width: 0; overflow: hidden; border: 1px solid #dce7e0; border-radius: 13px; background: #fff; }
.activity-card-title { position: relative; display: grid; gap: 3px; width: 100%; text-align: start; padding: 13px 15px 13px 21px; }
button.activity-card-title:hover { background: #f1f7f4; }
.activity-card-title::before { content: ''; position: absolute; top: 14px; bottom: 14px; left: 12px; width: 3px; border-radius: 6px; background: var(--activity-color, var(--green)); }
.activity-card-title strong { font-size: 16px; overflow-wrap: anywhere; }
.activity-card-title > span { font-size: 12px; color: #51665b; }
.activity-card-rows { list-style: none; margin: 0; padding: 0 13px; border-top: 1px solid #e7eeea; }
.activity-row { display: grid; grid-template-columns: 29px minmax(0, 1fr) max-content; gap: 9px; align-items: start; padding: 10px 0; }
.activity-row + .activity-row { border-top: 1px solid #ebf1ed; }
.activity-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e3f1ed; color: #145840; font-size: 12px; font-weight: 750; }
.activity-row-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.activity-row-text strong { font-size: 12px; color: #1c5945; }
.activity-row-text span { font-size: 13px; font-weight: 650; }
.activity-row-text small, .activity-row time { font-size: 11px; color: #52655a; }
.activity-row time { white-space: nowrap; padding-top: 2px; }
.activity-more { display: block; min-height: 44px; margin: 14px auto 0; }
.mobile-create { display: none; }
.mobile-nav button > .mobile-tab-icon { position: relative; display: block; width: 19px; height: 19px; }
.mobile-tab-calendar { border: 2px solid currentColor; border-radius: 4px; }
.mobile-tab-calendar::before { content: ''; position: absolute; top: 3px; left: 0; right: 0; border-top: 2px solid currentColor; }
.mobile-tab-search::before { content: ''; position: absolute; top: 1px; left: 1px; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.mobile-tab-search::after { content: ''; position: absolute; width: 7px; height: 2px; top: 14px; right: 0; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.mobile-tab-activity::before { content: ''; position: absolute; inset: 2px 2px 5px; border: 2px solid currentColor; border-radius: 8px 8px 3px 3px; }
.mobile-tab-activity::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 2px; border-bottom: 2px solid currentColor; }
@media (max-width: 760px) {
  .app-shell { background: #fff; }
  .app-shell > .topbar { --calendar-header-height: 51px; background: #fff; }
  .app-shell main { padding: 10px 0 calc(135px + env(safe-area-inset-bottom)); }
  .calendar-toolbar { margin: 0; padding: 0 11px 8px; gap: 7px; background: #fff; }
  .month-controls { gap: 7px; flex-wrap: wrap; }
  .month-controls h2 { font-size: clamp(19px, 5.5vw, 27px); letter-spacing: -.035em; }
  .month-controls .month-arrows { margin-left: auto; }
  .calendar-toolbar .toolbar-right { display: none; }
  .calendar-search-view .calendar-toolbar .toolbar-right { display: flex; }
  .calendar-search-view .toolbar-right .view-switch { display: none; }
  .calendar-search-view .toolbar-right .search-box { max-width: none; min-width: 0; }
  .calendar-search-view .toolbar-right input { font-size: 16px; }
  .calendar-search-view .search-box kbd { display: none; }
  .calendar-panel { overflow: hidden; border-radius: 0; border-inline: 0; box-shadow: none; }
  .calendar-weekdays { background: #fff; height: 30px; }
  .calendar-weekdays span:first-child { order: 1; color: #ac4338; }
  .calendar-weekdays span:last-child { color: #4168aa; }
  .calendar-cell { min-height: clamp(68px, 18vw, 94px); padding: 3px 2px; }
  .calendar-cell:nth-child(n) .date-number { color: inherit; }
  .calendar-cell[data-weekday="6"] .date-number { color: #4168aa; }
  .calendar-cell[data-weekday="0"] .date-number { color: #ac4338; }
  .calendar-cell.today .date-number { color: #fff; }
  .calendar-event { font-size: clamp(8px, 2.15vw, 11px); padding-block: 2px; }
  .calendar-activity { padding-inline: 12px; }
  .calendar-activity h2 { margin-bottom: 11px; }
  .mobile-nav {
    position: fixed; display: flex; align-items: center; justify-content: center; gap: 4px;
    width: min(330px, calc(100% - 28px)); left: 50%; right: auto; transform: translateX(-50%);
    bottom: calc(8px + env(safe-area-inset-bottom)); padding: 4px;
    border: 1px solid #dce8e2; border-radius: 17px; background: #fbfdfcf5; box-shadow: 0 7px 24px #14382c28;
  }
  .mobile-nav button { flex: 1; display: grid; place-items: center; min-width: 0; min-height: 52px; padding: 5px 4px; gap: 1px; border-radius: 12px; font-size: 11px; font-weight: 750; color: #485f54; }
  .mobile-nav button.active { color: #165f49; background: #e4f2eb; }
  .mobile-create {
    display: grid; position: fixed; place-items: center; z-index: 45; width: 52px; height: 52px;
    bottom: calc(77px + env(safe-area-inset-bottom)); right: max(13px, env(safe-area-inset-right));
    padding: 0; border-radius: 16px; color: #fff; background: #167256; box-shadow: 0 5px 15px #14523f55;
  }
  .mobile-create span { font-size: 32px; line-height: 1; }
  .day-sheet-open .mobile-create, .calendar-search-view:focus-within .mobile-create { display: none; }
}

@media (min-width: 761px) {
  .app-shell {
    --calendar-view-rail-width: 66px;
    grid-template-columns: var(--calendar-rail-width) minmax(0, 1fr) var(--calendar-view-rail-width);
  }
  .app-shell > .calendar-rail[hidden] + .main-shell { grid-column: 1 / 3; }
  .app-shell > .calendar-view-nav {
    display: flex;
    grid-column: 3;
    grid-row: 2;
    position: sticky;
    top: var(--calendar-header-height);
    min-height: calc(100dvh - var(--calendar-header-height));
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 10px 6px;
    border-left: 1px solid var(--calendar-nav-border);
    background: #fff;
    z-index: 10;
  }
  .calendar-view-nav button {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 50px;
    padding: 6px 3px;
    border-radius: 8px;
    color: #4d6257;
    font-size: 11px;
    font-weight: 720;
  }
  .calendar-view-nav button.active { background: #e4f2eb; color: #165f49; }
  .calendar-view-nav button:hover { background: #eef6f1; }
}

.event-copy-entry { display: flex; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.event-copy-entry[hidden] { display: none; }
.event-copy-entry button, #share-submit-text { min-height: 44px; }
.event-copy-dialog .dialog-body { overflow: auto; max-height: min(64dvh, 610px); }
.event-copy-source { margin: 0; color: var(--ink); font-weight: 750; overflow-wrap: anywhere; }
.event-copy-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }
.event-copy-month button { min-width: 44px; min-height: 44px; font-size: 20px; }
.event-copy-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.event-copy-weekday { padding: 4px 0; text-align: center; color: #546a5e; font-size: 12px; font-weight: 700; }
.event-copy-day { min-width: 0; min-height: 42px; border: 1px solid #d8e3dc; border-radius: 8px; color: var(--ink); background: #fff; font-weight: 650; }
.event-copy-day[aria-pressed="true"] { background: #12644e; color: white; border-color: #12644e; }
.event-copy-day:disabled { opacity: .52; }
.event-copy-count { margin: 16px 0 7px; font-size: 13px; font-weight: 750; }
.event-copy-selected { display: flex; min-height: 32px; flex-wrap: wrap; gap: 6px; }
.event-copy-chip { border-radius: 100px; padding: 6px 9px; background: #e8f2ed; color: #174e3c; font-size: 12px; }
.share-dialog .dialog-footer { flex-wrap: wrap; }
.share-dialog .share-feedback:has(> :not([hidden])) { flex-basis: 100%; }
.share-separate-notice { margin: 0; font-size: 12px; }
