.day-scheduler{width:min(1000px,calc(100% - 32px));height:min(880px,92dvh);max-height:92dvh;max-width:none;padding:0;border:1px solid #dbc8d3;border-radius:22px;background:#fffdfb;color:var(--ink,#503443);overflow:hidden}
.day-scheduler[open]{display:flex;flex-direction:column}
.day-scheduler::backdrop{background:#34233080}
.day-scheduler-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 26px 14px;border-bottom:1px solid var(--line,#eadfe3);flex-shrink:0;background:#fffdfb}
.day-scheduler-header .eyebrow{font-size:10px;margin:0 0 4px}
.day-scheduler h2{font:500 28px/1.2 Manrope,sans-serif;letter-spacing:-.8px;margin:0}
.day-scheduler-date{font-size:13px;line-height:1.4;color:var(--muted,#786a73);margin:7px 0 0}
.day-scheduler-close{display:flex;align-items:center;justify-content:center;gap:8px;min-width:85px;min-height:44px;padding:9px 13px;border:1px solid #cdb5c3;border-radius:9px;background:#fff;flex-shrink:0;font-size:14px;font-weight:600}
.day-scheduler-close span{font-size:24px;line-height:1}
.day-scheduler-intro{flex-shrink:0;margin:0;padding:12px 26px;font-size:13px;line-height:1.55;color:#78616e}
.day-scheduler-body{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr);min-height:0;flex:1;border-top:1px solid var(--line,#eadfe3)}
.day-scheduler-activities{padding:18px;overflow-y:auto;min-width:0;border-right:1px solid var(--line,#eadfe3);background:#fbf6f8}
.day-scheduler-activities h3{font:600 15px/1.4 Manrope,sans-serif;margin:0}
.day-scheduler-progress{font-size:12px;line-height:1.5;margin:6px 0 14px;color:#78616e}
.day-scheduler-list{display:grid;gap:9px}
.day-scheduler-activity{display:flex;align-items:flex-start;gap:10px;padding:13px 11px;width:100%;min-height:58px;border:1px solid #e3d2dc;border-radius:11px;text-align:left;background:#fff;font-size:13px;line-height:1.4}
.day-scheduler-activity[aria-pressed=true]{background:#f0e3ed;border-color:#80536d;box-shadow:inset 0 0 0 1px #80536d}
.day-scheduler-activity:disabled{opacity:1;color:#796773;background:#f4eef1;cursor:default}
.day-scheduler-activity>span:last-child{min-width:0}
.day-scheduler-activity strong{display:block;overflow-wrap:anywhere;font-weight:600}
.day-scheduler-number{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#eadbe5;color:#653d55;font-size:12px;font-weight:700}
.day-scheduler-activity-detail{display:block;font-size:11px;color:#78616e;margin-top:5px}
.day-scheduler-calendar{display:flex;flex-direction:column;min-width:0;min-height:0}
.day-scheduler-selection{padding:14px 18px 10px;background:#fffdfb;flex-shrink:0;border-bottom:1px solid var(--line,#eadfe3)}
.day-scheduler-current{font-size:14px;line-height:1.4;font-weight:600;margin:0;overflow-wrap:anywhere}
.day-scheduler-hint{font-size:11px;line-height:1.4;margin:5px 0 10px;color:#78616e}
.day-scheduler-adjust{display:flex;align-items:flex-end;gap:7px;flex-wrap:wrap}
.day-scheduler-adjust label{display:grid;gap:4px;font-size:11px}
.day-scheduler-adjust input{width:122px;min-height:44px;padding:9px 10px;border:1px solid #cdb5c3;border-radius:8px;background:#fff;font-size:14px}
.day-scheduler-adjust button,.day-scheduler-jumps button,.day-scheduler-cancel{min-height:44px;padding:9px 12px;border:1px solid #d8c4d0;border-radius:8px;background:#fff;font-size:12px;font-weight:500}
.day-scheduler-adjust button:disabled,.day-scheduler-footer button:disabled,.day-scheduler-close:disabled{opacity:.6;cursor:wait}
.day-scheduler-jumps{display:flex;gap:6px;padding:9px 18px;border-bottom:1px solid var(--line,#eadfe3);background:#faf5f8;flex-shrink:0}
.day-scheduler-jumps button{padding:8px 10px;flex:1}
.day-scheduler-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:90px;flex:1;scrollbar-gutter:stable;background:#fff}
.day-scheduler-scroll:focus-visible{outline-offset:-3px}
.day-scheduler-timeline{position:relative;isolation:isolate}
.day-scheduler-slots{position:relative;z-index:1}
.day-scheduler-slot{height:48px;width:100%;display:flex;align-items:flex-start;gap:10px;text-align:left;border-bottom:1px solid #eee4ea;padding:5px 13px 5px 10px;background:transparent;border-radius:0;position:relative}
.day-scheduler-slot:nth-child(odd){border-top:1px solid #d6c4cf}
.day-scheduler-slot:hover:not(:disabled){background:#6c3f6010;filter:none}
.day-scheduler-slot:active{transform:none}
.day-scheduler-slot:focus-visible{outline-offset:-3px}
.day-scheduler-slot-time{font-size:11px;line-height:1.3;font-variant-numeric:tabular-nums;width:48px;flex-shrink:0;color:#796673}
.day-scheduler-slot-action{font-size:10px;margin-left:auto;align-self:center;border:1px solid #d7c4d0;border-radius:5px;padding:5px 7px;background:#fffdfbf0;color:#785369}
.day-scheduler-slot.is-unavailable .day-scheduler-slot-action{border-color:transparent;background:transparent;color:#8c7a85}
.day-scheduler-events{position:absolute;inset:0 112px 0 65px;z-index:2;pointer-events:none}
.day-scheduler-event{position:absolute;left:0;right:0;min-height:2px;border-left:4px solid #986782;background:#eee1eaeb;overflow:hidden;border-radius:3px;color:#634354;font-size:11px;line-height:1.2}
.day-scheduler-event span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1px 5px;font-weight:600}
.day-scheduler-event.is-selected{border-left-color:#5f304e;background:#dbbed2ef;color:#4b283d}
.day-scheduler-event.is-completed{border-left-color:#95858f;background:#e9e3e7ef;color:#786d74}
.day-scheduler-key{font-size:10px;line-height:1.4;color:#7e6876;margin:0;padding:7px 18px;background:#faf5f8;flex-shrink:0}
.day-scheduler-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;border-top:1px solid var(--line,#eadfe3);background:#fffdfb}
.day-scheduler-message{font-size:12px;line-height:1.45;margin:0;min-height:18px;color:#6a4b5d}
.day-scheduler-message.is-error{color:#9b304d}
.day-scheduler-footer-actions{display:flex;gap:9px;flex-shrink:0}
.day-scheduler-save{justify-content:center;min-height:44px}
@media(max-width:680px){
  .day-scheduler{width:calc(100% - 14px);height:96dvh;max-height:96dvh;border-radius:16px}
  .day-scheduler-header{padding:14px 14px 10px;gap:9px}
  .day-scheduler h2{font-size:21px;letter-spacing:-.5px}
  .day-scheduler-header .eyebrow{font-size:9px}
  .day-scheduler-date{font-size:11px;margin-top:5px}
  .day-scheduler-close{min-width:72px;padding:8px;font-size:12px}
  .day-scheduler-intro{padding:9px 14px;font-size:11px;line-height:1.4}
  .day-scheduler-body{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
  .day-scheduler-activities{padding:10px 12px;border-right:0;border-bottom:1px solid var(--line,#eadfe3);flex-shrink:0;overflow:hidden}
  .day-scheduler-activities h3,.day-scheduler-progress{display:none}
  .day-scheduler-list{display:flex;gap:7px;overflow-x:auto;padding:2px 2px 6px;scroll-snap-type:x proximity}
  .day-scheduler-activity{flex:0 0 215px;min-height:64px;padding:9px;font-size:12px;scroll-snap-align:start}
  .day-scheduler-activity-detail{font-size:10px;margin-top:3px}
  .day-scheduler-number{width:23px;height:23px}
  .day-scheduler-calendar{flex:1 0 360px;min-height:360px}
  .day-scheduler-selection{padding:10px 12px 8px}
  .day-scheduler-current{font-size:12px}
  .day-scheduler-hint{font-size:10px;margin:4px 0 6px}
  .day-scheduler-adjust{gap:6px}
  .day-scheduler-adjust label{font-size:10px;gap:3px}
  .day-scheduler-adjust input{min-height:44px;width:111px;font-size:14px}
  .day-scheduler-adjust button{min-height:44px;padding:8px 10px;font-size:11px}
  .day-scheduler-jumps{padding:6px 12px;gap:5px}
  .day-scheduler-jumps button{font-size:11px;padding:7px;min-height:44px}
  .day-scheduler-scroll{min-height:130px}
  .day-scheduler-events{left:60px;right:97px}
  .day-scheduler-slot-action{font-size:9px;padding:5px}
  .day-scheduler-key{font-size:9px;padding:5px 12px}
  .day-scheduler-footer{display:block;padding:9px 12px}
  .day-scheduler-message{font-size:11px;min-height:15px;margin-bottom:7px}
  .day-scheduler-footer-actions{justify-content:flex-end}
  .day-scheduler-save{flex:1;font-size:12px}
}
@media(max-height:620px){
  .day-scheduler-intro,.day-scheduler-key,.day-scheduler-header .eyebrow{display:none}
  .day-scheduler-header{padding-block:9px}
  .day-scheduler-selection{padding-block:7px}
  .day-scheduler-hint{display:none}
  .day-scheduler-current{margin-bottom:5px}
  .day-scheduler-footer{padding-block:7px}
}

.day-scheduler-event.is-movable{pointer-events:auto;touch-action:none;cursor:grab;user-select:none}.day-scheduler-event.is-movable:active{cursor:grabbing}.day-scheduler-event .day-scheduler-resize-handle{position:absolute;bottom:0;left:0;right:0;height:6px;min-height:0;padding:0;background:#76566a80;cursor:ns-resize}.day-scheduler-duration-note{font-size:12px;line-height:1.5;margin:8px 0}.day-scheduler-duration{width:84px;max-width:100%}
