:root{--schedule-rail-width: 360px;--type-focus: #4f7ae8;--type-focus-deep: #2f5ac4;--type-break: #0d9488;--type-break-deep: #0f766e;--type-calendar: #d97757;--type-calendar-deep: #b4532a;--type-recurring: #6d5ce8;--type-recurring-deep: #4c3ad4;--planning-accent: #f59e0b;--timeline-focus-bg: #dbeafe;--timeline-focus-border: #7dd3fc;--timeline-focus-ink: #0f172a;--timeline-break-bg: #ccfbf1;--timeline-break-border: #5eead4;--timeline-break-ink: #115e59;--timeline-calendar-bg: #ffedd5;--timeline-calendar-border: #fdba74;--timeline-calendar-ink: #7c2d12;--timeline-recurring-bg: #e8eaff;--timeline-recurring-border: #a5b4fc;--timeline-recurring-ink: #312e81;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#0f172a;background:#eef2f7}*{box-sizing:border-box}body{margin:0}#root{min-height:100vh}.app{max-width:1280px;margin:0 auto;padding:1.5rem}.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem;background:#ecfeff;border:1px solid #7dd3fc;border-radius:24px;box-shadow:0 18px 48px #0f172a1a}.app-header h1{margin:0;font-size:clamp(2rem,5vw,3.5rem);letter-spacing:-.05em}.eyebrow{margin:0 0 .25rem;color:var(--type-focus-deep);font-weight:800;letter-spacing:.08em;text-transform:uppercase}.weekday-badge{border-radius:999px;background:var(--type-focus-deep);color:#fff;font-size:clamp(1rem,2vw,1.4rem);font-weight:800;padding:.75rem 1.1rem;box-shadow:0 12px 28px #2563eb47}.editing-layout,.execution{margin-top:.75rem}.day-boundary-controls{margin-top:.75rem;padding:.85rem 1rem}.day-boundary-controls h2,.day-boundary-controls h3{margin:0 0 .6rem;font-size:1rem}.day-boundary-fields{display:flex;gap:.75rem;flex-wrap:wrap}.day-boundary-fields label{display:grid;gap:.35rem;font-weight:700;color:#334155}.day-boundary-fields label span{font-size:.85rem;color:#475569}.day-boundary-fields select{min-width:11rem}.panel{background:#fff;border:1px solid #dbe3ef;border-radius:18px;padding:1rem;box-shadow:0 12px 32px #0f172a14}.panel h3{margin:0 0 .75rem}.panel-subheader{margin:-.35rem 0 .85rem;font-size:.88rem;line-height:1.45;color:#475569;font-weight:600}.timer-card-title-with-icon{display:inline-flex;align-items:center;gap:.45rem}.execution{display:grid;grid-template-columns:minmax(0,1fr) var(--schedule-rail-width);gap:1rem;align-items:start}.timeline-timer-column{display:flex;flex-direction:column;gap:1rem;min-width:0}.timeline-timer-sticky{position:sticky;top:1rem;align-self:start;display:flex;flex-direction:column;gap:1rem;min-width:0}.editing-timer-rail{position:sticky;top:1rem;align-self:start;min-width:0}.timeline-task-list h4{margin:0 0 .65rem;font-size:.95rem;font-weight:800;color:#334155}.timeline-task-list-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.timeline-task-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.5rem .65rem;padding:.45rem .55rem;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.timeline-task-list-row.is-recurring{background:#eef2ff;border-color:#c7d2fe}.timeline-task-row-icons{display:flex;align-items:center;gap:.2rem;flex-shrink:0}.timeline-row-icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:.25rem;border:none;border-radius:8px;background:transparent;color:#64748b;cursor:pointer}.timeline-row-icon-btn:hover{background:#0f172a0f;color:#0f172a}.timeline-row-repeat-on{color:#4f46e5}.timeline-task-list-main{display:flex;flex-direction:column;gap:.35rem;min-width:0;flex:1}.timeline-task-pomodoro-row{display:flex;align-items:center;gap:.35rem}.timeline-task-pomodoro-row button{padding:.25rem .45rem;font-size:.75rem}.timeline-task-title{font-weight:600;color:#0f172a;min-width:0;flex:1}.timeline-task-title.is-completed{text-decoration:line-through;color:#64748b}.timeline-task-title.is-recurring:not(.is-completed){color:#4338ca}.timeline-event-time{font-size:.8rem;font-weight:500;color:#64748b}.timeline-event-row .timeline-task-list-main{gap:.2rem}.timeline-task-list-row.timeline-event-row{background:#fff7ed;border-color:#fed7aa}.timeline-event-row .timeline-task-title,.timeline-event-row .timeline-task-title.is-recurring:not(.is-completed){color:var(--timeline-calendar-ink)}.timeline-task-actions{flex-shrink:0}.timeline-task-complete,.timeline-task-undo{font:inherit;font-weight:700;font-size:.8rem;padding:.35rem .65rem;border-radius:8px;cursor:pointer;border:1px solid #cbd5e1;background:#fff;color:#0f172a}.timeline-task-complete:hover,.timeline-task-undo:hover{background:#f1f5f9}.editing-layout{display:grid;grid-template-columns:minmax(0,1fr) var(--schedule-rail-width);gap:1rem;align-items:start}.edit-panels{display:grid;grid-template-columns:1fr;gap:1rem}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.75rem;padding:.9rem 1rem;border:1px solid #a5f3fc;border-radius:16px;background:#ecfeff}.section-heading .section-actions{margin-left:auto;flex-direction:column;align-items:flex-end;flex-wrap:nowrap}.timeline-options-banner{align-items:center;flex-wrap:wrap}.timeline-options-title{margin:0;flex-shrink:0}.timeline-options-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem 1rem;flex:1;justify-content:flex-end;min-width:0}.day-boundary-fields--toolbar{flex-direction:row;align-items:center}.day-boundary-fields--toolbar label{display:flex;flex-direction:row;align-items:center;gap:.45rem}.day-boundary-fields--toolbar label span{white-space:nowrap}.timeline-options-banner .timeline-options-actions{flex-direction:row;flex-wrap:nowrap;align-items:center;margin-left:0}.planning-heading h2{margin:0}.planning-heading p{margin:.25rem 0 0;color:#334155}.section-actions{display:inline-flex;gap:.5rem;margin-bottom:0;flex-wrap:wrap}.row{display:flex;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap}input,button,select{border-radius:8px;border:1px solid #d1d5db;padding:.5rem .75rem;font-size:.95rem}input,select{min-width:0;background:#fff}button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;background:#f8fafc;cursor:pointer;font-weight:700;transition:transform .12s ease,background .12s ease,border-color .12s ease}button:hover:not(:disabled){background:#cffafe;border-color:var(--type-focus);transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.55}ul,ol{padding-left:1.2rem}.editable-list{display:grid;gap:.75rem;list-style:none;list-style-position:inside;padding-left:0}.item-row,.edit-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.item-row span:first-child,.edit-row input:first-child{flex:1 1 160px}.add-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:.6rem;padding:.85rem;margin-bottom:1rem;background:#f8fafc;border:1px dashed #bfdbfe;border-radius:14px}.recurring-add-card{margin-bottom:.75rem}.task-entry,.event-entry{padding:.75rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px}.task-entry-pomodoro-row{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;width:100%}.task-entry-pomodoro-group{display:inline-flex;align-items:center;gap:.35rem;flex-shrink:0}.task-pomodoro-apple-lead{flex-shrink:0;color:#b91c1c}.task-entry-title-input{flex:1 1 160px;min-width:0}.task-entry-remove{margin-left:auto;flex-shrink:0}.pomodoro-picker{display:inline-flex;gap:.25rem;padding:.25rem;background:#ccfbf1;border-radius:999px}.pomodoro-picker label{cursor:pointer}.pomodoro-picker input{position:absolute;opacity:0;pointer-events:none}.pomodoro-picker span{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:999px;color:#475569;font-weight:800}.pomodoro-picker input:checked+span{background:var(--type-focus-deep);color:#fff}.pomodoro-picker-apple{background:#fef2f2;border:1px solid #fecaca}.pomodoro-picker-apple input:checked+span{background:#dc2626;border:1px solid #b91c1c;color:#fff}.recurring-entry{width:100%}.recurring-entry-finished input,.recurring-entry-finished select{background:#e8ecf3;border-color:#cbd5e1}.recurring-title-input.is-line-through{text-decoration:line-through;color:#334155}.recurring-row-delete{margin-left:auto}.muted{color:#6b7280;font-size:.9rem}.timer-card{min-height:402px;border-width:2px}.timer-card-planning{background:#fef3c7;border-color:var(--planning-accent)}.timer-card-focus{background:#e8efff;border-color:var(--type-focus-deep)}.timer-card-break{background:var(--timeline-break-bg);border-color:var(--timeline-break-border);color:var(--timeline-break-ink)}.timer-card-break .timer-card-label,.timer-card-break .timer-card-label strong{color:var(--timeline-break-ink)}.timer-card-break .muted{color:var(--timeline-break-ink);opacity:.9}.timer-card-fixed_event{background:#fdf4ef;border-color:var(--type-calendar-deep)}.timer-card-recurring_event{background:#eeebff;border-color:var(--type-recurring-deep)}.timer-card-recurring_focus{background:linear-gradient(160deg,#eef2ff,#e0e7ff);border-color:#6366f1}.timer-card-empty{background:#f1f5f9;border-color:#94a3b8}.timer-card-label{margin:0;color:#334155}.timer-card-time{margin:.4rem 0 .8rem;font-size:clamp(4rem,10vw,7rem);font-weight:900;letter-spacing:-.08em}.warning{color:#b45309}.conflict-banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem;margin-bottom:1rem;color:#7f1d1d;background:#fee2e2;border:1px solid #fecaca;border-radius:14px;font-weight:800}.done{text-decoration:line-through;color:#6b7280}.calendar-shell{display:grid;grid-template-columns:68px minmax(0,1fr);gap:.75rem;min-height:720px}.calendar-axis,.calendar-grid{position:relative}.calendar-grid{overflow:visible;background:#f8fafc;border:1px solid #cbd5e1;border-radius:18px}.calendar-hour{position:absolute;right:0;transform:translateY(-50%);color:#64748b;font-size:.82rem;font-weight:800}.calendar-line{position:absolute;left:0;right:0;border-top:1px solid #e2e8f0}.calendar-now-line{position:absolute;left:0;right:0;height:0;border-top:2px solid #ef4444;z-index:4;pointer-events:none;box-shadow:0 0 0 1px #ffffffb3}.calendar-block{position:absolute;left:.75rem;right:.75rem;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:.25rem;min-height:34px;padding:.35rem .65rem;overflow:hidden;border:1px solid transparent;border-radius:14px;box-shadow:0 10px 24px #0f172a1a;z-index:1}.calendar-block-focus{background:var(--timeline-focus-bg);border-color:var(--timeline-focus-border);color:var(--timeline-focus-ink);box-shadow:0 4px 14px #3b82f624}.calendar-block-session{padding:.35rem .65rem}.calendar-block-break{flex-direction:row;align-items:center;justify-content:space-between;background:var(--timeline-break-bg);border-color:var(--timeline-break-border);color:var(--timeline-break-ink);padding-block:.35rem;box-shadow:0 4px 14px #0d948829}.calendar-block-event,.calendar-block-recurring{background:var(--timeline-calendar-bg);border-color:var(--timeline-calendar-border);color:var(--timeline-calendar-ink);box-shadow:0 4px 14px #fb923c24}.calendar-block-recurring-focus{background:linear-gradient(135deg,#eef2ff,#e0e7ff);border-color:#818cf8;color:#1e1b4b;box-shadow:0 4px 14px #4f46e52e}.calendar-block-recurring-focus.calendar-block-is-recurring{outline:2px solid rgb(129 140 248 / 55%);outline-offset:0}.calendar-icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:.2rem;border:none;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:.88}.calendar-icon-btn:hover{opacity:1;background:#ffffff2e}.calendar-repeat-on{color:#4f46e5;opacity:1}.calendar-block.active{outline:3px solid #f59e0b;outline-offset:2px;z-index:5}.calendar-block.editing{min-height:110px;overflow:visible;z-index:20;justify-content:flex-start;padding-top:.4rem;padding-bottom:5.25rem}.calendar-block.completed{opacity:.72}.calendar-block.completed p,.calendar-block.completed strong,.calendar-block.completed .calendar-title-row span{text-decoration:line-through}.calendar-block-header,.calendar-actions,.calendar-edit-row,.calendar-title-row{display:flex;align-items:center;gap:.4rem}.calendar-block-header{justify-content:flex-start;min-width:0}.calendar-block-header strong{flex:0 0 auto;font-size:.82rem}.calendar-block-time-range{display:inline-flex;align-items:center;gap:.35rem}.calendar-time-apple{flex-shrink:0;color:currentColor;opacity:.9}.calendar-title-row{min-width:0}.calendar-title-row span{overflow:hidden;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.calendar-block-focus .calendar-title-row strong,.calendar-block-focus .calendar-title-row span{color:var(--timeline-focus-ink)}.calendar-block-break .calendar-title-row strong,.calendar-block-break .calendar-title-row span{color:var(--timeline-break-ink)}.calendar-block-event .calendar-title-row strong,.calendar-block-event .calendar-title-row span,.calendar-block-recurring .calendar-title-row strong,.calendar-block-recurring .calendar-title-row span{color:var(--timeline-calendar-ink)}.calendar-block-recurring-focus .calendar-title-row strong,.calendar-block-recurring-focus .calendar-title-row span{color:#1e1b4b}.calendar-actions{flex:0 0 auto;margin-left:auto}.calendar-actions button,.calendar-edit-row button{min-width:2rem;min-height:2rem;padding:.35rem}.calendar-edit-row input{flex:1}.calendar-edit-row{position:absolute;right:.5rem;bottom:.5rem;left:.5rem;z-index:25;align-items:stretch;flex-wrap:wrap;padding:.5rem;background:#fffffff5;border:1px solid #bfdbfe;border-radius:12px;box-shadow:0 14px 36px #0f172a33}.calendar-edit-row input[type=time]{flex:0 0 7rem}.calendar-edit-row button{flex:0 0 auto}.calendar-block-main{position:relative;min-width:0;flex:0 1 auto;display:flex;flex-direction:column;justify-content:center}.calendar-break-segment{display:flex;align-items:center;justify-content:space-between;gap:.35rem;min-width:0;padding:.35rem;color:var(--timeline-break-ink);background:var(--timeline-break-bg);border:1px solid var(--timeline-break-border);border-radius:10px}.calendar-break-segment span{font-size:.72rem;font-weight:900;color:var(--timeline-break-ink)}.calendar-break-segment .calendar-actions{display:inline-flex;flex:0 0 auto;margin-left:0}.calendar-break-segment button{min-width:1.7rem;min-height:1.7rem;padding:.25rem;background:#fff;color:var(--timeline-break-ink);border:1px solid var(--timeline-break-border)}.calendar-break-segment button:hover:not(:disabled){background:var(--timeline-break-bg);border-color:var(--timeline-break-ink)}.calendar-break-segment-inline{margin-left:0;flex:0 0 auto;justify-content:flex-start}.progress-track{width:100%;height:1.1rem;overflow:hidden;background:#e2e8f0;border-radius:999px}.progress-fill{height:100%;background:var(--type-focus);border-radius:inherit;transition:width .3s ease,background .2s ease}.timer-card-planning .progress-fill:not(.danger){background:var(--planning-accent)}.timer-card-focus .progress-fill:not(.danger){background:var(--type-focus)}.timer-card-break .progress-fill:not(.danger){background:var(--timeline-break-border)}.timer-card-fixed_event .progress-fill:not(.danger){background:var(--type-calendar-deep)}.timer-card-recurring_event .progress-fill:not(.danger){background:var(--type-recurring)}.timer-card-recurring_focus .progress-fill:not(.danger){background:var(--type-recurring)}.timer-card-empty .progress-fill:not(.danger){background:#64748b}.progress-fill.danger{background:#dc2626}.calendar-block-main.calendar-block-drag-zone{cursor:grab;flex:1 1 auto;min-height:0;-webkit-user-select:none;user-select:none;touch-action:none}.calendar-block-main.calendar-block-drag-zone:active{cursor:grabbing}.calendar-event-resize-handle{position:absolute;left:0;right:0;bottom:0;height:10px;border-radius:0 0 10px 10px;cursor:ns-resize;touch-action:none;z-index:2;background:transparent;border:1px solid transparent;border-top:none}.calendar-event-resize-handle:hover,.calendar-event-resize-handle:focus-visible{background:#fb923c40;border-color:var(--timeline-calendar-border);outline:none}.calendar-empty-slot-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:.35rem;padding:.35rem;min-height:0;box-sizing:border-box;pointer-events:none;background:#fffffff5;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 10px 28px #0f172a2e}.calendar-empty-slot-actions .calendar-slot-action-btn{pointer-events:auto}.calendar-slot-action-btn{flex:0 0 auto;white-space:nowrap;padding:.35rem .65rem;font-size:.82rem;font-weight:700;border-radius:10px;border:1px solid #cbd5e1;background:#fff;cursor:pointer;color:#0f172a}.calendar-slot-action-btn:hover{border-color:#94a3b8;background:#f8fafc}.calendar-slot-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:1rem;background:#0f172a6b}.calendar-slot-modal{width:min(100%,420px);padding:1.25rem;display:flex;flex-direction:column;gap:.85rem}.calendar-slot-modal h4{margin:0}.calendar-slot-modal-field{display:flex;flex-direction:column;gap:.35rem;font-size:.88rem;font-weight:700}.calendar-slot-modal-field input,.calendar-slot-modal-field select{font-weight:600}.calendar-slot-modal-times{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.calendar-slot-modal-times label{display:flex;flex-direction:column;gap:.35rem;font-size:.88rem;font-weight:700}.calendar-slot-modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.25rem}.calendar-slot-modal-cancel{border:1px solid #cbd5e1;background:#fff;padding:.45rem .85rem;border-radius:10px;font-weight:700;cursor:pointer}.calendar-slot-modal-cancel:hover{background:#f8fafc}@media (max-width: 900px){.editing-layout,.execution{grid-template-columns:1fr}.timeline-timer-sticky,.editing-timer-rail{position:static}.app-header{align-items:flex-start;flex-direction:column}.day-boundary-fields label,.day-boundary-fields select{width:100%}.add-card,.event-entry,.task-entry{grid-template-columns:1fr}}
