:root{
  --accent:#f7b23d;
  --accent-strong:#ee9b18;
  --ink:#262626;
  --muted:#777;
  --line:#e9e9e9;
  --soft:#f7f7f7;
  --page:#f5f5f4;
  --danger:#b42318;
  --magenta:#ff00e5;
  --yellow:#fff500;
  --purple:#a451a6;
  --coral:#ef806c;
  --green:#7aab2f;
  --hour-height:72px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--page)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.app-shell{min-height:100vh;max-width:980px;margin:0 auto;background:#fff;position:relative;box-shadow:0 0 24px rgba(0,0,0,.06)}
.app-header{height:76px;padding:env(safe-area-inset-top) 18px 0;display:flex;align-items:center;gap:12px;background:linear-gradient(90deg,var(--accent-strong),#ffc257);position:sticky;top:0;z-index:40}
.avatar{width:44px;height:44px;border-radius:50%;border:0;background:#292929;color:#fff;font-weight:800;font-size:17px}
.header-copy{min-width:0;flex:1}.header-title{font-size:22px;line-height:1.05;font-weight:650}.header-subtitle{font-size:11px;color:rgba(35,35,35,.68);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-action{width:42px;height:42px;border:0;background:transparent;font-size:25px;color:#333}.screen-host{min-height:calc(100vh - 144px);padding-bottom:88px}
.bottom-nav{position:fixed;z-index:42;left:50%;transform:translateX(-50%);bottom:0;width:min(980px,100%);height:70px;padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.nav-item{position:relative;border:0;background:transparent;color:#8b8b8b;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.nav-item span{font-size:23px}.nav-item small{font-size:11px}.nav-item.active{color:#d98a0f;font-weight:700}.badge{position:absolute;top:7px;left:calc(50% + 10px);min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#333;color:#fff;font-size:10px;line-height:18px;text-align:center}
.fab{position:fixed;z-index:45;right:max(20px,calc((100vw - 960px)/2));bottom:82px;width:62px;height:62px;border-radius:50%;border:0;background:var(--accent);font-size:38px;font-weight:300;line-height:1;color:#fff;box-shadow:0 7px 20px rgba(0,0,0,.22)}
.screen{padding:18px 20px 24px}.home-screen{padding-top:16px}.section-heading{font-size:24px;font-weight:500;margin:20px 0 10px}.muted{color:var(--muted)}
.calendar-card{background:#fff}.calendar-head{display:grid;grid-template-columns:46px 1fr 46px;align-items:center;margin:0 0 16px}.calendar-head button{border:0;background:transparent;color:#8a8a8a;font-size:40px;font-weight:200}.month-title{text-align:center;font-size:28px;font-weight:400;color:#5a5a5a}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.weekdays{font-weight:700;font-size:16px;text-align:center;margin-bottom:7px}.weekdays span:nth-child(6){color:var(--purple)}.weekdays span:nth-child(7){color:var(--coral)}
.calendar-grid{border-left:1px solid #d4d4d4;margin-left:4px}.cal-day{position:relative;min-height:54px;border:0;background:transparent;color:#555;font-size:19px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin:1px}.cal-day.other{color:#bbb}.cal-day.weekend-sat{color:var(--purple)}.cal-day.weekend-sun{color:var(--coral)}.cal-day.selected{outline:3px solid var(--accent);outline-offset:-7px}.cal-day.today{font-weight:800}.cal-day .day-dot{position:absolute;width:5px;height:5px;border-radius:50%;background:#666;bottom:5px;left:50%;transform:translateX(-50%)}.cal-day .day-dot.multi{box-shadow:-7px 0 0 #999,7px 0 0 #999}
.home-row{border:0;border-top:1px solid #f1f1f1;background:#fff;width:100%;display:flex;align-items:center;gap:14px;padding:15px 4px;text-align:left;font-size:21px;color:#555}.home-row .home-icon{width:34px;text-align:center;color:#888}.home-row .chev{margin-left:auto;color:#999}.count-pill{margin-left:auto;min-width:28px;height:28px;padding:0 8px;border-radius:16px;background:#e9e9e9;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.projects-title{display:flex;align-items:center;justify-content:space-between;margin:12px 0 2px;font-size:24px;font-weight:500;color:#555}.project-row{display:flex;align-items:center;gap:12px;border:0;background:#fff;width:100%;padding:13px 2px;text-align:left;font-size:20px;color:#565656}.folder-icon{color:#e9a829;font-size:25px}.project-row small{margin-left:auto;color:#999}.project-empty{padding:18px 0;color:#999;font-size:14px}
.screen-topbar{display:flex;align-items:center;gap:10px;margin:0 0 16px}.screen-topbar h1{font-size:26px;font-weight:500;margin:0;flex:1}.screen-topbar button{border:0;background:transparent;font-size:28px;color:#777}.date-strip{display:flex;align-items:center;justify-content:space-between;background:#f8f8f8;border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin-bottom:12px}.date-strip strong{font-size:16px}.date-strip button{border:0;background:transparent;color:#777;font-size:25px}
.quick-add{display:flex;gap:8px;margin-bottom:14px}.quick-add input{flex:1;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff}.quick-add button{border:0;border-radius:12px;background:var(--accent);padding:0 16px;font-size:24px;color:#fff}
.task-list{display:flex;flex-direction:column;gap:2px}.task-card{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:74px;padding:12px 12px;border:0;background:#fff;border-bottom:1px solid #ededed;text-align:left}.task-card.color-high{background:linear-gradient(90deg,rgba(255,0,229,.78),rgba(255,0,229,.58))}.task-card.color-normal{background:linear-gradient(90deg,rgba(255,245,0,.9),rgba(255,245,0,.68))}.task-card.done{opacity:.48}.task-card.done .task-name{text-decoration:line-through}.task-check{width:27px;height:27px;border:2px solid #a0a0a0;border-radius:5px;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:17px}.task-name{font-size:19px;line-height:1.25;word-break:break-word}.task-sub{font-size:12px;color:#555;margin-top:6px;display:flex;gap:8px;flex-wrap:wrap}.task-open{font-size:28px;color:#777}.empty-state{padding:56px 24px;text-align:center;color:#999}.empty-state strong{display:block;color:#666;font-size:18px;margin-bottom:5px}
.task-editor-screen{min-height:calc(100vh - 76px);background:#f5f5f5}.editor-topbar{position:sticky;top:76px;z-index:10;height:54px;background:#fff;display:flex;align-items:center;padding:0 10px;border-bottom:1px solid var(--line)}.editor-top-title{font-weight:700;flex:1;text-align:center}.icon-btn,.text-btn{border:0;background:transparent}.icon-btn{font-size:30px;color:#858585}.text-btn{font-size:14px}.danger-text{color:var(--danger)}.editor-content{background:#fff;padding-bottom:90px}.editor-title{width:100%;border:0;padding:24px 28px 14px;font-size:28px;outline:none}.editor-notes{width:100%;border:0;border-bottom:1px solid var(--line);padding:14px 28px 22px;resize:vertical;outline:none;font-size:18px;min-height:125px}.editor-notes::placeholder{color:#aaa}.editor-list{background:#f5f5f5;padding:12px 0}.editor-row{display:grid;grid-template-columns:38px 124px minmax(0,1fr);align-items:center;gap:8px;min-height:54px;padding:6px 22px;background:#f5f5f5;border-bottom:1px solid #ececec}.row-icon{font-size:24px;color:#8e8e8e;text-align:center}.editor-row input,.editor-row select{width:100%;border:0;background:transparent;padding:8px 0;outline:none;font-size:16px}.save-task{margin:18px 22px;width:calc(100% - 44px)!important}
.primary,.secondary{border-radius:12px;padding:12px 16px;font-weight:700}.primary{border:0;background:var(--accent-strong);color:#fff}.secondary{border:1px solid var(--line);background:#fff;color:#555}.wide{width:100%}
.plan-screen{padding:14px 0 24px}.plan-toolbar{padding:0 16px 12px}.plan-toolbar .date-strip{margin:0}.unscheduled{padding:0 16px 10px}.unscheduled-title{font-size:13px;color:#888;margin:8px 0}.unscheduled-chips{display:flex;gap:8px;overflow:auto;padding-bottom:4px}.unscheduled-chip{flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;font-size:13px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-scroll{height:calc(100vh - 245px);min-height:440px;overflow:auto;border-top:1px solid var(--line);background:#fff}.timeline{position:relative;height:calc(var(--hour-height) * 18);margin-left:58px}.hour-row{position:absolute;left:0;right:0;height:var(--hour-height);border-top:1px solid #e8e8e8}.hour-label{position:absolute;left:-52px;top:-9px;width:44px;text-align:right;font-size:12px;color:#999}.half-line{position:absolute;left:0;right:0;top:50%;border-top:1px dashed #f0f0f0}.plan-task{position:absolute;left:6px;right:8px;min-height:34px;border-radius:10px;background:#ffe16b;border-left:5px solid #f3af20;padding:7px 26px 8px 10px;box-shadow:0 2px 8px rgba(0,0,0,.1);touch-action:none;user-select:none;overflow:hidden}.plan-task.high{background:#f9a7ed;border-left-color:#d81bc2}.plan-task.low{background:#dfeee7;border-left-color:#7aa28d}.plan-task.dragging{opacity:.76;box-shadow:0 8px 22px rgba(0,0,0,.24);z-index:20}.plan-task-title{font-weight:700;font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.plan-task-time{font-size:11px;color:#5d5d5d;margin-top:3px}.resize-handle{position:absolute;left:0;right:0;bottom:0;height:14px;cursor:ns-resize}.resize-handle::after{content:"";position:absolute;width:34px;height:3px;border-radius:3px;background:rgba(0,0,0,.28);left:50%;bottom:4px;transform:translateX(-50%)}.now-line{position:absolute;left:0;right:0;border-top:2px solid #e34b4b;z-index:15;pointer-events:none}.now-line::before{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#e34b4b;left:-4px;top:-5px}
.backdrop{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.36);display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(680px,100%);background:#fff;border-radius:20px 20px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(0,0,0,.2)}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet-head h2{margin:0 0 12px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#666;margin:14px 0}.field input{border:1px solid var(--line);border-radius:10px;padding:12px}.sheet-actions{margin-top:12px}
@media(min-width:760px){
  .app-header{padding-left:26px;padding-right:26px}.screen{padding-left:36px;padding-right:36px}.home-screen{max-width:720px;margin:0 auto}.today-screen{max-width:760px;margin:0 auto}.plan-toolbar,.unscheduled{padding-left:36px;padding-right:36px}.timeline-scroll{margin:0 36px;border:1px solid var(--line);border-radius:14px;height:calc(100vh - 260px)}.editor-content{max-width:720px;margin:0 auto}.task-editor-screen{background:#f6f6f6}.fab{right:max(28px,calc((100vw - 920px)/2))}
}
