.calendar-layout{display:grid;grid-template-columns:minmax(0,500px) minmax(270px,1fr);gap:22px;align-items:start;max-width:922px}
.calendar-card{padding:18px}
.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}
.calendar-toolbar h2{font-size:19px;text-transform:capitalize;line-height:1.5}
.calendar-toolbar>div{display:flex;align-items:center;gap:12px}
.calendar-toolbar [data-step="-1"] .icon{transform:rotate(180deg)}
.calendar-space-label{display:flex;gap:15px;align-items:center;font-size:11px;color:#876d52;margin:0 0 14px}
.calendar-space-label select{margin:0;max-width:230px}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.calendar-weekdays{font-size:10px;color:#957859;text-align:center;margin-bottom:12px}
.calendar-day{position:relative;min-width:0;min-height:0;aspect-ratio:1;overflow:hidden;border:1px solid #e8d9c5;background:#fffcf7;text-align:left;border-radius:12px;padding:6px;color:var(--ink);display:flex;flex-direction:column;gap:4px;transition:background .15s,border-color .15s}
.calendar-day:hover{background:#fff0d9}
.calendar-day.other-month{opacity:.45}
.calendar-day.selected{border:2px solid var(--orange);padding:5px;background:#fff0dd}
.calendar-day-number{font-size:12px;font-weight:650;width:20px;height:20px;display:grid;place-items:center;border-radius:50%}
.calendar-day.is-today .calendar-day-number{background:var(--orange);color:#2e2923}
.calendar-events{position:absolute;top:10px;right:7px;font-size:0;line-height:1.5;color:#a45221}
.calendar-events::after{content:attr(data-count);font-size:9px}
.calendar-events.done{color:#69816b}
.calendar-day-preview{font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;color:#896d50}
.calendar-agenda .card-header h2{font-size:16px}
.calendar-entry{padding:19px 22px;border-top:1px solid #e7d8c0}
.calendar-edit{display:flex;flex-direction:column;align-items:flex-start;width:100%;position:relative;padding:0 26px 0 0;text-align:left;gap:8px;background:none}
.calendar-edit .icon{position:absolute;right:0;top:19px;width:17px;height:17px;color:#a66d3e}
.calendar-edit strong{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.calendar-edit>span{font-size:10px;color:#937456;line-height:1.7;overflow-wrap:anywhere}
.calendar-edit small{font-size:9px;color:#aa8564}
.calendar-edit .calendar-entry-kind{font-size:9px;color:#aa6932}
.calendar-entry.completed .calendar-edit strong{color:#9c8a75;text-decoration:line-through}
.calendar-entry>.text-button{font-size:10px;margin-top:15px}
.calendar-empty{padding:0 22px 25px;font-size:12px;line-height:1.8;color:#967858}
.task-row.deadline-highlight{background:#fbd7a9;outline:2px solid #e7994d;outline-offset:3px;border-radius:12px;animation:deadline-locate 2.6s ease-out both}
.task-row{scroll-margin-top:25px}
@keyframes deadline-locate{0%,35%{background:#fbd7a9;outline-color:#e7994d}100%{background:transparent;outline-color:transparent}}
.dashboard-quote{display:flex;align-items:center;gap:14px;background:#fff5e5;border:1px solid #fffc;border-radius:20px;padding:12px 20px 12px 9px;max-width:640px}
.dashboard-quote img{width:54px;height:54px;object-fit:contain;flex-shrink:0}
.dashboard-quote span{font-size:12px;line-height:1.7;color:#775a3e}
.dashboard-heading{align-items:center}
@media(max-width:1150px){.calendar-layout{grid-template-columns:minmax(0,1fr);max-width:500px}}
@media(max-width:760px){.calendar-card{padding:18px 14px}.calendar-toolbar h2{font-size:17px}.calendar-toolbar>div{gap:6px}.calendar-space-label{flex-wrap:wrap;gap:8px}.calendar-space-label select{max-width:none;font-size:16px}.calendar-layout{gap:17px}.calendar-day{min-height:66px;border-radius:10px;padding:6px 3px;gap:3px}.calendar-day.selected{padding:5px 2px}.calendar-day-preview{display:none}.calendar-events{font-size:8px}.calendar-day-number{font-size:11px}.dashboard-heading{flex-wrap:wrap}.dashboard-heading .heading-actions{flex-wrap:wrap}.dashboard-quote{padding:9px 13px 9px 4px;gap:10px;max-width:none}.dashboard-quote img{width:45px;height:45px}.dashboard-quote span{font-size:11px}}
@media(max-width:360px){.calendar-toolbar{flex-wrap:wrap;gap:9px}.calendar-toolbar h2{font-size:16px}.calendar-grid,.calendar-weekdays{gap:4px}.calendar-events{font-size:7px}.calendar-day{min-height:60px}.calendar-card{padding:15px 10px}.dashboard-quote{max-width:none}}
@media(max-width:760px){.calendar-day .calendar-events{font-size:0}.calendar-events::after{content:attr(data-count);font-size:9px;line-height:1.4}}
@media(max-width:760px){
  .calendar-layout{max-width:none}
  .calendar-card{padding:18px 14px}
  .calendar-toolbar{margin-bottom:15px}
  .calendar-space-label{margin-bottom:16px}
  .calendar-weekdays{margin-bottom:8px}
  .calendar-day{aspect-ratio:1;min-height:0;height:auto;padding:0!important;display:block;overflow:hidden}
  .calendar-day-number{position:absolute;top:3px;left:3px;width:19px;height:19px;font-size:11px}
  .calendar-day .calendar-events{position:absolute;top:auto;bottom:3px;right:4px;line-height:1}
  .calendar-events::after{font-size:9px}
}
.mobile-more{display:none}
.more-modal{max-width:380px}
.more-modal{overflow-y:auto;max-height:calc(100dvh - 120px - env(safe-area-inset-bottom))}
.more-link{display:flex;align-items:center;gap:16px;background:none;width:100%;padding:18px 0;border-top:1px solid #e5d7c4;font-size:15px;text-align:left}
.more-link span{flex:1}
.more-link>.icon:last-child{width:16px;height:16px;color:#967c5e}
@media(max-width:760px){.sidebar .nav-item.mobile-unpinned{display:none}.sidebar .mobile-more{display:flex}.sidebar nav{gap:0}.sidebar .nav-item{flex:1;min-width:0;max-width:76px}.more-modal{margin:auto 15px calc(90px + env(safe-area-inset-bottom));width:calc(100% - 30px);max-width:none;border-radius:24px}}

.calendar-side{display:flex;flex-direction:column;gap:20px;min-width:0}.calendar-scene{position:relative;max-width:1300px}.deadline-schedule .card-header h2{font-size:15px}.schedule-list{max-height:420px;overflow-y:auto}.schedule-entry{display:flex;align-items:center;gap:13px;padding:17px 21px;border-top:1px solid #e9dcc6;width:100%;background:none;text-align:left}.schedule-entry:hover{background:#fff0d9}.schedule-date{font-size:10px;font-weight:650;white-space:nowrap;color:#9f602f}.schedule-date small{display:block;font-size:8px;margin-top:5px;color:var(--red)}.schedule-task{flex:1;min-width:0}.schedule-task strong{display:block;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.schedule-task small{display:block;font-size:9px;line-height:1.6;color:#9b7c5a;margin-top:6px;overflow-wrap:anywhere}.schedule-entry>.icon{width:15px;height:15px;color:#ad7643}.schedule-entry.overdue{background:#fff2e3}@media(max-width:760px){.calendar-side{gap:17px}.schedule-entry{padding:16px 18px;gap:11px}.schedule-date{font-size:10px}.schedule-task strong{font-size:12px}}

@media(max-width:760px){#workspace[data-view="calendar"] .page-header{min-height:0;padding:0;background:none;overflow:visible;margin-bottom:20px}#workspace[data-view="calendar"] .page-header>div{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;max-width:none}#workspace[data-view="calendar"] .page-header .eyebrow,#workspace[data-view="calendar"] .page-header p,#workspace[data-view="calendar"] .page-art{display:none}#workspace[data-view="calendar"] .page-header h1{margin:0;font-size:28px}#workspace[data-view="calendar"] .heading-actions{margin:0;flex-shrink:0}}
