:root{color:#1d2433;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#eef2f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select,textarea{font-family:inherit}#root{min-height:100vh}.app-shell{color:#1d2433;min-height:100vh;padding:32px}.app-shell.desktop-mode{min-height:100vh;padding:46px 14px 18px}.desktop-titlebar{-webkit-app-region:drag;z-index:70;color:#344054;background:#fffffff0;border-bottom:1px solid #d8dee8;justify-content:space-between;align-items:center;height:34px;padding:0 8px 0 12px;font-size:12px;font-weight:700;display:flex;position:fixed;inset:0 0 auto}.desktop-window-actions{-webkit-app-region:no-drag;align-items:center;gap:4px;display:flex}.desktop-window-actions button{color:#344054;min-width:28px;height:24px;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;font-size:11px}.desktop-window-actions button:hover{background:#edf2f7}.desktop-mode .topbar{gap:12px;margin-bottom:14px}.desktop-mode h1{font-size:26px}.desktop-mode .task-form{gap:12px}.desktop-mode .setup-panel,.desktop-mode .ai-panel,.desktop-mode .band,.desktop-mode .advanced{padding:16px}.task-window-shell{background:#fff7d6}.task-note{background:#fffdf0;border:1px solid #ecd98d;border-radius:8px;gap:14px;width:min(100%,520px);margin:0 auto;padding:16px;display:grid;box-shadow:0 14px 30px #785c141a}.empty-task-note{color:#6b5b24;text-align:left}.empty-task-note p{margin:0}.task-note-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.task-note textarea{min-height:150px}.ghost-link-button{color:#344054;background:#fff;border:1px solid #c8d0dc;border-radius:6px;justify-content:center;align-items:center;min-height:40px;padding:0 14px;font-size:14px;font-weight:700;text-decoration:none;display:inline-flex}.loading-shell,.setup-shell{place-items:center;display:grid}.setup-panel,.task-form,.history-view,.dashboard-view{width:min(960px,100%);margin:0 auto}.setup-panel{background:#fff;border:1px solid #d8dee8;border-radius:8px;padding:28px;box-shadow:0 18px 40px #1e293b14}.app-heading,.topbar{text-align:left}.topbar{justify-content:space-between;align-items:end;gap:18px;width:min(960px,100%);margin:0 auto 24px;display:flex}.eyebrow{color:#667085;letter-spacing:0;text-transform:uppercase;margin:0 0 6px;font-size:13px;font-weight:700}h1{color:#111827;letter-spacing:0;margin:0;font-size:34px;line-height:1.15}.tabs{background:#fff;border:1px solid #d8dee8;border-radius:8px;gap:4px;padding:4px;display:inline-flex}.tabs button,.primary-button,.ghost-button{min-height:40px;font:inherit;cursor:pointer;border:1px solid #0000;border-radius:6px;padding:0 14px;font-size:14px}.tabs button{color:#4b5563;background:0 0}.tabs button.active{color:#0f172a;background:#eaf2ff}.setup-form,.task-form{gap:18px;display:grid}.band,.ai-panel,.advanced,.history-view,.dashboard-view{background:#fff;border:1px solid #d8dee8;border-radius:8px}.ai-panel{gap:12px;padding:18px 22px;display:grid}.band{padding:22px}.advanced{text-align:left;padding:22px}.advanced h2{color:#263244;letter-spacing:0;margin:0 0 16px;font-size:18px;line-height:1.3}label,.context-field{text-align:left;gap:7px;display:grid}.field-label,label>span,legend{color:#465161;font-size:13px;font-weight:700}.field-label{align-items:center;gap:6px;width:fit-content;display:inline-flex;position:relative}.help-anchor{color:#526173;cursor:help;background:#f8fafc;border:1px solid #b8c2d1;border-radius:50%;place-items:center;width:17px;height:17px;font-size:11px;line-height:1;display:inline-grid;position:relative}.help-anchor:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.help-bubble{z-index:20;color:#fff;opacity:0;pointer-events:none;background:#111827;border-radius:6px;width:max-content;max-width:min(300px,100vw - 48px);padding:9px 10px;font-size:12px;font-weight:500;line-height:1.45;transition:opacity .12s,transform .12s;position:absolute;bottom:calc(100% + 9px);left:50%;transform:translate(-50%,4px);box-shadow:0 10px 24px #0f172a38}.help-bubble:after{content:"";background:#111827;width:8px;height:8px;position:absolute;top:100%;left:50%;transform:translate(-50%,-4px)rotate(45deg)}.help-anchor:hover .help-bubble,.help-anchor:focus .help-bubble{opacity:1;transform:translate(-50%)}input,select,textarea{box-sizing:border-box;color:#172033;width:100%;font:inherit;letter-spacing:0;background:#fff;border:1px solid #c8d0dc;border-radius:6px;font-size:15px}input,select{height:42px;padding:0 12px}textarea{resize:vertical;min-height:120px;padding:10px 12px}input:focus,select:focus,textarea:focus,button:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.title-field input{height:54px;font-size:20px;font-weight:700}.edit-banner{color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px 12px;display:flex}.edit-banner button,.history-actions button{color:#344054;font:inherit;cursor:pointer;background:#fff;border:1px solid #c8d0dc;border-radius:6px;min-height:34px;padding:0 10px;font-size:13px;font-weight:700}.field-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.core-grid{grid-template-columns:1.1fr .8fr 1fr 1fr 120px;margin-top:16px}.check-row{align-self:end;align-items:center;gap:9px;min-height:42px;display:flex}.check-row .field-label{line-height:1}.check-row input,.chip input{flex:none;width:18px;height:18px}.switches{align-items:end;gap:14px;display:flex}.context-field{border:0;margin:18px 0;padding:0}.chip-list{flex-wrap:wrap;gap:8px;display:flex}.chip{background:#f8fafc;border:1px solid #d8dee8;border-radius:6px;align-items:center;gap:7px;width:auto;padding:8px 10px;display:inline-flex}.chip span{color:#263244}.memo-field{margin-top:8px}.form-actions{align-items:center;gap:10px;display:flex}.primary-button{color:#fff;background:#2563eb}.primary-button:hover:not(:disabled){background:#1d4ed8}.primary-button:disabled{cursor:not-allowed;opacity:.65}.ghost-button{color:#344054;background:#fff;border-color:#c8d0dc}.error-text,.success-text,.empty-state{text-align:left;margin:0;font-size:14px}.error-text{color:#b42318}.success-text{color:#047857}.history-view{padding:10px}.dashboard-view{padding:18px}.dashboard-toolbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.dashboard-toolbar strong,.dashboard-toolbar span{text-align:left;display:block}.dashboard-toolbar span{color:#667085;margin-top:3px;font-size:13px}.dashboard-controls{align-items:center;gap:8px;display:flex}.dashboard-controls input{width:160px}.dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr);gap:14px;display:grid}.timeline-panel,.floating-panel{background:#f8fafc;border:1px solid #d8dee8;border-radius:8px;min-width:0;padding:14px}.timeline-panel{grid-row:span 2}.timeline-panel h2,.floating-panel h2{color:#263244;letter-spacing:0;margin:0 0 12px;font-size:16px}.day-schedule{background:#fff;border:1px solid #d6dde8;border-radius:8px;overflow-x:auto}.schedule-hours,.schedule-grid-lines{min-width:960px}.schedule-hours{z-index:2;background:#f8fafc;border-bottom:1px solid #d8dee8;grid-template-columns:repeat(25,minmax(0,1fr));display:grid;position:sticky;top:0}.schedule-hours span{color:#667085;justify-content:center;align-items:center;min-height:34px;font-size:12px;font-weight:700;display:flex}.schedule-grid-lines{background:repeating-linear-gradient(90deg,#2563eb14 0 1px,#0000 1px 4.16667%),repeating-linear-gradient(90deg,#0f172a08 0 4.16667%,#0000 4.16667% 8.33333%);position:relative}.schedule-block{box-sizing:border-box;color:#172033;text-align:left;background:#eff6ff;border:1px solid #bfdbfe;border-radius:7px;gap:4px;min-width:70px;min-height:40px;padding:7px 9px;display:grid;position:absolute;overflow:hidden;box-shadow:0 8px 18px #1e293b1a}.schedule-block.priority-urgent{background:#fff1f2;border-color:#fecaca}.schedule-block.priority-high{background:#fff7ed;border-color:#fed7aa}.schedule-block.priority-low{background:#f9fafb;border-color:#d1d5db}.schedule-block-title{align-items:center;gap:6px;min-width:0;display:flex}.schedule-block-title time{color:#1d4ed8;flex:none;font-size:12px;font-weight:800}.schedule-block-title strong{color:#111827;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;overflow:hidden}.schedule-block span{color:#667085;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.task-summary-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.task-summary-list li{text-align:left;background:#fff;border-radius:6px;gap:4px;padding:10px;display:grid}.task-summary-list strong,.task-summary-list span{display:block}.task-summary-list strong{color:#111827}.task-summary-list span{color:#667085;margin-top:3px;font-size:13px}.history-toolbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;padding:10px 12px;display:flex}.history-toolbar strong,.history-toolbar span{text-align:left;display:block}.history-toolbar strong{color:#111827}.history-toolbar span{color:#667085;margin-top:3px;font-size:13px}.history-message{padding:0 12px 10px}.history-filter-tabs{flex-wrap:wrap;gap:4px;padding:0 12px 12px;display:flex}.history-filter-tab{color:#526173;font:inherit;cursor:pointer;white-space:nowrap;background:#fff;border:1.5px solid #e2e8f0;border-radius:99px;align-items:center;gap:6px;padding:6px 14px;font-size:13px;font-weight:600;transition:all .15s;display:inline-flex}.history-filter-tab:hover:not(.active){background:#f1f5f9;border-color:#cbd5e1}.history-filter-tab.active{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 2px 8px #2563eb4d}.history-filter-tab .tab-count{background:#00000014;border-radius:99px;justify-content:center;align-items:center;min-width:20px;height:18px;padding:0 5px;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.history-filter-tab.active .tab-count{background:#ffffff40}.history-category-badge{color:#475569;vertical-align:middle;background:#f1f5f9;border-radius:99px;margin-right:6px;padding:1px 7px;font-size:11px;font-weight:700;display:inline-block}.history-options-bar{justify-content:flex-start;align-items:center;padding:0 12px 12px;display:flex}.hide-completed-toggle{cursor:pointer;-webkit-user-select:none;user-select:none;color:#475569;align-items:center;gap:8px;font-size:13px;font-weight:600;transition:color .15s;display:inline-flex}.hide-completed-toggle:hover{color:#1e293b}.hide-completed-toggle input[type=checkbox]{opacity:0;width:0;height:0;position:absolute}.hide-completed-toggle .custom-checkbox{background:#fff;border:1.5px solid #cbd5e1;border-radius:4px;width:18px;height:18px;transition:all .15s;position:relative}.hide-completed-toggle:hover .custom-checkbox{border-color:#94a3b8}.hide-completed-toggle input[type=checkbox]:checked~.custom-checkbox{background:#2563eb;border-color:#2563eb;box-shadow:0 2px 6px #2563eb40}.hide-completed-toggle .custom-checkbox:after{content:"";border:2px solid #fff;border-width:0 2px 2px 0;width:5px;height:9px;display:none;position:absolute;top:1px;left:5px;transform:rotate(45deg)}.hide-completed-toggle input[type=checkbox]:checked~.custom-checkbox:after{display:block}.hide-completed-toggle .toggle-text{font-size:13px;line-height:1}.history-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.history-list li{text-align:left;background:#f8fafc;border-radius:6px;justify-content:space-between;align-items:center;gap:16px;min-height:58px;padding:12px;display:flex}.history-list strong,.history-list span{display:block}.history-list strong{color:#111827}.history-list span{color:#667085;margin-top:3px;font-size:13px}.quick-status{background:#fff;border:1px solid #d8dee8;border-radius:7px;gap:4px;margin-top:9px;padding:3px;display:inline-flex}.quick-status button{color:#526173;min-height:28px;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;padding:0 9px;font-size:12px;font-weight:700}.quick-status button:hover:not(:disabled){background:#f1f5f9}.quick-status button.active{color:#fff;background:#2563eb}.quick-status button:disabled{cursor:not-allowed;opacity:.65}.history-list a{color:#1d4ed8;font-weight:700;text-decoration:none}.history-actions{align-items:center;gap:10px;display:flex}.empty-state{color:#667085;padding:18px}.toast{z-index:50;color:#fff;text-align:center;border-radius:8px;min-width:min(420px,100vw - 40px);max-width:calc(100vw - 40px);padding:13px 16px;font-size:14px;line-height:1.45;animation:.13s ease-out toast-in;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 18px 38px #0f172a3d}.toast.success{background:#047857}.toast.error{background:#b42318}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}@media (width<=820px){.app-shell{padding:20px}.app-shell.desktop-mode{padding:46px 14px 18px}.topbar{flex-direction:column;align-items:stretch}.tabs{box-sizing:border-box;width:100%}.tabs button{flex:1 1 0}.field-grid,.core-grid,.dashboard-grid,.task-note-row{grid-template-columns:1fr}.switches,.form-actions,.dashboard-toolbar,.dashboard-controls{flex-direction:column;align-items:stretch}.dashboard-controls input{width:100%}.setup-panel,.ai-panel,.band,.advanced{padding-inline:16px}.history-list li,.history-toolbar,.history-actions{flex-direction:column;align-items:stretch}}.task-cards-list{flex-direction:column;gap:20px;margin-top:10px;display:flex}.task-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;transition:transform .2s,box-shadow .2s,border-color .2s;overflow:hidden;box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -1px #00000008}.task-card:hover{border-color:#cbd5e1;transform:translateY(-2px);box-shadow:0 10px 15px -3px #00000014,0 4px 6px -2px #0000000a}.card-header{background:#f8fafc;border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:12px 20px;display:flex}.card-index-badge{color:#3b82f6;letter-spacing:.5px;background:#eff6ff;border-radius:9999px;padding:4px 10px;font-size:12px;font-weight:800}.card-header-actions{gap:8px;display:flex}.compact-button{border-radius:6px!important;min-height:28px!important;padding:0 10px!important;font-size:12px!important;font-weight:600!important}.delete-button{color:#ef4444!important;border-color:#fca5a5!important}.delete-button:hover{background:#fef2f2!important;border-color:#ef4444!important}.card-body{padding:20px}.advanced-fields-section{border-top:1px dashed #e2e8f0;margin-top:20px;padding-top:20px;animation:.25s ease-out fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.list-actions-bar{justify-content:center;margin:10px 0;display:flex}.add-card-button{justify-content:center;align-items:center;gap:8px;width:100%;max-width:320px;height:48px;display:flex;color:#64748b!important;background:#f8fafc!important;border:2px dashed #cbd5e1!important;border-radius:10px!important;font-weight:700!important;transition:all .2s!important}.add-card-button:hover{transform:scale(1.01);color:#3b82f6!important;background:#eff6ff!important;border-color:#3b82f6!important}.main-form-actions{border-top:1px solid #e2e8f0;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px;padding-top:20px;display:flex}.notion-warning-text{color:#ea580c;background:#fff7ed;border:1px solid #ffedd5;border-radius:6px;padding:6px 12px;font-size:13px;font-weight:600}.topbar-actions{align-items:center;gap:16px;display:flex}.notion-connection-badge{border:1px solid #0000;border-radius:9999px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:700;display:inline-flex}.notion-connection-badge.connected{color:#16a34a;background:#f0fdf4;border-color:#dcfce7}.notion-connection-badge.disconnected{color:#dc2626;background:#fef2f2;border-color:#fee2e2}.badge-dot{border-radius:50%;width:8px;height:8px;display:inline-block}.notion-connection-badge.connected .badge-dot{background-color:#22c55e;box-shadow:0 0 8px #22c55e99}.notion-connection-badge.disconnected .badge-dot{background-color:#ef4444;box-shadow:0 0 8px #ef444499}.disconnect-btn{color:#dc2626!important;border-color:#fee2e2!important}.disconnect-btn:hover{background:#fef2f2!important;border-color:#dc2626!important}.setup-panel-dropdown{z-index:60;-webkit-backdrop-filter:blur(10px);background:#fffffff2;border:1px solid #e2e8f0cc;border-radius:14px;width:400px;padding:24px;animation:.25s cubic-bezier(.16,1,.3,1) forwards slideDown;position:absolute;top:100px;right:32px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.dropdown-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;margin-bottom:18px;padding-bottom:10px;display:flex}.dropdown-header h3{color:#1e293b;margin:0;font-size:16px;font-weight:800}.close-dropdown-btn{color:#64748b;cursor:pointer;background:0 0;border:none;padding:4px;font-size:18px}.close-dropdown-btn:hover{color:#0f172a}.dropdown-actions{border-top:1px solid #f1f5f9;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:14px;display:flex}.empty-state-notice{text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;margin-top:20px;padding:60px 20px;display:flex;box-shadow:0 4px 6px -1px #0000000d}.notice-icon{margin-bottom:16px;font-size:48px}.empty-state-notice h2{color:#1e293b;margin:0 0 8px;font-size:20px;font-weight:800}.empty-state-notice p{color:#64748b;max-width:420px;margin:0;font-size:14px;line-height:1.6}@media (width<=820px){.topbar-actions{flex-direction:column;align-items:stretch;width:100%}.setup-panel-dropdown{box-sizing:border-box;width:100%;box-shadow:none;margin-top:10px;position:static}}
