[hidden]{display:none!important}
.calendar-event{position:relative;padding-right:34px!important}.event-actions{position:absolute;right:3px;top:4px;padding:2px 6px;background:transparent;color:inherit;font-size:22px;line-height:24px;border-radius:6px;cursor:pointer;touch-action:manipulation}.event-actions:hover,.event-actions:focus-visible{background:#cbd9ff;outline:2px solid var(--brand)}.calendar-event:focus-visible{outline:2px solid var(--brand)}
#meetingDialog{width:480px;max-width:calc(100% - 24px);max-height:90vh;overflow:auto}#meetingDialog label{margin:16px 0}.meeting-section{margin-top:24px}.meeting-entry{padding:16px 0;border-bottom:1px solid var(--line)}.meeting-entry p{margin:6px 0}.meeting-entry .row{margin-top:10px}#meetingNotices p{border-bottom:1px solid var(--line);padding:10px 0}#meetingNotices small{display:block}
.calendar-context-menu{position:fixed;z-index:1000;min-width:220px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #14234226}
.calendar-context-menu button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);padding:11px 14px;border-radius:7px}
.calendar-context-menu button:hover,.calendar-context-menu button:focus-visible{background:var(--brand-soft);outline:2px solid var(--brand)}
.calendar-event[draggable=false]{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.calendar-event.dragging{opacity:.45;cursor:grabbing}
.calendar-day.drop-target,.agenda-day.drop-target{background:#e5edff;box-shadow:inset 0 0 0 2px var(--brand)}
nav a[aria-current=page]{color:var(--brand);font-weight:600;border-bottom:2px solid var(--brand);padding-bottom:6px}
.team-page main.auth-layout{display:grid;grid-template-columns:1fr 1fr;gap:70px;max-width:1100px;margin:50px auto;padding:0 24px}
.auth-intro{background:var(--brand-soft);border-radius:28px;padding:36px}.auth-intro h1{margin:24px 0}.auth-intro .monti{margin:26px auto}.auth-intro .company-logo{margin-top:25px}
.auth-panel{align-self:center;min-width:0}.auth-panel form{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px}.auth-panel h2{font-size:27px}.auth-panel label{margin:20px 0;font-size:14px}.auth-panel .primary{width:100%;margin-top:10px;padding:14px}.auth-panel .secondary{margin-top:12px}.auth-panel p{font-size:14px}#authMessage,.error{color:#994b21;line-height:1.6;font-size:13px}
.calendar-page main.planner{display:block;max-width:1440px;margin:auto;padding:38px 32px}
.planner-title{display:flex;justify-content:space-between;align-items:center;gap:20px}.planner-title h1{margin:10px 0;font-size:36px}.planner-title p{margin:0}
.planner-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0 10px;padding:16px 20px;background:#fff;border:1px solid var(--line);border-radius:16px}
.period-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.period-nav strong{font-size:15px;font-weight:500;margin-left:12px}.planner-toolbar label{min-width:130px;margin:0}.planner-toolbar select{margin-top:4px}
.calendar-scroll{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));min-height:440px;min-width:980px}.calendar-day{padding:14px 10px;border-right:1px solid var(--line);min-width:0}.calendar-day:last-child{border:0}.calendar-day h2{font-size:14px;margin:0 0 12px;text-transform:capitalize}.calendar-day.is-today{background:#f7f9ff}.is-today h2{color:var(--brand)}.day-add{background:transparent;font-size:12px;color:#52617b;padding:6px 0;margin-bottom:15px}.day-empty{font-size:12px!important;color:#8190a6}
.calendar-event{display:block;width:100%;text-align:left;border:0;border-left:3px solid #8faeff;background:#e9efff;padding:11px 9px;margin:0 0 10px;border-radius:8px;overflow-wrap:anywhere;color:var(--ink)}.calendar-event strong{display:block;font-size:13px;font-weight:500;line-height:1.5;margin:6px 0}.calendar-event small{display:block;font-size:11px;margin:0;color:#52617b}.event-time{font-size:11px;font-variant-numeric:tabular-nums}.calendar-event.mine{border-left-color:var(--brand)}.calendar-event.colleague{background:#f0f3f8;border-left-color:#a9b5cc}.calendar-event.deadline{background:#fff5e9;border-left-color:var(--accent)}
.planner-bottom{display:flex;justify-content:space-between;gap:20px;margin:20px 0;color:#63708a;font-size:12px}.agenda-day{padding:20px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:14px}.agenda-day h2{font-size:17px;text-transform:capitalize}.agenda-day .calendar-event{max-width:750px}.agenda-day .calendar-event strong{font-size:15px}
#calendarMessage{min-height:20px;font-size:13px}#blockDialog{width:440px;max-width:calc(100% - 24px);max-height:90vh;overflow:auto}#blockDialog h2{font-size:24px;margin:0}.dialog-top{display:flex;align-items:center;justify-content:space-between}#blockDialog label{font-size:13px;margin:16px 0}.inline input{width:auto}.staff-entry{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.staff-entry small{font-size:11px}.staff-entry button{margin-top:8px}#mailStatus{font-size:12px}
@media(max-width:800px){.team-page main.auth-layout{grid-template-columns:1fr;gap:24px;max-width:540px;margin:25px auto}.auth-intro{display:none}.planner-toolbar{flex-wrap:wrap}.period-nav{width:100%}.planner-title{align-items:flex-start;flex-direction:column}.calendar-page main.planner{padding:25px 18px}.planner-bottom{flex-direction:column;gap:8px}.planner-toolbar label{flex:1}.period-nav strong{width:100%;margin:8px 0 0}.calendar-page header nav{flex-wrap:wrap;gap:12px}.calendar-page header{height:auto;flex-wrap:wrap;padding:20px}}
#recoveryDialog{width:460px;max-width:calc(100% - 32px);border:1px solid var(--line);border-radius:22px;padding:30px}#recoveryDialog::backdrop{background:#14234266}#recoveryDialog p{line-height:1.6}#recoveryBot{display:block;text-align:center;text-decoration:none;padding:14px;border-radius:10px}#recoveryDialog code{color:var(--brand);font-weight:600}

.meeting-guests{border:1px solid #d8e1ef;border-radius:12px;margin:16px 0;padding:12px}.meeting-guests legend{font-weight:600}#meetingGuests{max-height:220px;overflow-y:auto}#meetingGuests label{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:6px}#meetingGuests input{width:20px;height:20px;margin:0;flex:0 0 20px}

/* Type is encoded in both text and colour; project has a separate badge. */
.calendar-event.type-task{background:#fff5e9;border-left-color:#d78313}.calendar-event.type-busy{background:#edf2fa;border-left-color:#6b83a7}.calendar-event.type-video{background:#f2edff;border-left-color:#8052ca}.calendar-event.type-meeting{background:#e8f5f1;border-left-color:#23846f}.calendar-event.type-absence{background:#f1f2f4;border-left-color:#7c8492}
.event-tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 9px;font-size:10px;line-height:1.4}.event-type{font-weight:700;color:#334155}.event-project{display:inline-block;max-width:100%;padding:2px 6px;border-radius:5px;background:#ffffffc9;color:#475569;overflow-wrap:anywhere}.event-project[data-tone]{border-left:3px solid #4376bc}.event-project[data-tone="1"]{border-left-color:#9c5e99}.event-project[data-tone="2"]{border-left-color:#298478}.event-project[data-tone="3"]{border-left-color:#b47825}.event-project[data-tone="4"]{border-left-color:#7653b4}.event-project[data-tone="5"]{border-left-color:#ae5960}
.calendar-legend{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:12px;color:#475569;margin:14px 0}.calendar-legend span{display:inline-flex;align-items:center;gap:6px}.calendar-legend i{width:9px;height:9px;border-radius:3px;background:#6b83a7}.calendar-legend .legend-task{background:#d78313}.calendar-legend .legend-video{background:#8052ca}.calendar-legend .legend-meeting{background:#23846f}.calendar-legend .legend-absence{background:#7c8492}
