.calendar-banner{display:grid;grid-template-columns:110px 1fr auto;align-items:center;gap:28px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:32px;margin:26px 0}.calendar-banner h2{font:32px/1.2 var(--serif);margin:9px 0 12px}.calendar-banner p{max-width:650px;color:var(--muted);line-height:1.7}.calendar-brand-art{position:relative;width:86px;height:86px;display:grid;place-items:center}.calendar-brand-art>span{font:italic 65px Georgia,serif;color:var(--ink)}.calendar-brand-art>span>span{color:#a27846}.calendar-brand-art i,.calendar-brand-art b{position:absolute;inset:0;border:1px solid var(--line);border-radius:50%;pointer-events:none;animation:calendar-orbit 24s linear infinite}.calendar-brand-art i{border-top-color:var(--accent);border-right-color:transparent}.calendar-brand-art b{inset:-9px;border-style:dashed;animation-duration:38s;animation-direction:reverse}.calendar-banner-status{display:flex;flex-direction:column;gap:10px;color:var(--muted);font-size:12px;min-width:170px}.calendar-sync{display:flex;align-items:center;gap:8px;color:var(--ink)}.calendar-sync i{width:7px;height:7px;border-radius:50%;background:#6e9362}.calendar-sync.syncing i{animation:calendar-breathe 1s ease-in-out infinite}.calendar-sync.needs-attention{color:var(--ink);font-weight:600}.calendar-source-warning{border-inline-start:3px solid #b28d56;padding:16px 20px;background:var(--surface-soft);color:var(--ink);margin-bottom:24px;border-radius:0 12px 12px 0;line-height:1.7}.calendar-source-warning a{text-decoration:underline;text-underline-offset:4px;white-space:normal}.calendar-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;margin:26px 0}.calendar-navigation,.calendar-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.calendar-navigation strong{margin-inline-start:10px;font-size:17px}.calendar-controls input,.calendar-controls select{background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:11px 12px;min-height:44px;border-radius:9px;max-width:100%}.calendar-views{display:flex;gap:3px;background:var(--surface-soft);padding:4px;border-radius:11px}.calendar-views button{padding:9px 12px;border-radius:8px;color:var(--ink);min-height:40px}.calendar-views button[aria-pressed=true]{background:var(--accent);color:var(--accent-text)}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:24px;align-items:start}.calendar-layout.day-only{grid-template-columns:1fr}.calendar-grid,.calendar-agenda{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{background:var(--surface-soft);border-bottom:1px solid var(--line);padding:14px 0;text-align:center;color:var(--muted);font-size:11px;font-weight:600}.calendar-day{min-height:105px;min-width:0;padding:10px 7px;border-inline-end:1px solid var(--line);border-bottom:1px solid var(--line);text-align:start;display:flex;flex-direction:column;gap:9px;color:var(--ink);position:relative;background:var(--surface)}.calendar-day:nth-child(7n){border-inline-end:0}.calendar-day:hover{background:var(--surface-soft)}.calendar-day.selected{box-shadow:inset 0 0 0 2px var(--accent);z-index:1}.calendar-day.other-month .calendar-day-number{color:var(--muted)}.calendar-day-number{display:grid;place-items:center;width:25px;height:25px;font-size:12px;border-radius:50%;align-self:flex-start}.calendar-day.is-today .calendar-day-number{background:var(--accent);color:var(--accent-text)}.calendar-day-events{display:flex;flex-direction:column;gap:4px;width:100%;overflow:hidden}.calendar-mini{display:block;padding:3px 4px;border-inline-start:2px solid #648c9c;background:var(--surface-soft);font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.calendar-mini.from-robin{border-color:#7f9c6c}.calendar-more{font-size:10px;color:var(--muted)}.calendar-day-dots{display:none;gap:3px}.google-dot,.robin-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6b91a0;flex-shrink:0}.robin-dot{background:#859c68}.calendar-agenda>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px;border-bottom:1px solid var(--line)}.calendar-agenda>header h2{font-size:20px;margin-top:7px}.calendar-event{width:100%;display:flex;gap:16px;text-align:start;padding:22px 24px;border-bottom:1px solid var(--line);align-items:flex-start;color:var(--ink)}.calendar-event:hover{background:var(--surface-soft)}.calendar-event-clock{flex:0 0 98px;font-size:12px;line-height:1.7;color:var(--muted)}.calendar-event-main{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}.calendar-event strong{font-size:14px;overflow-wrap:anywhere}.calendar-event-detail,.calendar-event-state{font-size:11px;line-height:1.6;color:var(--muted)}.calendar-event-progress{height:3px;background:var(--line);border-radius:4px;overflow:hidden;margin-top:4px}.calendar-event-progress i{height:100%;display:block;width:var(--calendar-progress);background:#6b91a0;transition:width .35s ease}.from-robin .calendar-event-progress i{background:#859c68}.calendar-event.is-cancelled{opacity:.72}.calendar-agenda>footer{padding:20px 24px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;color:var(--muted);font-size:11px;line-height:1.6}.calendar-legend{display:flex;align-items:center;gap:7px}.calendar-empty{padding:42px 24px;text-align:center;line-height:1.7}.calendar-empty>span{display:block;font:40px var(--serif);color:var(--muted);margin-bottom:12px}.calendar-empty p{color:var(--muted);margin:10px 0 20px}.calendar-dialog{width:min(620px,calc(100vw - 32px));max-height:90dvh;overflow:auto;background:var(--surface);color:var(--ink)}.calendar-dialog label{display:flex;flex-direction:column;gap:8px;margin:18px 0;color:var(--ink);font-size:13px}.calendar-dialog input,.calendar-dialog textarea,.calendar-dialog select{background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:12px;min-height:46px;border-radius:9px;max-width:100%;width:100%;box-sizing:border-box}.calendar-form-times{display:grid;grid-template-columns:1fr 1fr;gap:18px}.calendar-dialog .calendar-checkbox{flex-direction:row;align-items:center}.calendar-checkbox input{width:17px;min-height:17px;margin:0}.calendar-form-intro{color:var(--muted);line-height:1.7;margin:16px 0}.calendar-dialog #calendar-form-error{color:var(--ink);font-weight:600;line-height:1.6}.workspace-pulse{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.6fr);gap:30px;margin:36px 0 48px;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;padding:30px}.pulse-overview h2{font-size:27px;line-height:1.3;margin:10px 0}.pulse-overview>p{font-size:12px;color:var(--muted);line-height:1.7;max-width:340px}.pulse-completion{display:flex;align-items:center;gap:20px;margin-top:24px}.pulse-completion strong{font-size:13px}.pulse-completion small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:6px}.pulse-ring{flex:0 0 76px;width:76px;height:76px;background:conic-gradient(#849d70 var(--pulse-progress),var(--line) 0);border-radius:50%;display:grid;place-items:center;position:relative}.pulse-ring:before{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--surface)}.pulse-ring span{position:relative;font:22px var(--serif);color:var(--ink)}.pulse-insights{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden}.pulse-insights>a{display:flex;flex-direction:column;gap:8px;min-width:0;padding:20px;background:var(--surface)}.pulse-insights>a:hover{background:var(--surface-soft)}.pulse-insights span{font-size:11px;font-weight:600;color:var(--muted)}.pulse-insights strong{font-size:30px;font-weight:450;color:var(--ink);line-height:1.1}.pulse-insights small{font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.pulse-insights .pulse-next strong{font-size:19px;line-height:1.4}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes calendar-orbit{to{transform:rotate(360deg)}}@keyframes calendar-breathe{50%{opacity:.4}}
@media(max-width:1200px){.calendar-layout{grid-template-columns:1fr}.calendar-banner{grid-template-columns:90px 1fr}.calendar-banner-status{grid-column:2}.workspace-pulse{grid-template-columns:1fr 1.4fr;gap:22px;padding:24px}.calendar-day{min-height:95px}}
@media(max-width:700px){.calendar-banner{grid-template-columns:1fr;padding:26px;gap:20px}.calendar-brand-art{width:65px;height:65px}.calendar-brand-art>span{font-size:50px}.calendar-banner-status{grid-column:auto}.calendar-banner h2{font-size:28px}.calendar-controls{width:100%;gap:9px}.calendar-controls>label{flex:1;min-width:120px}.calendar-controls input,.calendar-controls select{width:100%}.calendar-day{min-height:65px;padding:7px 4px;gap:7px}.calendar-day-events{display:none}.calendar-day-dots{display:flex}.calendar-weekdays{font-size:10px}.calendar-agenda>header,.calendar-event{padding:20px}.calendar-event-clock{flex-basis:80px;font-size:11px}.calendar-event{gap:12px}.workspace-pulse{grid-template-columns:1fr;padding:24px;gap:24px}.pulse-insights>a{padding:16px}.pulse-completion{margin-top:20px}.calendar-form-times{grid-template-columns:1fr;gap:0}.calendar-navigation strong{font-size:15px}.calendar-toolbar{gap:16px}}
@media(prefers-reduced-motion:reduce){.calendar-brand-art i,.calendar-brand-art b,.calendar-sync.syncing i{animation:none}.calendar-event-progress i{transition:none}}html.motion-disabled .calendar-brand-art i,html.motion-disabled .calendar-brand-art b,html.motion-disabled .calendar-sync.syncing i{animation:none}html.motion-disabled .calendar-event-progress i{transition:none}

.calendar-event-progress{appearance:none;-webkit-appearance:none;width:100%;border:0;height:3px;border-radius:4px;overflow:hidden}.calendar-event-progress::-webkit-progress-bar{background:var(--line)}.calendar-event-progress::-webkit-progress-value{background:#6b91a0}.calendar-event-progress::-moz-progress-bar{background:#6b91a0}.from-robin .calendar-event-progress::-webkit-progress-value,.from-robin .calendar-event-progress::-moz-progress-bar{background:#859c68}.pulse-ring{background:none}.pulse-ring:before{display:none}.pulse-ring svg{position:absolute;inset:0;width:76px;height:76px;transform:rotate(-90deg);stroke-width:6;stroke-linecap:round;fill:none}.pulse-ring .pulse-track{stroke:var(--line)}.pulse-ring .pulse-fill{stroke:#849d70}


/* Keep the mobile navigation available through long workspace views. */
@media (max-width:760px) {
 .topbar { position:sticky; top:0; z-index:20; }
 #menu-toggle { min-width:44px; min-height:44px; flex-shrink:0; }
 input, select, textarea, [contenteditable="true"] { font-size:16px !important; }
 input, select, textarea { max-width:100%; }
 .login-card, .calendar-form-times > label { min-width:0; }
}

@media (max-width: 760px) {
 .calendar-controls > label { min-width:0; flex:1 1 145px; }
 .calendar-controls input, .calendar-controls select {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  width:100%;
 }
}
@media (max-width: 480px) {
 .calendar-controls > label { flex:0 0 100%; }
}

@media (max-width:480px) {
 .calendar-controls {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:100%;
  min-width:0;
 }
 .calendar-controls > label {display:block;min-inline-size:0;max-inline-size:100%}
 #calendar-date {
  display:block;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
  inline-size:100%;
  min-inline-size:0;
  max-inline-size:100%;
 }
 #calendar-date::-webkit-date-and-time-value {min-width:0;text-align:start}
}

.calendar-agenda-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.6rem}
.calendar-dialog .dialog-header{align-items:flex-start;gap:1rem}
.calendar-dialog .dialog-header h2{margin:.35rem 0 0;overflow-wrap:anywhere}
.calendar-event-details{display:grid;gap:0;margin:1rem 0}
.calendar-event-details>div{display:grid;grid-template-columns:minmax(6rem,25%) minmax(0,1fr);gap:.75rem;padding:.7rem 0;border-bottom:1px solid var(--line)}
.calendar-event-details dt{font-weight:600}
.calendar-event-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:14rem;overflow:auto}
.calendar-detail-actions{flex-wrap:wrap;gap:.65rem}
.workspace-switch{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-block:.55rem .75rem;width:100%;box-sizing:border-box}
@media(max-width:480px){.calendar-event-details>div{grid-template-columns:1fr;gap:.3rem}}

.topbar .breadcrumb{display:flex;align-items:center;gap:.55rem;min-width:0}
.topbar .breadcrumb #breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .workspace-identity{display:inline-flex;align-items:center;gap:.4em;flex:none;padding:.23em .58em;border-radius:.48rem;border:1px solid currentColor;background:#eaf4ef;color:#194636;font-size:.78rem;font-weight:700;line-height:1.35;white-space:nowrap}
.topbar .workspace-identity::before{content:"";width:.45em;height:.45em;border-radius:50%;background:currentColor}
.topbar .workspace-identity-work{background:#eaf0ff;color:#243e83}
@media(max-width:560px){.topbar .breadcrumb{gap:.35rem}.topbar .workspace-identity{font-size:.72rem}.topbar .workspace-divider{display:none}}
@media(max-width:370px){.topbar .breadcrumb #breadcrumb{display:none}}
