:root{color-scheme:light;--bg: #f6f8fc;--surface: #ffffff;--surface-muted: #f8fafc;--text: #1f2937;--muted: #687385;--line: #e3e8ef;--line-strong: #cfd6e0;--accent: #1a73e8;--accent-hover: #1765cc;--accent-soft: #e8f0fe;--danger: #d93025;--danger-soft: #fce8e6;--hour-height: 48px;--radius: 14px;font-family:Inter,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;overflow:hidden;background:var(--bg)}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.event-blue{--evt: #1a73e8;--evt-soft: #e8f0fe;--evt-ink: #174ea6}.event-teal{--evt: #00796b;--evt-soft: #e0f2f1;--evt-ink: #00695c}.event-green{--evt: #188038;--evt-soft: #e6f4ea;--evt-ink: #0d652d}.event-purple{--evt: #9334e6;--evt-soft: #f3e8fd;--evt-ink: #681da8}.event-orange{--evt: #b45309;--evt-soft: #fef0e3;--evt-ink: #92400e}.event-red{--evt: #d93025;--evt-soft: #fce8e6;--evt-ink: #a50e0e}.event-calendar-bar{position:absolute;top:0;bottom:0;left:0;width:5px;border-radius:4px 0 0 4px;background:var(--evt)}.boot-screen{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;color:var(--muted);font-size:.86rem}.boot-screen p{margin:0}.login-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:1.5rem;background:radial-gradient(circle at 12% 12%,rgba(26,115,232,.14),transparent 42%),radial-gradient(circle at 88% 88%,rgba(24,128,56,.12),transparent 38%),var(--bg)}.login-card{width:min(400px,100%);padding:2rem;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 22px 60px #0f172a1f}.login-brand{display:flex;align-items:center;gap:.55rem;margin-bottom:1.35rem}.login-brand-name{font-size:1rem;font-weight:700;letter-spacing:-.025em}.login-title{margin:0;font-size:1.4rem;font-weight:700;letter-spacing:-.03em}.login-subtitle{margin:.3rem 0 1.4rem;color:var(--muted);font-size:.86rem}.login-form{display:flex;flex-direction:column;gap:.95rem}.login-submit{width:100%;margin-top:.15rem;padding:.62rem .95rem}.login-switch{margin-top:1.1rem;padding:0;border:none;background:none;color:var(--accent);font-size:.84rem;text-align:center;cursor:pointer}.login-switch:hover{text-decoration:underline}.app-shell{height:100vh;height:100dvh;display:flex;background:var(--bg)}.sidebar-user{display:flex;align-items:center;gap:.55rem;min-width:0;margin-top:auto;padding:.55rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-muted)}.user-avatar{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(140deg,#4f8df7,#1a73e8 55%,#1557b0);color:#fff;font-size:.78rem;font-weight:700}.user-avatar-image{display:block;object-fit:cover;background:var(--surface-muted)}.user-meta{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.user-name{overflow:hidden;color:var(--text);font-size:.78rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.user-email{overflow:hidden;color:var(--muted);font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.logout-btn{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:background .15s ease,color .15s ease}.logout-btn:hover{background:var(--danger-soft);color:var(--danger)}.page-content{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.calendar-page{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--bg)}.app-header{flex:none;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;padding:.7rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--line)}.header-left{display:flex;align-items:center;gap:.6rem;min-width:0}.header-right{display:flex;align-items:center;gap:.7rem}.header-search{position:relative;flex:1 1 360px;min-width:240px;max-width:760px;margin:0 .5rem}.header-search-main{display:flex;align-items:center;gap:0;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface)}.header-search-main>input{flex:1;min-width:0;height:40px;border:0;border-radius:inherit;padding:.5rem .7rem;background:transparent;color:var(--text);font:inherit;font-size:.82rem}.header-search-main:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #1a73e824}.header-search-clear{flex:none;display:grid;place-items:center;width:30px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}.header-search-clear:hover:not(:disabled){background:var(--surface-muted);color:var(--text)}.header-search-clear:disabled{opacity:.4;cursor:default}.header-search-main>input:focus{outline:none}.header-search-options{flex:none}.header-search-options summary{display:grid;place-items:center;width:40px;height:40px;border-radius:0 8px 8px 0;color:var(--muted);cursor:pointer;list-style:none}.header-search-options summary::-webkit-details-marker{display:none}.header-search-options summary:hover,.header-search-options[open] summary{background:var(--accent-soft);color:var(--accent)}.header-search-options[open] summary svg{transform:rotate(180deg)}.header-search-menu{position:absolute;top:calc(100% + .5rem);right:0;z-index:50;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:.6rem;width:min(520px,calc(100vw - 2rem));padding:.8rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 8px 24px #0f172a2e}.header-search-calendar,.header-search-reset{grid-column:1 / -1}.header-search-calendar-menu{max-height:none;overflow:visible}.header-search-calendar-query{flex:none;width:100%;margin-bottom:.3rem;border:1px solid var(--line-strong);border-radius:7px;padding:.4rem .5rem;background:var(--surface);color:var(--text);font:inherit;font-size:.78rem}.header-search-calendar-query:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #1a73e824}.header-search-calendar-options{max-height:220px;overflow-y:auto}.header-search-calendar-empty{margin:0;padding:.4rem .5rem;color:var(--muted);font-size:.78rem}.calendar-option-divider{margin:.25rem .5rem;border-top:1px solid var(--line)}.header-search-menu .field{gap:.25rem}.header-search-menu .field input,.header-search-menu .field select{min-width:0;padding:.42rem .55rem;font-size:.8rem}.header-search-reset{white-space:nowrap}.brand-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#fff;background:linear-gradient(140deg,#4f8df7,#1a73e8 55%,#1557b0);box-shadow:0 6px 14px #1a73e847}.today-btn{border:1px solid var(--line-strong);border-radius:8px;padding:.4rem .8rem;background:var(--surface);color:var(--text);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer;transition:background .15s ease,border-color .15s ease}.today-btn:hover{background:var(--surface-muted);border-color:#bcc5d3}.nav-arrows{display:flex;align-items:center}.icon-btn{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font:inherit;cursor:pointer;transition:background .15s ease,color .15s ease}.icon-btn:hover{background:var(--accent-soft);color:var(--accent)}.range-title{margin:0 0 0 .3rem;overflow:hidden;color:var(--text);font-size:1.02rem;font-weight:600;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}.view-switcher{display:inline-flex;padding:3px;border-radius:10px;background:#eef1f6}.view-switcher button{border:0;border-radius:8px;padding:.38rem .78rem;background:transparent;color:var(--muted);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.view-switcher button:hover{color:var(--text)}.view-switcher button.is-active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0f172a1f}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border:1px solid transparent;border-radius:9px;padding:.52rem .95rem;font:inherit;font-size:.82rem;font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.btn-primary{background:var(--accent);color:#fff;box-shadow:0 2px 6px #1a73e847}.btn-primary:hover{background:var(--accent-hover)}.btn-ghost{background:transparent;color:var(--muted)}.btn-ghost:hover{background:#f1f4f9;color:var(--text)}.btn-delete{margin-right:auto;background:transparent;color:var(--danger)}.btn-delete:hover{background:var(--danger-soft)}.btn-danger{background:var(--danger);color:#fff;box-shadow:0 2px 8px #d930254d}.btn-danger:hover{background:#b3261e}.btn:disabled{opacity:.6;cursor:not-allowed}.is-dragging{opacity:.45}.month-event{cursor:grab}.month-event:active{cursor:grabbing}.timegrid-event[draggable=true]{cursor:grab}.timegrid-event[draggable=true]:active{cursor:grabbing}.app-main{flex:1;min-height:0;display:flex;gap:1rem;padding:.9rem 1.25rem 1.25rem}.calendar-side{flex:none;display:flex;flex-direction:column;gap:.7rem;width:214px}.mini-calendar{padding:.75rem .7rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 1px 2px #0f172a0a}.mini-head{display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin-bottom:.45rem}.mini-title{margin:0;font-size:.78rem;font-weight:700;letter-spacing:-.01em}.mini-nav{display:flex;gap:1px}.mini-nav-btn{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:background .12s ease,color .12s ease}.mini-nav-btn:hover{background:var(--accent-soft);color:var(--accent)}.mini-weekdays,.mini-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.mini-weekdays span{padding:.15rem 0 .3rem;color:var(--muted);font-size:.58rem;font-weight:700;letter-spacing:.05em;text-align:center;text-transform:uppercase}.mini-day{display:grid;place-items:center;width:100%;aspect-ratio:1;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:.68rem;font-weight:500;cursor:pointer;transition:background .12s ease,color .12s ease}.mini-day span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%}.mini-day:hover{background:#eef2f8}.mini-day.is-outside{color:#a9b2bf}.mini-day.is-browsed{background:var(--accent-soft)}.mini-day.is-browsed:hover{background:#dbe8fd}.mini-day.is-today span{background:var(--accent);color:#fff;font-weight:700}.calendar-list{display:flex;flex-direction:column;padding:.5rem 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);max-height:22rem;overflow-y:auto;overflow-anchor:none}.calendar-list-head{display:flex;align-items:center;gap:.5rem;padding:.3rem .75rem}.calendar-list-title{flex:1;text-align:center;color:var(--muted);font-size:.6rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.calendar-add-btn{flex:none;display:flex;align-items:center;justify-content:center;width:1.4rem;height:1.4rem;padding:0;border:1px solid var(--line-strong);border-radius:50%;background:transparent;color:var(--text);font:inherit;font-size:1rem;line-height:1;cursor:pointer}.calendar-add-btn:hover{background:var(--surface-muted)}.calendar-row{display:flex;align-items:center;gap:.55rem;min-width:0;width:100%;padding:.45rem .75rem;border:none;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.calendar-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--evt, var(--accent))}.calendar-select{position:relative}.calendar-select-toggle{display:flex;align-items:center;gap:.5rem;width:100%;padding:.45rem .6rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:.78rem;cursor:pointer}.calendar-select-name{flex:1;min-width:0;overflow:hidden;text-align:left;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.calendar-select-role{flex:none;margin-left:auto;color:var(--muted);font-size:.7rem}.calendar-select-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:20;display:flex;flex-direction:column;padding:.25rem;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 8px 24px #0f172a2e;max-height:220px;overflow:auto}.calendar-option{display:flex;align-items:center;gap:.5rem;width:100%;padding:.4rem .5rem;border:none;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:.78rem;text-align:left;cursor:pointer}.calendar-option:hover,.calendar-option.is-selected{background:var(--surface-muted)}.calendar-radio{position:relative;flex:none;width:1.1rem;height:1.1rem;border:1.5px solid #cbd5e1;border-radius:50%;background:var(--surface);transition:background .15s ease,border-color .15s ease}.calendar-row:hover{background:var(--surface-muted)}.calendar-row.is-selected .calendar-radio{border-color:var(--evt, #2f9e44);background:var(--evt, #2f9e44)}.calendar-row.is-selected .calendar-radio:after{content:"";position:absolute;left:50%;top:46%;width:.3rem;height:.55rem;border:solid #fff;border-width:0 2px 2px 0;transform:translate(-50%,-50%) rotate(45deg)}.calendar-role{flex:none;margin-left:auto;color:var(--muted);font-size:.7rem;text-transform:capitalize}.calendar-more{flex:none;display:flex;align-items:center;justify-content:center;width:0;height:1.4rem;padding:0;border:none;border-radius:6px;background:transparent;color:var(--muted);font-size:1rem;line-height:1;overflow:hidden;opacity:0;cursor:pointer;transition:width .15s ease,opacity .15s ease,background .15s ease}.calendar-row:hover .calendar-more,.calendar-more:focus-visible{width:1.4rem;opacity:1}.calendar-more:hover{background:#0f172a14}.current-calendar-name{flex:1;min-width:0;overflow:hidden;font-size:.8rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.user-open{flex:1;display:flex;align-items:center;gap:.55rem;min-width:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.user-open:hover .user-name{color:var(--accent)}.notification-stack{position:fixed;z-index:200;top:1rem;right:1rem;display:flex;flex-direction:column;width:min(360px,calc(100vw - 2rem));pointer-events:none}.notification-item{margin-bottom:.5rem}.notification{display:flex;align-items:flex-start;gap:.75rem;border:1px solid transparent;border-radius:10px;padding:.65rem .75rem;box-shadow:0 10px 30px #0f172a2e;font-size:.82rem;pointer-events:auto;animation:notification-in .14s ease-out}@keyframes notification-in{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.notification.is-leaving{pointer-events:none;animation:notification-out .14s ease-in forwards}@keyframes notification-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}@media(prefers-reduced-motion:reduce){.notification,.notification.is-leaving{animation:none}}.notification-clear{align-self:flex-end;border:1px solid var(--line-strong);border-radius:999px;padding:.25rem .65rem;background:var(--surface);color:var(--muted);font:inherit;font-size:.72rem;font-weight:600;cursor:pointer;pointer-events:auto;box-shadow:0 2px 8px #0f172a1f}.notification-clear:hover{border-color:var(--accent);color:var(--text)}.notification--success{border-color:#a7d7b5;background:#e9f7ee;color:#14532d}.notification--error{border-color:#f3b4b0;background:var(--danger-soft);color:#7f1d1d}.notification-message{flex:1}.notification-close{flex:none;border:0;padding:0 .15rem;background:transparent;color:inherit;font:inherit;font-size:1rem;line-height:1;cursor:pointer;opacity:.7}.notification-close:hover{opacity:1}.settings-modal{width:min(920px,100%)}.settings-head{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.4rem .4rem}.settings-body{max-height:calc(100vh - 12rem);overflow:auto;padding:1rem 1.4rem 1.25rem}.settings-panel{display:flex;flex-direction:column;gap:.85rem}.avatar-field{display:flex;align-items:center;gap:.9rem;min-width:0}.avatar-preview{flex:none;display:grid;place-items:center;width:64px;height:64px;overflow:hidden;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:1.2rem;font-weight:700}.avatar-preview img{width:100%;height:100%;object-fit:cover}.avatar-controls{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;min-width:0}.settings-block{display:flex;flex-direction:column;gap:.55rem;padding-bottom:.9rem;border-bottom:1px solid var(--line)}.settings-block:last-child{border-bottom:0;padding-bottom:0}.settings-block h3{margin:0;font-size:.9rem}.settings-status{margin:0;color:var(--muted);font-size:.8rem}.settings-actions{display:flex;flex-wrap:wrap;gap:.5rem}.manager-invite{display:flex;flex-wrap:wrap;gap:.35rem}.manager-invite input,.manager-invite select,.manager-row select{min-width:0;border:1px solid var(--line-strong);border-radius:8px;padding:.42rem .55rem;background:var(--surface);color:var(--text);font:inherit;font-size:.78rem}.manager-invite input{flex:1}.manager-detail{display:flex;flex-direction:column;gap:.8rem;min-width:0}.manager-head{display:flex;align-items:flex-start;gap:.3rem}.manager-head h3{margin:0;font-size:1rem}.manager-role{color:var(--muted);font-size:.62rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.manager-head .manager-role{align-self:flex-start;margin-top:.1em;text-transform:lowercase}.manager-head .icon-btn{margin-left:auto}.manager-tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--line)}.manager-tabs button{border:0;border-bottom:2px solid transparent;padding:.5rem .7rem;background:transparent;color:var(--muted);font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}.manager-tabs button:hover{color:var(--text)}.manager-tabs button.is-active{color:var(--accent);border-bottom-color:var(--accent)}.manager-panel{animation:manager-panel-in .18s ease}@keyframes manager-panel-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.manager-form{display:flex;flex-direction:column;gap:.7rem}.manager-actions{display:flex;flex-wrap:wrap;gap:.5rem}.manager-section{display:flex;flex-direction:column;gap:.5rem;padding-top:.7rem;border-top:1px solid var(--line)}.manager-section h4{margin:0;font-size:.8rem}.manager-row{display:flex;align-items:center;gap:.5rem;min-width:0;padding:.45rem .55rem;border:1px solid var(--line);border-radius:9px;background:var(--surface-muted)}.manager-row-main{flex:1;display:flex;flex-direction:column;min-width:0}.manager-row-main>span:first-child{overflow:hidden;font-size:.8rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.manager-row-sub{color:var(--muted);font-size:.68rem}.manager-row .btn-delete{margin-right:0}.manager-token{display:flex;flex-direction:column;gap:.3rem;padding:.55rem .65rem;border-radius:9px;background:var(--accent-soft)}.manager-token-row{display:flex;align-items:center;gap:.5rem}.manager-token code{flex:1;overflow:hidden;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}.calendar-shell{flex:1;min-height:0;display:flex;flex-direction:column;gap:.6rem}.header-search-results{position:absolute;top:calc(100% + .45rem);right:0;left:0;z-index:45;max-height:min(50vh,28rem);overflow-y:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 1px 2px #0f172a0a}.event-search-results-head{padding:.55rem .75rem;border-bottom:1px solid var(--line);color:var(--muted);font-size:.78rem}.event-search-result{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;padding:.65rem .75rem;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.event-search-result:hover{background:var(--surface-muted)}.event-search-result:last-child{border-bottom:0}.event-search-result-details{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.event-search-result-name,.event-search-result-calendar,.event-search-result-time{display:flex;align-items:center;gap:.5rem;min-width:0}.event-search-result-name strong{overflow:hidden;color:var(--text);font-size:.86rem;text-overflow:ellipsis;white-space:nowrap}.event-search-result-calendar,.event-search-result-time{color:var(--muted);font-size:.72rem}.event-search-calendar-name,.event-search-owner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-search-calendar-name{flex:0 1 40%;font-weight:600}.event-search-owner{flex:1;min-width:0}.event-search-result-time{flex:none;flex-direction:column;gap:0;align-items:flex-end;text-align:right}.event-search-empty,.event-search-error{margin:0;padding:.75rem;color:var(--muted);font-size:.8rem}.event-search-error{color:var(--danger)}.state-panel{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;padding:2rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--muted);text-align:center}.state-panel h2{margin:0;color:var(--text);font-size:1.05rem;letter-spacing:-.02em}.state-panel p{margin:0;max-width:48ch;font-size:.88rem}.spinner{width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.load-banner,.empty-banner{flex:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-radius:10px;padding:.55rem .8rem;font-size:.8rem}.load-banner{background:var(--danger-soft);color:#a50e0e}.load-banner button{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.empty-banner{justify-content:center;background:var(--accent-soft);color:var(--accent);font-weight:600}.month-view{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px #0f172a0a}.month-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--line);background:var(--surface-muted)}.month-weekday{padding:.5rem .7rem;color:var(--muted);font-size:.66rem;font-weight:700;letter-spacing:.09em;text-align:right;text-transform:uppercase}.month-scroll{flex:1;min-height:0;overflow:auto}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,minmax(104px,1fr));min-height:100%}.month-cell{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;padding:4px 5px 6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;transition:background .12s ease}.month-cell:hover{background:#f7faff}.month-cell:nth-child(7n){border-right:0}.month-cell:nth-last-child(-n+7){border-bottom:0}.month-cell.is-outside{background:#fbfcfe}.month-cell.is-outside .month-day-number{color:#9aa4b2}.month-cell.is-today{background:#f2f7ff}.month-cell.is-drop-target{background:var(--evt-soft, #eef5ff);box-shadow:inset 0 0 0 2px var(--evt, var(--accent))}.month-day{display:flex;justify-content:flex-end}.month-day-number{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;color:var(--text);font-size:.76rem;font-weight:600}.month-cell.is-today .month-day-number{background:var(--accent);color:#fff}.month-events{display:flex;flex-direction:column;gap:2px;min-height:0;overflow:hidden}.month-event{position:relative;display:flex;align-items:center;gap:5px;width:100%;overflow:hidden;border:0;border-radius:4px;padding:2px 6px 2px 11px;background:var(--evt-soft);color:var(--evt-ink);font:inherit;font-size:.71rem;font-weight:600;text-align:left;white-space:nowrap;cursor:pointer}.month-event:before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--evt)}.month-event:hover{filter:brightness(.97)}.month-event-title{overflow:hidden;text-overflow:ellipsis}.month-more{border:0;border-radius:4px;padding:1px 6px;background:none;color:var(--muted);font:inherit;font-size:.68rem;font-weight:600;text-align:left;cursor:pointer}.month-more:hover{background:#eef2f8;color:var(--text)}.timegrid{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px #0f172a0a}.timegrid-head{display:flex;flex:none;border-bottom:1px solid var(--line);background:var(--surface)}.timegrid-gutter-head{flex:none;display:flex;align-items:center;justify-content:flex-end;width:64px;padding-right:8px;overflow:hidden;color:#9aa4b2;font-size:.6rem;font-weight:500;white-space:nowrap}.timegrid-zone{overflow:hidden;text-overflow:ellipsis}.timegrid-day-heads{flex:1;display:grid}.timegrid-day-head{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;padding:.45rem .25rem .5rem;border-left:1px solid var(--line)}.timegrid-day-head:first-child{border-left:0}.timegrid-weekday{overflow:hidden;max-width:100%;color:var(--muted);font-size:.64rem;font-weight:700;letter-spacing:.09em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.timegrid-date{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:1rem;font-weight:600}.timegrid-day-head.is-today .timegrid-weekday{color:var(--accent)}.timegrid-day-head.is-today .timegrid-date{background:var(--accent);color:#fff}.timegrid--day .timegrid-date{width:34px;height:34px;font-size:1.15rem}.timegrid-allday{display:flex;flex:none;max-height:118px;overflow-y:auto;border-bottom:1px solid var(--line);background:var(--surface-muted)}.timegrid-allday-label{flex:none;width:64px;padding:.45rem 8px 0 0;color:var(--muted);font-size:.62rem;font-weight:700;letter-spacing:.04em;text-align:right;text-transform:uppercase}.timegrid-allday-days{flex:1;display:grid}.timegrid-allday-col{display:flex;flex-direction:column;gap:2px;min-height:34px;padding:3px 4px;border-left:1px solid var(--line);cursor:pointer}.timegrid-allday-col:first-child{border-left:0}.timegrid-allday-col.is-drop-target{background:var(--evt-soft, #eef5ff);box-shadow:inset 0 0 0 2px var(--evt, var(--accent))}.allday-chip{position:relative;display:flex;align-items:center;gap:5px;width:100%;overflow:hidden;border:0;border-radius:4px;padding:2px 6px 2px 11px;background:var(--evt-soft);color:var(--evt-ink);font:inherit;font-size:.7rem;font-weight:600;text-align:left;white-space:nowrap;cursor:grab}.allday-chip:before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--evt)}.allday-chip:active{cursor:grabbing}.timegrid-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.timegrid-body{position:relative;display:flex}.timegrid-gutter{position:relative;flex:none;width:64px}.timegrid-hour{position:absolute;right:8px;transform:translateY(-50%);color:#9aa4b2;font-size:.66rem;font-weight:500;white-space:nowrap}.timegrid-columns{flex:1;display:grid}.timegrid-col{position:relative;border-left:1px solid var(--line);background-image:repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,transparent 1px,transparent var(--hour-height));cursor:pointer}.timegrid-col:first-child{border-left:0}.timegrid-col.is-today{background-color:#f7faff}.timegrid-col.is-drop-target{background-color:var(--evt-soft, #eef5ff);box-shadow:inset 0 0 0 2px var(--evt, var(--accent))}.timegrid-now{position:absolute;left:0;right:0;z-index:3;height:2px;background:#ea4335;pointer-events:none}.timegrid-now:before{content:"";position:absolute;top:-3px;left:-4px;width:8px;height:8px;border-radius:50%;background:#ea4335}.timegrid-event{position:absolute;z-index:2;display:flex;flex-direction:column;gap:1px;overflow:hidden;border:0;border-radius:6px;padding:3px 6px 3px 11px;background:var(--evt);color:#fff;font:inherit;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 1px #ffffff29;transition:filter .12s ease,box-shadow .12s ease}.timegrid-event:hover{filter:brightness(.95);box-shadow:0 2px 8px #0f172a40}.timegrid-event-title{overflow:hidden;font-size:.74rem;font-weight:600;line-height:1.22;text-overflow:ellipsis;white-space:nowrap}.timegrid-event-time{overflow:hidden;font-size:.62rem;opacity:.9;text-overflow:ellipsis;white-space:nowrap}.timegrid-event.is-compact{border-radius:5px;padding:2px 5px 2px 11px}.month-event--ghost,.allday-chip--ghost,.timegrid-event--ghost{border:2px dashed var(--evt);background:var(--evt-soft);color:var(--evt-ink);box-shadow:0 6px 16px #0f172a2e;opacity:.8;pointer-events:none;transform:scale(.98)}.timegrid-event--ghost{z-index:1}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:overlay-in .15s ease}.modal{width:min(540px,100%);max-height:calc(100vh - 2rem);overflow:auto;background:var(--surface);border-radius:16px;box-shadow:0 24px 70px #0f172a59;animation:modal-in .18s ease}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.4rem .5rem}.modal-title{margin:0;font-size:1.05rem;font-weight:650;letter-spacing:-.02em}.modal-close{font-size:1.4rem;line-height:1}.modal-body{display:flex;flex-direction:column;gap:.85rem;padding:.35rem 1.4rem 1.15rem}.field{display:flex;flex-direction:column;gap:.3rem;min-width:0}.field label,.field-label{color:var(--muted);font-size:.68rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line-strong);border-radius:8px;padding:.52rem .65rem;background:var(--surface);color:var(--text);font:inherit;font-size:.87rem;transition:border-color .12s ease,box-shadow .12s ease}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #1a73e824}.field textarea{min-height:70px;resize:vertical}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.checkbox-field{display:flex;align-items:center;gap:.5rem;width:max-content;color:var(--text);font-size:.82rem;font-weight:600;cursor:pointer}.checkbox-field input{width:16px;height:16px;accent-color:var(--accent)}.color-row{display:flex;flex-wrap:wrap;gap:.45rem}.color-swatch{width:26px;height:26px;padding:0;border:0;border-radius:50%;cursor:pointer;transition:transform .12s ease}.color-swatch:hover{transform:scale(1.1)}.color-swatch.is-selected{outline:2px solid var(--text);outline-offset:2px}.field-hint{margin:0;color:var(--muted);font-size:.78rem}.tz-picker{position:relative}.tz-menu{position:absolute;z-index:40;top:calc(100% + .3rem);right:0;left:0;max-height:240px;overflow-y:auto;padding:.25rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);box-shadow:0 12px 28px #0f172a29}.tz-option{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;border:0;border-radius:6px;padding:.42rem .55rem;background:transparent;color:var(--text);font:inherit;font-size:.82rem;text-align:left;cursor:pointer}.tz-group+.tz-group{margin-top:.3rem;padding-top:.3rem;border-top:1px solid var(--line)}.tz-group-title{margin:0;padding:.25rem .55rem;color:var(--muted);font-size:.66rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.tz-option:hover,.tz-option.is-selected{background:var(--surface-muted)}.tz-option.is-selected .tz-name{color:var(--accent)}.tz-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tz-offset{flex:none;color:var(--muted);font-size:.76rem;font-variant-numeric:tabular-nums}.tz-empty{margin:0;padding:.6rem .55rem;color:var(--muted);font-size:.8rem}.attachment-list{display:flex;flex-direction:column;gap:.35rem;margin:0;padding:0;list-style:none}.attachment-item{display:flex;align-items:center;gap:.55rem;min-width:0;border:1px solid var(--line);border-radius:8px;padding:.4rem .55rem;background:var(--surface-muted)}.attachment-name{flex:1;overflow:hidden;color:var(--accent);font-size:.8rem;font-weight:600;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.attachment-name:hover{text-decoration:underline}.attachment-size{flex:none;color:var(--muted);font-size:.7rem}.attachment-remove{display:grid;place-items:center;flex:none;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font:inherit;font-size:1rem;line-height:1;cursor:pointer}.attachment-remove:hover{background:var(--danger-soft);color:var(--danger)}.attachment-remove:disabled{opacity:.5;cursor:not-allowed}.field .attach-button{display:inline-flex;align-self:flex-start;align-items:center;border:1px dashed var(--line-strong);border-radius:8px;padding:.4rem .7rem;color:var(--accent);font-size:.78rem;font-weight:600;letter-spacing:normal;text-transform:none;cursor:pointer;transition:background .12s ease,border-color .12s ease}.field .attach-button:hover{border-color:var(--accent);background:var(--accent-soft)}.field .attach-button.is-busy{opacity:.7;cursor:progress}.field .attach-button input{display:none}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;padding:.85rem 1.4rem 1.15rem;border-top:1px solid var(--line);border-radius:0 0 16px 16px;background:var(--surface-muted)}.confirm-dialog{width:min(500px,100%)}.confirm-dialog-head{position:relative;padding:1.6rem 3.5rem .4rem;text-align:center}.confirm-dialog-icon{position:absolute;top:1rem;right:1.1rem;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--danger-soft);color:var(--danger)}.confirm-dialog-icon svg{width:16px;height:16px}.confirm-dialog-icon.is-info{background:var(--accent-soft);color:var(--accent)}.confirm-dialog-subtitle{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.35rem;margin:.28rem 0 0;color:var(--muted);font-size:.8rem}.confirm-event-dot{width:9px;height:9px;border-radius:50%;background:var(--evt);box-shadow:0 0 0 3px var(--evt-soft)}.confirm-dialog-body{padding:.6rem 1.4rem 1rem}.confirm-message{max-width:380px;margin:0 auto;padding:.65rem .8rem;border-radius:10px;background:var(--danger-soft);color:#8a1c16;font-size:.78rem;line-height:1.45;text-align:center}.confirm-message.is-info{background:var(--accent-soft);color:#174ea6}.confirm-options{display:flex;flex-direction:column;gap:.5rem;max-width:380px;margin:.85rem auto 0}.confirm-option{display:flex;align-items:flex-start;gap:.6rem;padding:.6rem .7rem;border:1px solid var(--line);border-radius:10px;cursor:pointer;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease}.confirm-option:hover{border-color:var(--line-strong);background:var(--surface-muted)}.confirm-option.is-selected{border-color:var(--danger);background:var(--danger-soft);box-shadow:inset 0 0 0 1px var(--danger)}.confirm-option input{margin:.18rem 0 0;accent-color:var(--danger)}.confirm-option-title{display:block;color:var(--text);font-size:.82rem;font-weight:600}.confirm-option-hint{display:block;color:var(--muted);font-size:.72rem}.confirm-option.is-selected .confirm-option-hint{color:#8a1c16}.confirm-options.is-info .confirm-option input{accent-color:var(--accent)}.confirm-options.is-info .confirm-option.is-selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.confirm-options.is-info .confirm-option.is-selected .confirm-option-hint{color:#174ea6}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:1000px){.header-search-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.header-search-calendar{grid-column:1 / -1}.header-search-reset{grid-column:1 / -1;justify-self:end}}@media(max-width:800px){.app-main{flex-direction:column}.calendar-side{flex-direction:row;flex-wrap:wrap;align-items:center;width:100%}.mini-calendar{display:none}.calendar-list{flex:1 1 220px}.sidebar-user{flex:1 1 auto;margin-top:0}}@media(max-width:760px){.app-shell{flex-direction:column}.header-left{order:0}.header-right{order:1}.header-search{order:2;flex:1 0 100%;max-width:none;margin:0}.user-email{display:none}.app-header{gap:.5rem;padding:.6rem .8rem}.app-main{padding:.7rem .8rem .9rem}.range-title{font-size:.9rem}.header-right{gap:.45rem}.btn-primary span{display:none}.btn-primary{padding:.55rem .65rem}.view-switcher button{padding:.35rem .6rem}.month-event{font-size:.66rem}}@media(max-width:560px){.login-card{padding:1.5rem}.user-meta{display:none}.field-row{grid-template-columns:1fr 1fr}.timegrid-gutter,.timegrid-gutter-head,.timegrid-allday-label{width:52px}.timegrid-hour{right:6px;font-size:.62rem}.timegrid-weekday{font-size:.58rem;letter-spacing:.04em}.timegrid:not(.timegrid--day){overflow-x:auto;overflow-y:hidden}.timegrid:not(.timegrid--day) .timegrid-head,.timegrid:not(.timegrid--day) .timegrid-allday,.timegrid:not(.timegrid--day) .timegrid-scroll{min-width:680px}}.bell-wrap,.bell-btn{position:relative}.bell-btn.is-empty{opacity:.45}.bell-btn.is-empty:hover{background:var(--surface-muted);color:var(--muted)}.bell-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--danger);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center}.bell-dropdown{position:absolute;top:calc(100% + 8px);right:0;z-index:60;width:300px;padding:6px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 12px 32px #0f172a24}.bell-empty{margin:10px 8px;color:var(--muted);font-size:13px}.bell-list{max-height:320px;margin:0;padding:0;overflow-y:auto;list-style:none}.bell-item{padding:8px;border-bottom:1px solid var(--line);font-size:13px}.bell-item:last-child{border-bottom:0}.bell-message{display:block;color:var(--text)}.bell-actions{display:flex;gap:8px;margin-top:8px}.bell-actions .btn{padding:4px 10px;font-size:12px}.bell-clear{width:100%;margin-top:4px;padding:6px 0;border:0;background:none;color:var(--muted);font-size:12px;text-align:center;cursor:pointer}.bell-clear:hover{color:var(--text)}@media(max-width:720px){.bell-dropdown{right:-60px}}
