:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#203632;background:#f3f6f3;font-synthesis:none}
#event-list li.event-tinted{border-radius:10px;margin:7px 0;padding:12px 12px!important;border:1px solid transparent;overflow:hidden}#event-list li.event-tinted .schedule-select{left:12px;top:15px}#event-list li.event-tinted .schedule-extra-label{right:12px;bottom:8px}#event-list li.event-tinted p{padding-left:26px}#event-list li.event-tinted:last-child{margin-bottom:7px}
#event-dialog .event-color-field{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:9px;margin:0 0 5px;padding:3px 0 8px}#event-dialog .event-color-field>label{width:100%;font-size:12px;display:block}.event-color-options{display:flex;gap:6px;flex-wrap:wrap}.event-color-choice{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;font-size:12px;background:white;border-radius:7px}.event-color-swatch{display:block;width:15px;height:15px;border-radius:3px;border:1px solid #00000012;flex:none}.event-color-choice[aria-pressed=true]{border-color:#287763;box-shadow:0 0 0 1px #287763;background:#f0f7f2}.event-color-choice:disabled{opacity:.5}
.day-panels .detail-section .schedule-select-all{position:sticky;top:41px;z-index:2;background:#fff;min-height:34px;margin:0;border-bottom:1px solid #e7eee9}.day-panels .section-heading{z-index:3!important}.event-color-field{display:flex;gap:10px;align-items:center;font-size:12px;margin-top:12px}.event-color-field input[type=color]{width:44px;height:34px;padding:3px;border:1px solid #d5e2d9;border-radius:6px}.event-color-preview{padding:6px 12px;border-radius:6px;font-size:12px}#schedule-edit{background:#287763;color:white;border-color:#287763;margin-right:auto}
#mail-dialog #mail-reply{flex:none;min-width:88px;min-height:38px;padding:8px 20px;background:#287763;border-color:#287763;color:#fff;font-size:13px;font-weight:650;border-radius:9px}#mail-dialog #mail-reply:hover:not(:disabled){background:#20634f;border-color:#20634f}#mail-dialog .mail-view-actions{column-gap:16px;row-gap:10px}
#compose-dialog{max-width:680px;padding:24px}.compose-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.compose-header h2{font-size:23px}#compose-form{display:flex;flex-direction:column;gap:14px;margin-top:18px}#compose-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}#compose-form input,#compose-form textarea{width:100%;font:inherit;border:1px solid #d5e2d9;border-radius:8px;padding:10px 12px;color:#203632;background:white}#compose-form textarea{resize:vertical;min-height:160px;max-height:35dvh;line-height:1.7}#compose-from{font-size:12px;color:#73867b}#compose-dialog .dialog-actions{justify-content:flex-end}#compose-review,#compose-send{background:#287763;color:white;border-color:#287763}#compose-summary{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:#f0f6f2;border-radius:10px}#compose-status{font-size:12px;line-height:1.6}#compose-status:empty{display:none}
*{box-sizing:border-box}html{height:100%}body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column}
header{flex:none;padding:16px 24px;display:flex;justify-content:space-between;gap:16px;align-items:center}
h1{font-size:24px;margin:4px 0 0}h2{font-size:22px;margin:0}h3{font-size:16px;margin:16px 0 8px}
p{line-height:1.5;color:#52665f;margin:4px 0}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:700;color:#287763}
.badge{background:#dceee6;color:#246b55;padding:8px 12px;border-radius:24px;font-size:12px;white-space:nowrap}
.account-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.account-controls button{font-size:12px}
[hidden]{display:none!important}button:disabled{opacity:.5;cursor:wait}
dialog{max-width:540px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #dbe4de;border-radius:16px;padding:24px;color:#203632}dialog::backdrop{background:#20363280}
dialog p{font-size:13px;margin:12px 0}.client-label{display:flex;flex-direction:column;gap:8px;font-size:13px}.client-label input{width:100%;padding:10px;border:1px solid #b8c9bf;border-radius:8px;font:inherit}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap}.hint{color:#677c71}
main{flex:1;min-height:0;padding:0 24px 20px;display:flex;flex-direction:column;gap:10px}.notice{flex:none;margin:0;font-size:12px}
.layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,28%);gap:16px}
.calendar,.detail{min-width:0;min-height:0;background:white;border:1px solid #dbe4de;border-radius:16px;padding:18px}
.calendar{display:flex;flex-direction:column;gap:10px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
nav{display:flex;gap:6px}button,select{font:inherit;border:1px solid #dbe4de;background:white;color:#203632;border-radius:8px;padding:7px 10px}
button{cursor:pointer}button:hover{background:#eef5f1}button:focus-visible,input:focus-visible,select:focus-visible,.detail-content:focus-visible{outline:3px solid #247b61;outline-offset:2px}
.settings{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;font-size:12px;flex:none}.settings label{display:flex;align-items:center;gap:6px}
.settings select{max-width:180px;padding:4px 6px;font-size:12px}.toggle{cursor:pointer}input[type="checkbox"]{accent-color:#287763;width:16px;height:16px;margin:0}
#holiday-status{color:#75847e;font-size:11px}.legend{font-size:11px;margin:0;flex:none}
.weekdays,.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekdays{text-align:center;color:#667970;font-size:12px;flex:none}.weekdays span{font-weight:700;border:1px solid #dbe4de;border-radius:6px;background:#f3f6f3;padding:4px 0}.weekdays span:first-child{color:#aa524c}
.days{flex:1;min-height:0;grid-template-rows:repeat(var(--weeks,5),minmax(0,1fr))}
.day{min-width:0;min-height:0;padding:8px;text-align:left;display:flex;flex-direction:column;gap:4px;border-color:#edf0ed}
.day[aria-pressed="true"]{background:#e5f3eb;border-color:#287763;box-shadow:inset 0 0 0 1px #287763}
.number{font-size:15px;font-weight:600}.count{font-size:11px;color:#75847e}.count.active{color:#246b55;font-weight:700}.event-dot{font-size:10px;color:#805d29}
.day-top{display:flex;align-items:center;justify-content:space-between;gap:2px;width:100%}.count{white-space:nowrap}
.days > .day:nth-child(7n + 1) .number,.holiday .number,.holiday-name,#selected-holiday{color:#b03e3e}.holiday-name{font-size:11px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail{display:flex;flex-direction:column}.detail-header{flex:none;padding-bottom:8px;border-bottom:1px solid #edf0ed}#selected-holiday{font-size:13px;overflow-wrap:anywhere}
.detail-content{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding:0 4px 8px}
ul{padding:0;margin:0;list-style:none}li{padding:12px 0;border-bottom:1px solid #edf0ed}li strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}li p{font-size:12px}.empty{font-size:13px;color:#75847e}
.detail-content{padding-top:14px}.detail-section{border:1px solid #dbe4de;border-radius:10px;overflow:hidden;margin-bottom:14px}.detail-section h3{margin:0;padding:10px 12px;font-size:16px;font-weight:750;border-bottom:1px solid #dbe4de;background:#e5f3eb;color:#246b55}.event-section{border-color:#e6ddcd}.event-section h3{background:#faf1df;color:#805d29;border-color:#e6ddcd}.detail-section ul{padding:0 12px}.detail-section li:last-child{border-bottom:0}.detail-section li strong{display:block;font-size:14px;color:#203632}.detail-section li p{margin-top:6px;color:#667970;font-size:11px;overflow-wrap:anywhere}.detail-section .empty{padding:14px 0}
.detail-content{display:flex;flex-direction:column;gap:14px}.detail-section{display:flex;flex-direction:column;flex:0 1 auto;min-height:76px;margin-bottom:0}.detail-section h3{flex:none}.detail-section ul{min-height:0;max-height:264px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.detail-section li:not(.empty){height:88px;padding:12px 0}.detail-section li strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.detail-section li p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-section ul:focus-visible{outline:2px solid #247b61;outline-offset:-2px}.event-previews{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:hidden;width:100%}.event-chip{display:block;flex:none;max-width:100%;padding:2px 4px;border:1px solid #e6ddcd;border-radius:4px;background:#faf1df;color:#805d29;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-more{font-size:10px;color:#805d29}.day-top,.holiday-name{flex:none}
@media(max-width:700px) and (min-height:501px){
header{padding:10px 12px}h1{font-size:20px}main{padding:0 10px 10px;gap:6px}
.layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(100px,25%);gap:8px}.calendar,.detail{padding:10px;border-radius:12px}
.calendar{gap:6px}h2{font-size:18px}.days,.weekdays{gap:3px}.day{padding:4px 3px;gap:2px}.count,.holiday-name{font-size:10px}.number{font-size:13px}
.badge{font-size:10px;padding:6px 8px}.legend{display:none}#holiday-status{width:100%}.detail-header .eyebrow{display:none}.detail-header{padding-bottom:4px}
.account-controls{justify-content:flex-end;max-width:55%}.account-controls .badge{display:none}.account-controls button{font-size:11px;padding:6px}header h1{font-size:17px}header .eyebrow{font-size:9px}
.mail-label{display:none}
#selected-holiday{margin:2px 0;font-size:11px}h3{margin-top:8px;font-size:14px}li{padding:8px 0}}
@media(max-height:650px) and (min-width:701px),(max-height:500px){
header{padding:6px 12px}header .eyebrow{display:none}h1{font-size:18px}main{padding:0 10px 8px;gap:4px}.notice{font-size:10px;line-height:1.2}
.layout{grid-template-columns:minmax(0,1fr) minmax(180px,26%);gap:8px}.calendar,.detail{padding:8px}.calendar{gap:4px}h2{font-size:17px}.legend{display:none}
.settings{gap:4px 10px}#holiday-status{font-size:10px}.day{padding:3px;gap:1px}.number{font-size:12px}.count,.holiday-name,.event-dot{font-size:10px}.detail-header .eyebrow{display:none}}
/* Extremely tiny viewports/high zoom retain access through scrolling instead of hiding content. */
#day-dialog{width:min(1100px,calc(100% - 24px));max-width:1100px;height:min(760px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:20px;overflow:hidden}#day-dialog[open]{display:flex;flex-direction:column;gap:16px}.day-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex:none}.day-dialog-header h2{font-size:24px}.day-dialog-header p{margin:4px 0;font-size:12px}.day-dialog-actions{display:flex;gap:6px;flex:none}.day-panels{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;flex:1;min-height:0}.day-panels .detail-section{min-width:0;min-height:0}.day-panels .detail-section ul{flex:1;max-height:none}.day-panels .detail-section li:not(.empty){height:auto;min-height:88px}.day-panels .detail-section li strong{display:block;overflow:visible}.day-panels .detail-section li p{white-space:normal;overflow:visible}.day-tabs{display:none}.day-tabs button[aria-pressed="true"]{background:#e5f3eb;border-color:#287763;font-weight:700}
.event-form{flex:0 1 auto;min-height:0;max-height:42%;overflow:auto;border:1px solid #e6ddcd;background:#fffaf0;border-radius:10px;padding:12px}.event-form h3{margin:0;font-size:16px}.event-form p{font-size:11px;margin:6px 0}.event-fields{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.event-fields label{display:flex;flex-direction:column;gap:4px;font-size:12px}.event-fields .toggle{flex-direction:row;align-items:center;padding-bottom:9px}.event-title-field{flex:1;min-width:180px}.event-fields input:not([type="checkbox"]){width:100%;min-width:0;font:inherit;padding:8px;border:1px solid #dbe4de;border-radius:6px;background:white;color:#203632}.event-form-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}.event-form-actions button{font-size:12px}.event-form-actions span{font-size:12px;line-height:1.5;flex:1;min-width:180px}#event-save{background:#287763;color:white}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;background:#faf1df;border-bottom:1px solid #e6ddcd;padding-right:10px}.detail-section .section-heading h3{border:0;background:transparent}.section-heading button{font-size:12px;padding:5px 8px;white-space:nowrap}#event-dialog{max-width:640px;width:calc(100% - 24px);padding:16px}#event-editor-close{display:block;margin-left:auto;margin-bottom:10px}#event-dialog .event-form{max-height:none;overflow:visible}#event-dialog .event-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#event-dialog .event-title-field{grid-column:1/-1;min-width:0}#event-dialog .event-form-actions span{flex-basis:100%}
.event-extra-fields{display:grid;gap:10px;margin-top:12px}.event-extra-fields label{display:flex;flex-direction:column;gap:4px;font-size:12px}.event-extra-fields input,.event-extra-fields textarea{width:100%;font:inherit;border:1px solid #dbe4de;border-radius:6px;padding:8px;background:white;color:#203632}.event-extra-fields textarea{resize:vertical;min-height:100px}.event-description-view{font-size:12px;margin-top:10px}.event-description-view summary{cursor:pointer;color:#805d29;font-weight:700}.event-description-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin-top:8px;padding:10px;background:#fffaf0;border-radius:6px}textarea:focus-visible{outline:3px solid #247b61;outline-offset:2px}
@media(max-width:700px){#day-dialog{padding:12px;gap:10px}.day-dialog-header{flex-wrap:wrap}.day-dialog-header h2{font-size:19px}.day-tabs{display:flex;gap:8px;flex:none}.day-tabs button{flex:1}.day-panels{grid-template-columns:minmax(0,1fr)}.day-panels[data-view="mail"] #day-event-panel,.day-panels[data-view="events"] #day-mail-panel{display:none}}
#day-event-list{padding:0 12px;background:white}#day-event-list .schedule-card{margin:0;padding:16px 0;background:none;border:0;border-bottom:1px solid #edf0ed;border-radius:0;min-height:0}#day-event-list .schedule-card:last-child{border-bottom:0}#day-event-list .schedule-card strong{font-size:15px;line-height:1.5}#day-event-list .schedule-time{margin:6px 0 0;padding:0;background:none;color:#52665f;font-size:12px;font-weight:400;white-space:normal}#day-event-list .event-location-text{font-size:12px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-info-button{margin-top:8px;padding:3px 0;border:0;border-radius:0;background:none;color:#805d29;font-size:12px;text-decoration:underline;text-underline-offset:3px}#schedule-info-dialog{max-width:520px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}#schedule-info-dialog[open]{display:flex;flex-direction:column;gap:10px}.schedule-info-header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.schedule-info-header h2{font-size:19px;overflow-wrap:anywhere;max-height:100px;overflow:auto}.schedule-info-header button{flex:none}#schedule-info-time{margin:0;font-size:12px}.schedule-info-body{min-height:0;overflow:auto;max-height:55dvh}.schedule-info-body p{font-size:13px;overflow-wrap:anywhere}.schedule-info-body h3{font-size:13px}#schedule-info-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
#day-event-list .schedule-card{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);column-gap:12px;row-gap:6px}#day-event-list .schedule-card strong{grid-column:1/-1}#day-event-list .schedule-time{grid-column:1;margin:0}#day-event-list .event-location-text{grid-column:2;grid-row:2;margin:0;text-align:right}#day-event-list .schedule-info-button{grid-column:1/-1;justify-self:start;margin-top:2px}
@media(max-width:440px){#day-event-list .schedule-card{grid-template-columns:minmax(0,1fr)}#day-event-list .event-location-text{grid-column:1;grid-row:auto;text-align:left}}
#day-dialog{width:min(1300px,calc(100% - 24px));max-width:1300px}.day-panels{grid-template-columns:repeat(2,minmax(0,1fr))}.day-panels .detail-section{border:0;border-radius:0;background:transparent}.day-panels .detail-section>h3,.day-panels .section-heading{border:0;border-radius:8px}.day-panels #day-mail-list,.day-panels #day-event-list{padding:10px 2px 2px;background:transparent}.day-panels #day-mail-list li:not(.empty),.day-panels #day-event-list .schedule-card{height:112px;min-height:112px;margin:0 0 10px;padding:12px;border:1px solid #dbe4de;border-radius:8px;background:white;overflow:hidden;display:grid;align-content:start;gap:5px}.day-panels #day-mail-list li:not(.empty){grid-template-rows:22px 20px 20px}.day-panels #day-event-list .schedule-card{grid-template-rows:22px 20px 20px}.day-panels #day-mail-list li strong,.day-panels #day-event-list .schedule-card strong{font-size:14px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panels #day-mail-list li p,.day-panels #day-event-list .schedule-time,.day-panels #day-event-list .event-location-text{margin:0;line-height:20px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-panels #day-event-list .schedule-info-button{margin:0;padding:0;line-height:20px}.day-panels #day-mail-list li:last-child,.day-panels #day-event-list .schedule-card:last-child{border-bottom:1px solid #dbe4de}
.day-panels .detail-section{overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.day-panels .detail-section>h3,.day-panels .section-heading{position:sticky;top:0;z-index:1}.day-panels #day-mail-list,.day-panels #day-event-list{flex:none;overflow:visible;scrollbar-gutter:auto;padding:10px 0 2px}
@media(max-width:700px){.day-panels{grid-template-columns:minmax(0,1fr)}}
@media(max-width:440px){.day-panels #day-mail-list li:not(.empty),.day-panels #day-event-list .schedule-card{height:132px;min-height:132px}.day-panels #day-event-list .schedule-card{grid-template-rows:22px 20px 18px 20px}}
#event-list li[role="button"],#day-event-list li[role="button"]{cursor:pointer}#event-list li[role="button"]:hover,#day-event-list li[role="button"]:hover{background:#f3f8f5}#event-list li[role="button"]:focus-visible,#day-event-list li[role="button"]:focus-visible{outline:2px solid #247b61;outline-offset:-2px}.event-chip:hover{background:#f2e5c9}
.schedule-delete-actions{display:flex;gap:8px}.danger-button{color:#a33232;border-color:#d8baba}#schedule-delete-confirm{border-top:1px solid #edf0ed;padding-top:10px}#schedule-delete-confirm p,#schedule-delete-status{font-size:12px;margin:0 0 8px}#schedule-delete-confirm button{margin-right:6px}
#event-list li[role="button"],#day-event-list .schedule-card{position:relative}.schedule-extra-label{position:absolute;right:12px;bottom:10px;color:#287763;font-size:11px;font-weight:600;line-height:16px}#event-list li strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#event-list .schedule-extra-label{right:0;bottom:6px}#schedule-info-dialog{max-width:560px;padding:22px;gap:18px}#schedule-info-dialog .schedule-info-header{border-bottom:1px solid #dbe4de;padding-bottom:14px;align-items:center}#schedule-info-dialog .schedule-info-header h2{font-size:22px;line-height:1.4;color:#203632}.schedule-info-body{padding-right:4px}.schedule-facts{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px 14px;align-items:baseline;padding:2px 0 18px}.schedule-facts>span{font-size:12px;color:#75847e;font-weight:600}#schedule-info-dialog .schedule-facts p{margin:0;font-size:14px;line-height:1.6;color:#35483f}.schedule-description-section{border-top:1px solid #edf0ed;padding-top:16px}.schedule-description-section h3{margin:0 0 10px;font-size:13px;color:#287763}#schedule-info-description{font-size:14px;line-height:1.8;color:#203632;padding:14px;border-radius:8px;background:#f5f7f5}.schedule-delete-actions{justify-content:flex-end;border-top:1px solid #edf0ed;padding-top:12px}#schedule-delete-status:empty{display:none}
.schedule-header-actions{display:flex;gap:6px;flex-wrap:wrap}.schedule-select-all{display:flex;align-items:center;gap:6px;padding:8px 10px;font-size:11px;flex:none}.schedule-select{position:absolute;top:15px;left:12px;z-index:1}#event-list li[role="group"]{position:relative;cursor:pointer}#event-list .schedule-select{left:0}#event-list li[role="group"] strong,#day-event-list .schedule-card strong{padding-left:26px}#event-list li[role="group"]:hover,#day-event-list li[role="group"]:hover{background:#f3f8f5}#event-list li[role="group"]:focus-visible,#day-event-list li[role="group"]:focus-visible{outline:2px solid #247b61;outline-offset:-2px}#day-event-list li[role="group"]{cursor:pointer}#schedule-bulk-dialog{max-width:560px}#schedule-bulk-dialog h2{font-size:20px}#schedule-bulk-dialog p{font-size:13px}#schedule-bulk-targets{max-height:40dvh;overflow:auto;margin:12px 0}#schedule-bulk-targets li{padding:10px 0}
#mail-dialog{width:min(860px,calc(100% - 24px));max-width:860px;height:min(740px,calc(100dvh - 24px));padding:22px;overflow:hidden}#mail-dialog[open]{display:flex;flex-direction:column;gap:10px}.mail-dialog-header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border-bottom:1px solid #dbe4de;padding-bottom:14px}.mail-dialog-header h2{font-size:21px;line-height:1.5;overflow-wrap:anywhere;max-height:100px;overflow:auto}.mail-dialog-header button{flex:none}#mail-dialog-sender,#mail-dialog-time{margin:0;font-size:12px;overflow-wrap:anywhere;max-height:60px;overflow:auto}#mail-dialog-body{flex:1;min-height:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;padding:14px;background:#f5f7f5;border-radius:8px}.mail-dialog-note{flex:none;font-size:11px;margin:0}#mail-list li[role="button"],#day-mail-list li[role="button"]{cursor:pointer}#mail-list li[role="button"]:hover,#day-mail-list li[role="button"]:hover{background:#f3f8f5}#mail-list li[role="button"]:focus-visible,#day-mail-list li[role="button"]:focus-visible,#mail-dialog-body:focus-visible{outline:2px solid #247b61;outline-offset:-2px}
@media(max-width:440px){#mail-dialog{padding:12px}.mail-dialog-header h2{font-size:18px}}
#mail-dialog{width:min(1040px,calc(100% - 24px));max-width:1040px}#mail-dialog-frame{flex:1;min-height:0;width:100%;border:0;background:white;border-radius:8px}.mail-view-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none}.mail-view-actions button{font-size:11px}.mail-dialog-note{flex:1;font-size:11px}.mail-dialog-header h2{font-weight:500;font-size:23px}#mail-dialog-body{background:white}
#mail-view-status{font-size:12px;color:#805d29;background:#fff6e4;padding:8px;border-radius:6px;margin:0}
@media(max-height:400px){#day-dialog{padding:8px;gap:6px}.day-dialog-header h2{font-size:17px}.day-dialog-header .eyebrow{display:none}.day-dialog-header p{margin:0}.day-panels .detail-section h3{padding:6px 10px}}
@media(max-height:320px),(max-width:340px){body{height:auto;min-height:100dvh}.layout{min-height:540px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(350px,2fr) minmax(180px,1fr)}.toolbar{flex-wrap:wrap}header{flex-wrap:wrap}}

.mail-translation-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#f3f7f5;border-radius:8px}.mail-translation-bar label{font-size:12px;display:flex;align-items:center;gap:5px}.mail-translation-bar select{max-width:130px;padding:5px;border:1px solid #d5e1dc;border-radius:5px;background:white}.mail-translation-bar button{font-size:12px;padding:6px 10px}#mail-translation-status{font-size:11px;color:#63776e;flex-basis:100%}

.mail-card{position:relative;padding-left:38px!important;padding-right:48px!important}.mail-card>input[type=checkbox]{position:absolute;left:12px;top:17px;width:16px;height:16px;cursor:pointer}.mail-read-label{position:absolute;right:12px;bottom:12px;font-size:11px;color:#668077}.mail-section .section-heading{flex-wrap:wrap;gap:4px}.mail-section .schedule-header-actions button{font-size:11px;padding:5px 7px}#mail-delete-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}#mail-delete-targets{max-height:45dvh;overflow:auto;padding-left:20px}#mail-delete-targets li{padding:8px 0}#mail-delete-targets p{font-size:12px;color:#63776e}

.mail-section .section-heading{background:#e5f3eb;border-color:#dbe4de}.mail-card[role=group]{cursor:pointer}.mail-card[role=group]:hover{background:#f3f8f5}.mail-card[role=group]:focus-visible{outline:2px solid #247b61;outline-offset:-2px}

.detail-section li.mail-is-read strong,.day-panels #day-mail-list li.mail-is-read strong{color:#77817d;font-weight:500}

.mail-popup-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex:none}.mail-view-actions .mail-dialog-note{margin:0;min-width:200px}.mail-view-actions{justify-content:space-between}

#mail-delete-dialog .dialog-actions{justify-content:flex-end}

.account-area{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0}.google-shortcuts{display:flex;justify-content:flex-end;gap:6px}.google-shortcuts a{display:flex;align-items:center;gap:5px;color:#52665f;text-decoration:none;font-size:11px;padding:4px 8px;border-radius:7px}.google-shortcuts svg{width:24px;height:24px;flex:none}.google-shortcuts a:hover{background:#e5eee8}.google-shortcuts a:focus-visible{outline:3px solid #247b61;outline-offset:2px}

.dashboard{display:flex;flex-direction:column;height:100%;min-height:0}.landing{width:100%;height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,760px) minmax(300px,400px);justify-content:center;padding:clamp(24px,5vw,80px);gap:48px;align-items:center;background:radial-gradient(ellipse at 15% 15%,#e7f3eb 0,transparent 55%),#f5f7f4;overflow:auto}.landing-intro{min-width:0;max-width:800px}.landing-brand{font-size:13px;font-weight:800;letter-spacing:2px;color:#287763;margin-bottom:28px}.landing-brand span{font-size:10px;font-weight:400;letter-spacing:0;margin-left:8px;color:#7b8981}.landing h1{font-size:clamp(36px,4.3vw,66px);line-height:1.15;letter-spacing:-2px;font-weight:750;margin:0 0 18px}.landing-lead{font-size:clamp(14px,1.3vw,18px);margin-bottom:28px;color:#607569}.landing-preview{padding:20px;border:1px solid #d6e3da;border-radius:18px;background:#ffffffbf;box-shadow:0 16px 45px #2948370a}.preview-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px;font-size:14px}.preview-top>span{font-size:10px;color:#829187}.preview-layout{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.preview-week,.preview-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.preview-week span{text-align:center;font-size:10px;color:#75877b;padding:4px}.preview-grid>div{height:62px;border:1px solid #e1e9e3;border-radius:6px;background:#fff;padding:6px;font-size:11px;color:#6b7d71}.preview-grid>.preview-picked{height:88px;background:#e5f2e9;border-color:#368769;color:#245b44}.preview-picked small{display:block;font-size:9px;margin:7px 0}.preview-picked em{display:block;font-style:normal;font-size:9px;background:#faf0d7;border-radius:3px;padding:3px;white-space:nowrap}.preview-day{padding-left:16px;border-left:1px solid #e0e8e1}.preview-day>strong{font-size:12px}.preview-mail,.preview-event{border-radius:7px;background:#edf6f0;padding:10px;margin-top:10px}.preview-event{background:#faf2e2}.preview-day small{font-size:10px;color:#47745b}.preview-day p{font-size:12px;color:#203632;margin:7px 0 3px}.preview-day span{font-size:9px;color:#75867b}.landing-points{display:flex;gap:20px;margin-top:20px;font-size:12px;color:#577461}.landing-points span:before{content:'✓';margin-right:6px;color:#287763}.landing-login{max-width:420px;width:100%;justify-self:center;padding:36px 28px;background:#fff;border:1px solid #dfe8e1;border-radius:22px;box-shadow:0 22px 64px #2c483b0a;text-align:center}.login-mark{width:64px;height:70px;margin:0 auto 24px;background:#e6f1ea;border-top:9px solid #287763;border-radius:10px;font-size:30px;font-weight:700;color:#287763}.login-mark span{display:block;font-size:5px;letter-spacing:1px}.landing-login h2{font-size:23px;margin:0 0 12px}.landing-login>p{font-size:14px;line-height:1.65}.landing-google{margin:28px 0 14px;display:flex;justify-content:center;align-items:center;gap:12px;background:#fff;border:1px solid #cdd9d0;border-radius:9px;width:100%;min-height:48px;font-size:14px;font-weight:600}.landing-google svg{width:20px;height:20px}.landing-login .landing-permissions{font-size:11px;color:#829086}.landing-login .landing-status{font-size:11px;min-height:36px;margin-top:18px;color:#59715f}.landing-footer{display:block;border-top:1px solid #eef2ee;margin-top:18px;padding-top:18px;font-size:10px;color:#97a299}
@media(max-width:850px){.landing{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);padding:28px;gap:24px}.landing-preview{padding:12px}.preview-layout{grid-template-columns:1fr}.preview-day{display:none}.landing h1{font-size:40px}.landing-login{padding:28px 20px}}
@media(max-width:620px){.landing{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:24px 20px}.landing-brand{margin-bottom:14px}.landing h1{font-size:36px;margin-bottom:12px}.landing-lead{font-size:13px;margin-bottom:16px}.landing-preview{display:none}.landing-points{margin-top:12px;font-size:11px;gap:12px}.landing-login{max-width:none;padding:22px}.login-mark,.landing-footer{display:none}.landing-google{margin:18px 0 10px}.landing-login h2{font-size:20px}.landing-login .landing-status{min-height:0;margin-top:12px}}
@media(min-width:621px) and (max-height:850px){.landing{padding:24px 40px;gap:40px}.landing-brand{margin-bottom:14px}.landing h1{font-size:42px}.landing-lead{margin-bottom:18px}.landing-login{padding:24px}.login-mark{margin-bottom:16px}.landing-google{margin-top:18px}.landing-preview{padding:14px}}

.landing-privacy{display:flex;align-items:center;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #dce6de;color:#49765a}.landing-privacy svg{width:25px;height:25px;flex:none}.landing-privacy strong{font-size:12px;font-weight:650}.landing-privacy p{font-size:11px;margin:3px 0 0;color:#7b8d80}@media(max-width:620px){.landing-privacy{margin-top:14px;padding-top:12px}.landing-privacy p{font-size:10px}.landing-privacy strong{font-size:11px}}

.landing-feedback{margin:12px auto 0;padding:5px 10px;border:0;background:transparent;color:#55745f;font-size:12px;text-decoration:underline;text-underline-offset:3px}#feedback-dialog{max-width:560px;padding:24px}.feedback-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.feedback-header h2{font-size:22px}.feedback-header .eyebrow{margin:0 0 4px}.feedback-intro{color:#63776e}#feedback-form{display:flex;flex-direction:column;gap:14px;margin-top:20px}#feedback-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}#feedback-form input,#feedback-form textarea,#feedback-form select{width:100%;padding:10px 12px;border:1px solid #cddbd1;border-radius:8px;background:white;font:inherit;color:#203632}#feedback-form textarea{resize:vertical;min-height:120px;max-height:35dvh;line-height:1.6}#feedback-dialog .feedback-privacy{font-size:11px;color:#7d8c82;margin:0}.feedback-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#7d8c82}.feedback-coming{padding:7px 10px;border-radius:6px;background:#edf3ef;color:#728779}#feedback-dialog .feedback-note{font-size:11px;padding-top:14px;border-top:1px solid #e3ebe5;margin-top:18px;color:#7d8c82}

/* Dashboard visual refinement; retain all existing sizing and panel layout. */
.dashboard{background:linear-gradient(135deg,#f1f6f4,#f7f9f8);color:#213b34}
.dashboard>header{border-bottom:1px solid #e3ece7;margin-bottom:12px;background:#ffffffa6}
.dashboard h1{letter-spacing:-.7px;font-weight:750}.dashboard h2{letter-spacing:-.5px}.dashboard .eyebrow{color:#5b8675;font-size:10px;letter-spacing:1.8px}
.dashboard .calendar,.dashboard .detail{border-color:#dfe9e3;box-shadow:0 4px 22px #213b3405;border-radius:18px}
.dashboard .toolbar h2{color:#233d34}.dashboard button,.dashboard select{border-color:#dae5df;transition:background-color .15s,border-color .15s,box-shadow .15s}
.dashboard button:hover{background:#edf5f0;border-color:#a9c9b9}.dashboard .account-controls button{background:#fff;border-radius:9px;color:#425f52}
.dashboard .badge{background:#e4f1e9;color:#28745b;font-size:11px;font-weight:600;border:1px solid #d7e8dd}
.dashboard .notice{color:#71867b;font-size:11px}.dashboard .settings{color:#61796d}.dashboard .legend{color:#7a8d83}
.dashboard .weekdays span{background:#f4f8f6;border-color:#e3ece7;color:#718277;padding:5px 0;font-size:11px;letter-spacing:.5px}.dashboard .weekdays span:first-child{color:#be5555}
.dashboard .day{background:#fff;border-color:#e8eeeb;border-radius:10px}.dashboard .day:hover{background:#f4f8f5;border-color:#c7ddcf}
.dashboard .day[aria-pressed="true"]{background:#eaf5ee;border-color:#34856a;box-shadow:inset 0 0 0 1px #34856a,0 2px 8px #2877630a}
.dashboard .number{font-weight:650;color:#314a40;font-variant-numeric:tabular-nums}.dashboard .count{font-size:10px;color:#8a9a91}.dashboard .count.active{color:#3a8064}.dashboard .days>.day:nth-child(7n + 1) .number,.dashboard .holiday .number{color:#bd5154}
.dashboard .holiday-name{color:#bd5154;font-size:10px}.dashboard .event-chip{background:#fbf4e5;border-color:#ecdfc4;border-radius:5px;color:#917037}
.dashboard .detail-header{border-color:#e5ede8;padding-bottom:12px}.dashboard .detail-header h2{margin-top:5px;font-size:23px}.dashboard .detail-section{border-color:#dfe9e3;border-radius:12px}
.dashboard .mail-section .section-heading{background:#edf6f0;border-color:#deebe3}.dashboard .mail-section h3{background:#edf6f0;color:#357659;font-size:14px}
.dashboard .event-section .section-heading{background:#fbf5e8;border-color:#ece1ce}.dashboard .event-section h3{color:#967136;font-size:14px}.dashboard .section-heading button{border-radius:7px;font-size:11px}
.dashboard .schedule-select-all{color:#7a8c81;font-size:10px;border-bottom:1px solid #f0f4f1}.dashboard .detail-section li strong{font-weight:600;color:#2a4639}.dashboard .detail-section li p{color:#83938a;font-size:11px}.dashboard .detail-section .empty{font-size:12px;color:#89988f}
.dashboard .detail-section li{border-color:#edf2ee}.dashboard .mail-read-label{color:#7f9688}.dashboard .schedule-extra-label{color:#51866b;font-size:10px}
.dashboard .detail-section li.mail-is-read strong{color:#77817d;font-weight:500}
.dashboard .google-shortcuts{opacity:.85}.dashboard .danger-button{color:#b26060;border-color:#ead7d7}
@media(max-width:700px){.dashboard>header{margin-bottom:6px}.dashboard .calendar,.dashboard .detail{border-radius:12px}.dashboard .detail-header h2{font-size:18px}.dashboard .weekdays span{padding:3px 0}.dashboard .day{border-radius:6px}}
@media(max-height:650px){.dashboard>header{margin-bottom:4px}.dashboard .detail-header{padding-bottom:4px}.dashboard .detail-header h2{font-size:17px}.dashboard .weekdays span{padding:3px 0}}

.day-panels .panel-fixed{position:sticky;top:0;z-index:3;flex:none;background:white;padding-bottom:4px}.day-panels .panel-fixed .section-heading,.day-panels .panel-fixed .schedule-select-all{position:static}.day-panels .panel-fixed .schedule-select-all{min-height:34px}.event-tinted{background:var(--event-bg)!important;color:var(--event-fg)!important;border-color:var(--event-bg)!important}.event-tinted strong,.event-tinted p,.event-tinted .schedule-extra-label{color:var(--event-fg)!important}

#event-dialog .event-fields .toggle{grid-column:1/-1;padding-bottom:0}.event-color-field{flex-wrap:wrap}
