@charset "UTF-8";
:root{font-family:Inter,"SF Pro Display","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,-apple-system,BlinkMacSystemFont,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
:root,body[data-theme=light]{--canvas:#f7f7f6;--panel:#fff;--panel-alt:#faf9f8;--ink:#242633;--heading:#252533;--muted:#8b8c9b;--subtle:#afb1bd;--stroke:#e9e8ee;--stroke-dark:#d9d9e5;--soft:#f4f3f7;--accent:#685beb;--accent-dark:#5549d7;--accent-soft:#eeeaff;--hover:#f8f7ff;--shadow:0 13px 44px #3d335912;--shadow-strong:0 24px 90px #29213d3d;--sunny:#f6efdc;--sunny-ink:#6d5a31;--study:#3da983;--work:#7469eb;--personal:#ed927b;--other:#d4a348;--contrast-on-accent:#fff;--skeleton:#eae9ef;--danger:#d45050}
body[data-theme=dark]{--canvas:#14141d;--panel:#1e1e2a;--panel-alt:#242430;--ink:#f2f0fa;--heading:#f8f6fb;--muted:#afadbd;--subtle:#888899;--stroke:#393745;--stroke-dark:#504e61;--soft:#2c2a39;--accent:#a49afd;--accent-dark:#b4acff;--accent-soft:#34304d;--hover:#2c2940;--shadow:0 12px 50px #0004;--shadow-strong:0 26px 100px #0008;--sunny:#332c2b;--sunny-ink:#f0d9b9;--study:#62cda7;--work:#afa7ff;--personal:#f4a38d;--other:#edc579;--contrast-on-accent:#171322;--skeleton:#353541;--danger:#ff8787}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);min-height:100svh;transition:background-color .2s,color .2s}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none;-webkit-tap-highlight-color:transparent}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;flex:none}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.155em;color:var(--muted)}.shell{display:flex;min-height:100svh;isolation:isolate}
.sidebar{width:260px;min-width:260px;display:flex;flex-direction:column;min-height:100svh;position:sticky;top:0;align-self:flex-start;height:100svh;padding:31px 23px 22px;background:var(--panel);border-right:1px solid var(--stroke);z-index:30}.sidebar-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:37px;padding-left:7px}.wordmark{display:inline-flex;align-items:center;gap:13px;font-size:30px;letter-spacing:-.075em;font-weight:900;color:var(--heading);line-height:1}.brand-dot{color:var(--accent)}.brand-icon{width:35px;height:35px;display:grid;grid-template-columns:repeat(2,1fr);gap:3px;transform:rotate(-15deg);padding:4px}.brand-icon i{border-radius:6px 10px 6px 10px;background:var(--accent)}.brand-icon i:nth-child(2){opacity:.64;transform:rotate(15deg)}.brand-icon i:nth-child(3){opacity:.37;transform:rotate(-8deg)}.brand-icon i:nth-child(4){opacity:.83}.sidebar-close{display:none!important}.sidebar-body{flex:1;overflow-y:auto;scrollbar-width:thin}.sidebar-label{margin:0 0 16px;color:var(--subtle);font-size:11px;font-weight:800;letter-spacing:.085em}.brand-label{font-size:9px;letter-spacing:.07em;margin:0 0 13px 8px}.create-button{width:100%;border-radius:14px;background:var(--accent);color:var(--contrast-on-accent);height:53px;padding:0 13px 0 16px;display:flex;align-items:center;gap:12px;font-size:14px;font-weight:800;box-shadow:0 9px 19px #7166ea28;transition:background .15s,transform .15s}.create-button:hover{background:var(--accent-dark);transform:translateY(-1px)}.create-icon{display:grid;place-items:center}.shortcut{margin-left:auto;border:1px solid currentColor;border-radius:5px;opacity:.55;padding:3px 6px;font-size:10px;font-weight:700;line-height:1.1;white-space:nowrap}.quick-button{display:flex;align-items:center;gap:9px;padding:16px 5px 19px;width:100%;color:var(--muted);font-size:12px;text-align:left;transition:color .15s}.quick-button:hover{color:var(--accent)}.quick-button .icon{width:17px;height:17px;color:var(--accent)}.quick-button .arrow-small{margin-left:auto;color:var(--subtle);width:15px}
.mini-section{margin:15px 0 18px}.mini-toolbar,.mini-nav{display:flex;align-items:center;justify-content:space-between}.mini-toolbar{margin-bottom:17px;padding:0 2px}.mini-toolbar strong{font-size:13px;letter-spacing:-.03em}.mini-nav{gap:0}.mini-nav-btn{width:28px;height:28px;display:grid;place-items:center;border-radius:7px}.mini-nav-btn:hover{background:var(--soft)}.mini-nav-btn .icon{width:16px;height:16px}.mini-grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:5px;text-align:center}.mini-weekday{height:25px;color:var(--subtle);font-size:10px;display:grid;place-items:center}.mini-date{aspect-ratio:1;min-height:26px;width:100%;border-radius:10px;font-size:11px;font-weight:600;display:grid;place-items:center;position:relative}.mini-date:hover{background:var(--soft)}.mini-date.other-month{color:var(--subtle);opacity:.55}.mini-date.is-today{background:var(--accent);color:var(--contrast-on-accent)}.mini-date.is-selected:not(.is-today){background:var(--accent-soft);color:var(--accent)}.mini-date.has-event:after{content:"";position:absolute;bottom:2px;width:3px;height:3px;border-radius:50%;background:var(--accent)}.mini-date.is-today:after{background:white}.sidebar-divider{border-top:1px solid var(--stroke);margin:21px 0 28px}.sidebar-divider.lower{margin:27px 0 13px}.section-label-row{display:flex;align-items:baseline;justify-content:space-between}.section-mini{font-size:8px;letter-spacing:.08em;color:var(--subtle);font-weight:700}.calendar-filters{display:flex;flex-direction:column;gap:2px}.filter-item{padding:9px 8px;display:flex;align-items:center;gap:11px;border-radius:9px;cursor:pointer;position:relative;font-size:12px;font-weight:600;min-height:38px}.filter-item:hover{background:var(--soft)}.filter-item input{position:absolute;opacity:0;width:100%;height:100%;inset:0;cursor:pointer;z-index:1}.filter-item:focus-within{outline:2px solid var(--accent);outline-offset:1px}.filter-indicator{width:10px;height:10px;border-radius:4px;flex:none}.color-study{background:var(--study)}.color-work{background:var(--work)}.color-personal{background:var(--personal)}.color-other{background:var(--other)}.filter-check{margin-left:auto;border:1px solid var(--stroke-dark);height:16px;width:16px;border-radius:5px;color:var(--accent);display:grid;place-items:center;font-size:12px;font-weight:800}.filter-item input:not(:checked)~.filter-check{color:transparent}.filter-item input:not(:checked)~.filter-indicator{opacity:.36}.filter-item input:not(:checked)~span:nth-of-type(2){opacity:.55}.sidebar-link{width:100%;min-height:42px;display:flex;align-items:center;gap:13px;padding:8px 9px;border-radius:10px;color:var(--muted);font-weight:650;font-size:12px;text-align:left}.sidebar-link:hover{background:var(--soft);color:var(--ink)}.sidebar-link .icon{width:18px;height:18px}.sidebar-link .shortcut{opacity:.52;font-weight:500;font-size:9px}.sidebar-bottom{background:var(--soft);padding:14px 13px;display:flex;gap:10px;align-items:flex-start;border-radius:13px;margin-top:15px}.local-icon{font-size:20px;color:var(--study);line-height:1}.sidebar-bottom strong,.sidebar-bottom small{display:block}.sidebar-bottom strong{font-size:10px;line-height:1.5}.sidebar-bottom small{font-size:9px;line-height:1.8;color:var(--muted)}.sidebar-backdrop{display:none}
.workspace{flex:1;min-width:0}.app-topbar{height:77px;padding:0 37px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke);background:var(--panel);position:relative;z-index:9}.top-left,.top-actions{display:flex;align-items:center;gap:17px}.top-left{font-size:10px;font-weight:800;letter-spacing:.11em}.top-label{color:var(--subtle)}.top-separator{color:var(--stroke-dark)}.top-crumb{color:var(--accent)}.top-actions{gap:13px}.current-time{font-size:11px;color:var(--muted);font-weight:650;margin-right:12px;white-space:nowrap}.top-search{border:1px solid var(--stroke);border-radius:11px;padding:0 10px 0 14px;height:37px;display:flex;gap:12px;align-items:center;min-width:190px;color:var(--muted);font-size:11px;text-align:left;background:var(--panel-alt)}.top-search .icon{height:16px;width:16px}.top-search kbd{margin-left:auto;border:1px solid var(--stroke-dark);background:var(--panel);border-radius:5px;padding:4px;font-size:10px;color:var(--subtle);font-family:inherit}.icon-button{display:grid;place-items:center;height:40px;width:40px;border-radius:11px;border:1px solid transparent;transition:background .15s;color:var(--ink)}.icon-button:hover{background:var(--soft)}.top-theme{background:var(--soft)}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(130deg,#bbb4ff,#7765e8);color:#fff;font-weight:900;font-size:16px;margin-left:3px}.mobile-menu{display:none}
.main-layout{max-width:1780px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:31px;padding:33px 35px 54px}.calendar-column{min-width:0}.greeting{min-height:134px;display:flex;align-items:center;justify-content:space-between;padding:3px 5px 19px}.greeting-label{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:9px;letter-spacing:.115em;font-weight:850}.greeting-spark{color:var(--accent);font-size:15px;line-height:1}.greeting-separator{width:20px;height:1px;background:var(--stroke-dark)}.greeting h1{font-size:clamp(30px,2.35vw,38px);letter-spacing:-.085em;line-height:1.35;margin:10px 0 7px;font-weight:850}.greeting h1>span:first-of-type{color:var(--accent)}.heading-spark{color:#eda18c;font-size:16px;vertical-align:top;margin-left:12px}.greeting p{margin:0;font-size:11px;letter-spacing:.012em;color:var(--muted)}.greeting-flower{display:grid;place-items:center;height:95px;width:95px;border-radius:50%;background:#ebe8fe;color:#8f81ec;transform:rotate(-13deg)}.greeting-flower span{font-size:66px;line-height:1}
.demo-banner{background:var(--accent-soft);border:1px solid #a39cfd50;display:flex;align-items:center;gap:13px;border-radius:16px;padding:13px 15px;margin:0 0 23px}.demo-symbol{color:var(--accent);font-size:22px}.demo-banner>div{flex:1}.demo-banner strong{font-size:12px}.demo-banner p{font-size:10px;color:var(--muted);margin:4px 0 0;line-height:1.65}.demo-banner button{display:flex;align-items:center;gap:6px;border:1px solid #b6adf1;border-radius:9px;min-height:34px;white-space:nowrap;font-size:11px;font-weight:800;color:var(--accent);padding:0 9px}.demo-banner button:hover{background:var(--panel)}.demo-banner button .icon{height:15px;width:15px}
.calendar-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:7px 3px 17px}.toolbar-kicker{margin:0 0 4px;font-size:9px;font-weight:800;letter-spacing:.19em;color:var(--accent)}.month-heading h2{font-size:25px;letter-spacing:-.07em;font-weight:800;margin:0;line-height:1.35}.toolbar-actions{display:flex;align-items:center;gap:11px}.today-button{height:34px;padding:0 15px;background:var(--panel);border:1px solid var(--stroke);border-radius:9px;font-size:12px;font-weight:750;min-width:55px}.today-button:hover{background:var(--soft)}.period-arrows{display:flex;gap:1px}.period-arrows .icon-button{width:35px;height:35px}.period-arrows .icon{width:18px;height:18px}.view-segments{background:var(--panel);display:flex;border:1px solid var(--stroke);border-radius:11px;padding:4px;gap:2px}.view-segments button{font-size:11px;font-weight:750;min-height:29px;min-width:34px;padding:0 11px;border-radius:7px;color:var(--muted)}.view-segments button.selected{background:var(--accent);color:var(--contrast-on-accent);box-shadow:0 3px 9px #7167eb24}.small-add{width:37px;height:37px;display:grid;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--accent)}.small-add:hover{background:var(--accent);color:var(--contrast-on-accent)}
.calendar-surface{border:1px solid var(--stroke);border-radius:19px;overflow:hidden;background:var(--panel);box-shadow:var(--shadow)}.weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid var(--stroke);background:var(--panel-alt)}.weekday{font-weight:750;font-size:10px;letter-spacing:.03em;text-align:center;padding:16px 0;color:var(--muted)}.weekday.sunday{color:var(--personal)}.weekday.saturday{color:var(--work)}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:var(--stroke);gap:1px}.date-cell{min-width:0;min-height:119px;background:var(--panel);padding:11px 8px 8px;position:relative;transition:background .14s;cursor:pointer}.date-cell:hover{background:var(--hover)}.date-cell.is-outside{background:var(--panel-alt)}.date-cell.is-outside .date-num{color:var(--subtle)}.date-cell.is-selected{background:var(--hover);box-shadow:inset 0 0 0 1.5px var(--accent)}.date-cell.is-today{background:var(--accent-soft)}.date-top{display:flex;align-items:center;justify-content:space-between;min-width:0;margin-bottom:7px}.date-num{display:inline-grid;place-items:center;height:26px;min-width:26px;padding:0 4px;border-radius:9px;font-weight:800;font-size:12px;line-height:1;color:var(--ink)}.date-cell.is-today .date-num{color:var(--contrast-on-accent);background:var(--accent)}.date-top .cell-add{opacity:0;width:24px;height:24px;display:grid;place-items:center;color:var(--muted);border-radius:6px}.date-top .cell-add .icon{width:14px;height:14px}.date-cell:hover .cell-add,.date-top .cell-add:focus-visible{opacity:1}.date-top .cell-add:hover{background:var(--accent-soft);color:var(--accent)}.cell-events{display:flex;flex-direction:column;gap:4px}.event-pill{display:flex;align-items:center;gap:5px;text-align:left;width:100%;min-width:0;height:23px;padding:0 6px;border-radius:6px;font-size:10px;font-weight:740;letter-spacing:-.015em;overflow:hidden;transition:filter .14s,transform .14s}.event-pill:hover{filter:brightness(.95);transform:translateY(-1px)}.event-pill .pill-time{white-space:nowrap;font-size:9px;opacity:.9}.event-pill .pill-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-pill.is-study{background:#dcf2e9;color:#216d54}.event-pill.is-work{background:#ece9ff;color:#5147b4}.event-pill.is-personal{background:#ffebdf;color:#ac5840}.event-pill.is-other{background:#f9efcc;color:#8d691d}body[data-theme=dark] .event-pill.is-study{background:#265343;color:#bcffe4}body[data-theme=dark] .event-pill.is-work{background:#423c69;color:#e4dfff}body[data-theme=dark] .event-pill.is-personal{background:#604237;color:#ffdfd2}body[data-theme=dark] .event-pill.is-other{background:#51442b;color:#f8e4b5}.event-pill .demo-star{font-size:9px}.more-events{font-size:9px;font-weight:800;padding:2px 4px;color:var(--muted)}.date-cell.saturday .date-num{color:var(--work)}.date-cell.sunday .date-num{color:var(--personal)}.date-cell.is-today .date-num{color:var(--contrast-on-accent)}.date-cell.is-dragover{outline:2px dashed var(--accent);outline-offset:-5px;background:var(--accent-soft)}.month-event-dots{display:none}
.under-calendar{display:flex;align-items:center;gap:17px;flex-wrap:wrap;padding:15px 3px;color:var(--muted);font-size:10px}.under-calendar>span{display:flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:3px}.legend-dot.study,.category-dot.study{background:var(--study)}.legend-dot.work,.category-dot.work{background:var(--work)}.legend-dot.personal,.category-dot.personal{background:var(--personal)}.legend-dot.other,.category-dot.other{background:var(--other)}.under-hint{margin-left:auto;color:var(--subtle)}
.insights{padding-top:0;min-width:0}.today-card{border-radius:21px;background:#ece9ff;padding:23px 23px 20px;position:relative;overflow:hidden;color:#413a78;margin-bottom:34px}.today-card:before{content:"";width:160px;height:160px;position:absolute;right:-63px;top:-86px;background:#fff7;border-radius:50%;filter:blur(2px)}.today-top{display:flex;align-items:center;justify-content:space-between;position:relative}.today-top .eyebrow{color:#7b70c1;font-size:9px}.today-sun{color:#9486e3;font-size:25px}.today-weekday{font-size:11px;font-weight:800;letter-spacing:.13em;margin:31px 0 0;color:#7466ae}.today-big-date{display:flex;align-items:baseline;gap:8px;margin:-9px 0 2px}.today-big-date span:first-child{font-size:88px;line-height:1.12;font-weight:800;letter-spacing:-.085em}.today-big-date span:last-child{font-weight:800;font-size:16px;letter-spacing:.06em}.today-message{font-size:11px;color:#8478ae;margin:7px 0 29px}.today-card-bottom{display:flex;align-items:end;justify-content:space-between;border-top:1px solid #b2a4e854;padding-top:15px}.today-card-bottom .subdued{font-size:10px;display:block;color:#7467a4;margin-bottom:6px}.today-card-bottom strong{font-size:23px;line-height:1}.today-card-bottom small{font-size:11px}.today-card-bottom button{height:40px;width:40px;display:grid;place-items:center;border-radius:12px;background:#fff9;color:#6a58ba}.today-card-bottom button .icon{width:19px}
.insight-section{border-bottom:1px solid var(--stroke);padding:0 0 27px;margin-bottom:29px}.insight-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.insight-title h3{margin:0;font-size:16px;letter-spacing:-.06em}.insight-icon{height:31px;width:31px;display:grid;place-items:center;background:var(--panel);border:1px solid var(--stroke);border-radius:9px;color:var(--accent)}.insight-icon .icon{width:17px}.insight-subtitle{font-size:10px;color:var(--muted);margin:5px 0 18px}.agenda-list{display:flex;flex-direction:column;gap:9px}.agenda-item{display:flex;align-items:stretch;gap:12px;text-align:left;width:100%;min-width:0;padding:9px 7px;border-radius:10px;transition:background .15s}.agenda-item:hover{background:var(--soft)}.agenda-time{width:53px;min-width:53px;color:var(--muted);font-size:10px;line-height:1.65;padding-top:3px}.agenda-line{width:3px;border-radius:7px;background:var(--work);flex:none}.agenda-line.study{background:var(--study)}.agenda-line.personal{background:var(--personal)}.agenda-line.other{background:var(--other)}.agenda-info{flex:1;min-width:0}.agenda-info strong{display:block;font-size:12px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}.agenda-info p{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px;margin:4px 0 0}.agenda-info .icon{width:12px;height:12px}.no-events{text-align:center;padding:18px 10px 20px;border:1px dashed var(--stroke-dark);border-radius:13px;background:var(--panel-alt)}.no-events .no-emoji{font-size:26px;color:var(--accent)}.no-events strong{font-size:12px;display:block;margin:7px 0}.no-events p{font-size:10px;color:var(--muted);margin:0 0 10px;line-height:1.8}.no-events button{font-size:11px;font-weight:850;color:var(--accent);padding:6px}
.weekly-section{padding-bottom:25px}.mini-flower{color:var(--personal);font-size:20px}.week-stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin:0 0 12px}.week-stat-top strong{color:var(--ink);font-size:20px}.week-stat-top small{font-size:10px}.week-distribution{display:flex;width:100%;height:10px;background:var(--soft);border-radius:30px;overflow:hidden;gap:2px}.week-distribution>span{height:100%;display:block}.week-distribution>.study{background:var(--study)}.week-distribution>.work{background:var(--work)}.week-distribution>.personal{background:var(--personal)}.week-distribution>.other{background:var(--other)}.week-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:9px 8px;margin-top:15px}.week-breakdown-item{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.week-breakdown-item strong{color:var(--ink);margin-left:auto;font-size:11px}.inspiration{background:var(--sunny);border-radius:16px;padding:21px 19px;color:var(--sunny-ink)}.inspiration>span{font-size:23px}.inspiration p{font-size:13px;line-height:1.9;font-weight:700;margin:9px 0 17px;letter-spacing:-.02em}.inspiration small{font-size:9px;letter-spacing:.11em;font-weight:700;opacity:.68}.mobile-selected,.mobile-tabbar,.mobile-fab{display:none}
.timeline{background:var(--panel)}.tl-week-head{display:grid;grid-template-columns:55px repeat(var(--days),minmax(0,1fr));background:var(--panel-alt);border-bottom:1px solid var(--stroke);padding:0}.tl-day-head{text-align:center;min-width:0;padding:15px 5px;border-left:1px solid var(--stroke);font-size:11px;color:var(--muted);font-weight:750}.tl-day-head span{display:block;margin-top:4px;color:var(--ink);font-size:22px;font-weight:820}.tl-day-head.is-today span{color:var(--accent)}.tl-day-head.is-selected{background:var(--accent-soft)}.tl-day-head button{height:100%;width:100%}.tl-spacer{font-size:8px;color:var(--subtle);text-align:center;align-self:center}.tl-allday-row{display:grid;grid-template-columns:55px repeat(var(--days),minmax(0,1fr));border-bottom:1px solid var(--stroke);min-height:38px}.tl-all-label{font-size:9px;color:var(--subtle);padding:11px 3px;text-align:center}.tl-all-cell{padding:5px 4px;border-left:1px solid var(--stroke);min-width:0;display:flex;gap:2px;flex-direction:column}.tl-all-event{width:100%;border-radius:5px;text-align:left;font-size:10px;padding:4px;color:var(--ink);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tl-scroll{max-height:600px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--stroke-dark) transparent}.tl-inner{display:grid;grid-template-columns:55px minmax(0,1fr)}.tl-time-axis{height:1344px;position:relative}.tl-time-label{height:56px;position:absolute;left:0;width:100%;transform:translateY(-7px);font-size:9px;color:var(--subtle);text-align:center}.tl-days{display:grid;grid-template-columns:repeat(var(--days),minmax(0,1fr));min-width:0}.tl-column{position:relative;height:1344px;border-left:1px solid var(--stroke);background:repeating-linear-gradient(180deg,transparent 0px,transparent 55px,var(--stroke) 55px,var(--stroke) 56px)}.tl-column.is-today{background:repeating-linear-gradient(180deg,var(--hover) 0px,var(--hover) 55px,var(--stroke) 55px,var(--stroke) 56px)}.tl-slot{position:absolute;width:100%;height:56px;left:0;background:transparent;border:0;z-index:1;text-align:left;font-size:0}.tl-slot:hover{background:var(--accent-soft);opacity:.44}.tl-event{position:absolute;left:3px;right:3px;width:calc(100% - 6px);border-radius:8px;padding:7px 6px;text-align:left;overflow:hidden;z-index:2;border-left:3px solid var(--work);background:#ece9ff;color:#5147b4;box-shadow:0 2px 6px #00000008;font-size:10px;display:flex;flex-direction:column;gap:3px;min-height:23px}.tl-event>strong{line-height:1.3;white-space:normal;overflow-wrap:anywhere;font-size:11px}.tl-event>span{font-size:9px;opacity:.8}.tl-event.study{background:#dcf2e9;border-color:var(--study);color:#216d54}.tl-event.personal{background:#ffebdf;border-color:var(--personal);color:#a84b3c}.tl-event.other{background:#f9efcc;border-color:var(--other);color:#826116}body[data-theme=dark] .tl-event{filter:brightness(.82)}.tl-current-line{position:absolute;height:2px;background:var(--personal);left:0;right:0;z-index:4;pointer-events:none}.tl-current-line:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--personal);position:absolute;left:-4px;top:-3px}
.agenda-list-view{padding:28px 28px 42px}.list-header h3{font-size:20px;margin:0}.list-header p{font-size:12px;color:var(--muted)}.list-day{margin:28px 0}.list-day-title{display:flex;gap:13px;align-items:center;margin-bottom:9px}.list-day-title strong{font-size:20px;letter-spacing:-.05em}.list-day-title span{color:var(--muted);font-size:11px}.list-day-title em{font-style:normal;color:var(--accent);font-size:10px;font-weight:750;margin-left:auto}.list-day .agenda-item{padding:10px 12px;background:var(--panel-alt);margin:6px 0;border:1px solid var(--stroke)}.list-day .agenda-item:hover{background:var(--hover)}.list-empty{padding:45px 15px;text-align:center;color:var(--muted)}.list-empty strong{display:block;color:var(--ink);margin-top:12px}
.app-dialog{background:var(--panel);color:var(--ink);border:1px solid var(--stroke);border-radius:24px;padding:0;box-shadow:var(--shadow-strong);max-height:min(91svh,940px);overflow-y:auto;overscroll-behavior:contain}.app-dialog::backdrop{background:rgba(21,17,32,.54);backdrop-filter:blur(5px)}.event-dialog{width:min(560px,calc(100vw - 30px))}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;padding:27px 30px 19px;gap:12px}.dialog-head h2{font-size:24px;letter-spacing:-.065em;margin:6px 0 0}.dialog-close{background:var(--soft);border-radius:11px;flex:none}#eventForm{padding:0 30px 28px}.form-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:15px}.form-field>label{font-size:12px;font-weight:780}.required{color:var(--personal)}.optional{font-weight:500;color:var(--subtle);font-size:10px}.form-field input,.form-field textarea,.form-field select{appearance:none;border:1px solid var(--stroke-dark);border-radius:11px;background:var(--panel-alt);color:var(--ink);min-height:46px;padding:11px 13px;font-size:14px;width:100%;outline:none;transition:border-color .15s,box-shadow .15s}.form-field textarea{resize:vertical;min-height:72px;line-height:1.5}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.form-field input::placeholder,.form-field textarea::placeholder{color:var(--subtle)}.all-day-row{min-height:46px;display:flex;justify-content:space-between;align-items:center;margin:0 0 10px;cursor:pointer;font-size:12px;font-weight:700}.all-day-row>span:first-child{display:flex;align-items:center;gap:10px}.all-day-row .icon{width:16px;color:var(--muted)}.switch{display:inline-block;width:45px;height:26px;position:relative;cursor:pointer;flex:none}.switch input{opacity:0;position:absolute;inset:0;cursor:pointer;z-index:2}.switch .slider{position:absolute;inset:0;background:var(--stroke-dark);border-radius:20px;transition:background .2s}.switch .slider:after{content:"";height:20px;width:20px;background:white;border-radius:50%;position:absolute;left:3px;top:3px;box-shadow:0 2px 5px #0002;transition:transform .2s}.switch input:checked+.slider{background:var(--accent)}.switch input:checked+.slider:after{transform:translateX(19px)}.switch input:focus-visible+.slider{outline:3px solid var(--accent);outline-offset:3px}.time-fields{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;gap:7px}.time-fields .form-field{min-width:0}.time-arrow{align-self:center;text-align:center;color:var(--muted);margin-top:8px}.category-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.category-picker button{border:1px solid var(--stroke-dark);border-radius:10px;min-height:40px;font-size:11px;font-weight:760;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 5px;white-space:nowrap}.category-picker button.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.category-dot{width:9px;height:9px;display:inline-block;border-radius:3px}.two-column-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.repeat-explainer{border-left:3px solid var(--accent);background:var(--accent-soft);padding:8px 12px;font-size:11px;line-height:1.6;color:var(--accent);border-radius:5px}.form-error{margin:0 0 10px;color:var(--danger);font-size:12px;font-weight:740}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:22px}.primary-button,.secondary-button,.destructive-button,.danger-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;border-radius:11px;min-height:44px;font-size:12px;font-weight:800;padding:0 18px}.primary-button{color:var(--contrast-on-accent);background:var(--accent)}.primary-button:hover{background:var(--accent-dark)}.primary-button .icon{width:16px}.secondary-button{background:var(--soft);border:1px solid var(--stroke-dark)}.secondary-button:hover{background:var(--hover)}.destructive-button{color:var(--danger);padding:0 8px;margin-right:auto}.destructive-button .icon{width:17px}.danger-button{background:#cf4f58;color:white}
.quick-dialog,.search-dialog,.settings-dialog{width:min(555px,calc(100vw - 30px))}.dialog-description{font-size:12px;color:var(--muted);margin:0 30px 20px;line-height:1.8}.quick-dialog form{padding:0 30px 8px}.quick-input-wrap,.search-box{display:flex;align-items:center;gap:12px;border:1.5px solid var(--accent);border-radius:15px;padding:6px 8px 6px 15px;background:var(--panel-alt)}.quick-input-wrap>.icon,.search-box>.icon{color:var(--accent)}.quick-input-wrap input,.search-box input{flex:1;border:0;outline:0;min-width:0;background:transparent;height:42px;color:var(--ink);font-size:13px}.quick-input-wrap input::placeholder,.search-box input::placeholder{color:var(--subtle)}.quick-submit{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--accent);color:var(--contrast-on-accent)}.example-title{margin:22px 30px 10px;font-size:11px;color:var(--muted);font-weight:750}.example-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 30px}.example-chips button{border:1px solid var(--stroke);background:var(--soft);padding:10px 11px;border-radius:9px;font-size:11px}.example-chips button:hover{border-color:var(--accent)}.tiny-note{font-size:10px;color:var(--subtle);line-height:1.85;margin:20px 30px 27px}.search-box{margin:0 30px;border-color:var(--stroke-dark);padding:5px 13px}.search-box:focus-within{border-color:var(--accent)}.search-meta{font-size:11px;color:var(--muted);padding:16px 30px 11px}.search-results{max-height:410px;overflow:auto;padding:0 20px 25px}.search-result{width:100%;display:flex;align-items:center;gap:10px;padding:13px;border-radius:10px;text-align:left;border-bottom:1px solid var(--stroke)}.search-result:hover{background:var(--soft)}.search-result .result-date{width:75px;color:var(--muted);font-size:10px}.search-result .category-dot{flex:none}.search-result .result-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:760;flex:1}.search-result .icon{height:15px;width:15px;color:var(--muted)}.search-empty{padding:35px 15px;color:var(--muted);font-size:12px;text-align:center}.settings-section{padding:18px 30px 26px;border-top:1px solid var(--stroke)}.settings-section h3{font-size:14px;margin:0 0 9px}.settings-section .settings-description{line-height:1.9;font-size:12px;color:var(--muted);margin:0 0 18px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.settings-row strong{font-size:13px}.settings-row p{font-size:11px;color:var(--muted);margin:6px 0 0}.settings-buttons{display:flex;flex-wrap:wrap;gap:8px}.outline-action{display:flex;align-items:center;gap:7px;border:1px solid var(--stroke-dark);background:var(--panel-alt);border-radius:10px;padding:0 11px;min-height:40px;font-size:11px;font-weight:770}.outline-action:hover{background:var(--soft)}.outline-action .icon{width:16px}.outline-action.danger{color:var(--danger);border-color:var(--danger)}.settings-section .tiny-note{margin:13px 0 0}.settings-footer{font-size:9px;letter-spacing:.09em;color:var(--subtle);text-align:center;padding:16px;border-top:1px solid var(--stroke)}.settings-footer span{padding:0 8px}.confirm-dialog{width:min(405px,calc(100vw - 30px));text-align:center;padding:34px 28px}.confirm-emoji{font-size:34px;color:var(--accent);margin-bottom:10px}.confirm-dialog h2{font-size:21px}.confirm-dialog p{color:var(--muted);font-size:12px;line-height:1.8}.confirm-buttons{display:flex;justify-content:center;gap:10px;margin-top:27px}
.toast{position:fixed;z-index:300;left:50%;bottom:27px;transform:translateX(-50%);background:#232435;color:#fff;border-radius:14px;display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 12px 8px 16px;box-shadow:0 16px 40px #0003;max-width:min(94vw,470px);font-size:12px;font-weight:700;white-space:normal}.toast-symbol{color:#c5b7ff}.toast>span:nth-child(2){flex:1}.toast button{color:#c9bdff;font-size:11px;font-weight:800;flex:none}.toast #toastClose{display:grid;place-items:center;width:28px;height:28px}.toast .icon{width:14px}
@media(max-width:1350px){.main-layout{grid-template-columns:minmax(0,1fr) 248px;gap:20px;padding:29px 24px 45px}.sidebar{width:236px;min-width:236px;padding-left:18px;padding-right:18px}.app-topbar{padding:0 26px}.today-card{padding:20px}.greeting-flower{width:75px;height:75px}.greeting-flower span{font-size:50px}.date-cell{min-height:110px;padding:9px 6px}.event-pill{font-size:9px;padding-left:4px;gap:3px}}
@media(max-width:1120px){.insights{display:none}.main-layout{grid-template-columns:1fr;max-width:1020px}.greeting{min-height:125px}.date-cell{min-height:118px}.mobile-selected{display:block;margin-top:24px;padding:21px 23px;border:1px solid var(--stroke);background:var(--panel);border-radius:17px}.mobile-selected-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.mobile-selected h3{margin:6px 0 0;font-size:18px}.text-add{display:flex;align-items:center;gap:4px;color:var(--accent);font-size:12px;font-weight:800}.text-add .icon{width:16px}.mobile-selected .agenda-item{display:flex;align-items:center;border-bottom:1px solid var(--stroke);border-radius:0;padding:12px 5px}.mobile-selected .agenda-item:last-child{border-bottom:0}.mobile-selected .agenda-time{width:70px;min-width:70px}}
@media(max-width:760px){.sidebar{position:fixed;top:0;left:0;transform:translateX(-102%);box-shadow:var(--shadow-strong);height:100dvh;width:290px;min-width:290px;transition:transform .2s;z-index:100}.sidebar.is-open{transform:translateX(0)}.sidebar-close{display:grid!important}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100%;background:#16142b94;z-index:95;backdrop-filter:blur(3px)}.workspace{width:100%}.app-topbar{height:63px;padding:0 17px;position:sticky;top:0;z-index:20}.mobile-menu{display:grid;width:35px;height:35px;border:1px solid var(--stroke)}.top-left{gap:10px}.top-label,.top-separator,.current-time,.top-search span,.top-search kbd{display:none}.top-search{min-width:0;width:38px;height:38px;display:grid;place-items:center;border:0;padding:0;background:transparent}.top-search .icon{width:20px;height:20px}.top-actions{gap:5px}.avatar{height:33px;width:33px;margin:0 0 0 5px}.top-theme{height:38px;width:38px;background:transparent}.main-layout{padding:22px 16px 130px;display:block}.greeting{min-height:117px;padding:2px 2px 16px}.greeting-label{font-size:8px}.greeting-label span:last-child{display:none}.greeting-separator{display:none}.greeting h1{font-size:30px;margin:10px 0 5px}.greeting p{font-size:10px}.greeting-flower{width:58px;height:58px;margin-right:5px}.greeting-flower span{font-size:39px}.demo-banner{gap:10px;align-items:flex-start;padding:12px;margin:0 0 20px;flex-wrap:wrap}.demo-banner>div{flex-basis:calc(100% - 46px)}.demo-banner button{margin-left:29px}.calendar-toolbar{align-items:flex-end;flex-wrap:wrap;gap:11px;margin:0 0 14px}.month-heading h2{font-size:22px}.toolbar-kicker{font-size:8px}.toolbar-actions{gap:5px}.today-button{height:32px;min-width:47px;padding:0 9px}.period-arrows .icon-button{height:32px;width:32px}.view-segments{padding:3px}.view-segments button{padding:0 8px;min-width:30px;height:27px}.small-add{height:34px;width:34px}.calendar-surface{border-radius:15px}.weekday{padding:13px 0;font-size:10px}.month-grid{grid-auto-flow:row}.date-cell{min-height:74px;max-height:94px;padding:9px 3px 4px;text-align:center;display:flex;flex-direction:column;align-items:center}.date-top{justify-content:center;width:100%;margin-bottom:9px}.date-num{font-size:13px;width:28px;height:28px;border-radius:10px}.date-top .cell-add{display:none}.cell-events{display:none}.month-event-dots{display:flex;gap:3px;justify-content:center;align-items:center;flex-wrap:wrap;max-width:43px}.month-event-dot{display:block;width:5px;height:5px;border-radius:50%;background:var(--work)}.month-event-dot.study{background:var(--study)}.month-event-dot.personal{background:var(--personal)}.month-event-dot.other{background:var(--other)}.date-cell.is-outside .month-event-dot{opacity:.35}.date-cell.is-selected{box-shadow:inset 0 0 0 1px var(--accent)}.under-calendar{font-size:9px;gap:9px 11px;margin:0}.under-hint{display:none!important}.mobile-selected{margin-top:19px;padding:17px 16px}.mobile-selected h3{font-size:17px}.mobile-selected .agenda-item{min-height:64px}.mobile-selected .agenda-time{width:64px;min-width:64px}.mobile-tabbar{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);bottom:0;left:0;right:0;z-index:80;background:var(--panel);border-top:1px solid var(--stroke);padding:7px 9px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -5px 28px #28204012}.mobile-tabbar button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:52px;color:var(--muted);font-size:10px;font-weight:700;border-radius:10px}.mobile-tabbar button.active{color:var(--accent)}.mobile-tabbar button .icon{width:21px;height:21px}.mobile-fab{position:fixed;display:grid;place-items:center;right:19px;bottom:calc(86px + env(safe-area-inset-bottom));width:53px;height:53px;background:var(--accent);color:var(--contrast-on-accent);border-radius:18px;box-shadow:0 12px 35px #665be65a;z-index:40}.mobile-fab .icon{width:26px;height:26px}.tl-scroll{max-height:570px}.tl-week-head{grid-template-columns:33px repeat(var(--days),minmax(0,1fr))}.tl-inner{grid-template-columns:33px minmax(0,1fr)}.tl-allday-row{grid-template-columns:33px repeat(var(--days),minmax(0,1fr))}.tl-time-label{font-size:8px}.tl-day-head{padding:10px 1px;font-size:9px}.tl-day-head span{font-size:16px}.tl-column{min-width:0}.tl-event{font-size:8px;padding:3px 2px}.tl-event strong{font-size:9px}.tl-event span{display:none}.tl-all-event{font-size:8px}.agenda-list-view{padding:20px 15px}.app-dialog{border-radius:20px 20px 0 0;max-height:91dvh}.app-dialog[open]{position:fixed;top:auto;bottom:0;margin:0 auto;width:100%;max-width:none;border-bottom:0}.dialog-head{padding:24px 22px 17px}.dialog-head h2{font-size:22px}#eventForm{padding:0 22px calc(26px + env(safe-area-inset-bottom))}.quick-dialog form{padding:0 22px 8px}.dialog-description{margin:0 22px 18px}.example-title{margin:18px 22px 10px}.example-chips{margin:0 22px}.tiny-note{margin:18px 22px 26px}.search-box{margin:0 22px}.search-meta{padding:14px 22px 10px}.search-results{padding:0 12px 24px}.settings-section{padding:17px 22px}.settings-footer{padding-bottom:calc(24px + env(safe-area-inset-bottom))}.confirm-dialog[open]{bottom:50%;transform:translateY(50%);margin:auto;width:calc(100% - 30px);border-radius:20px}.toast{bottom:calc(92px + env(safe-area-inset-bottom));width:calc(100vw - 28px);z-index:210}.category-picker button{font-size:10px}}
@media(max-width:400px){.main-layout{padding:18px 12px 130px}.greeting h1{font-size:27px}.greeting p{font-size:9px}.greeting-flower{width:48px;height:48px}.greeting-flower span{font-size:32px}.toolbar-actions{gap:2px}.month-heading h2{font-size:21px}.period-arrows .icon-button{width:27px}.today-button{min-width:44px}.view-segments button{min-width:29px;padding:0 7px}.small-add{width:31px}.date-cell{min-height:70px}.under-calendar{gap:8px}.category-picker{gap:4px}.category-picker button{font-size:9px;padding:0 2px}.dialog-actions{gap:5px}.primary-button,.secondary-button{padding:0 12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Mobile week view: keep seven days readable instead of squeezing columns. */
@media(max-width:760px){
  .timeline.is-week{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:var(--stroke-dark) transparent}
  .timeline.is-week .tl-week-head,
  .timeline.is-week .tl-allday-row,
  .timeline.is-week .tl-inner{min-width:775px}
  .timeline.is-week .tl-scroll{min-width:775px}
  .timeline.is-week .tl-day-head span{font-size:19px}
  .timeline.is-week .tl-event{padding:6px 5px}
  .timeline.is-week .tl-event strong{font-size:10px}
}


/* ============================================================
   melo. 1.1 / Simple header + tasks + meaningful countdowns
   ============================================================ */
@media(min-width:761px){
  .app-topbar{display:none}
  .main-layout{padding-top:29px}
}
.mobile-brand{font-size:22px;font-weight:900;letter-spacing:-.09em;color:var(--ink);display:none}
.mobile-brand span{color:var(--accent)}
.greeting{min-height:104px;align-items:center;padding:4px 5px 18px}
.greeting h1{font-size:31px;margin:6px 0 5px}
.greeting h1 .brand-dot{font-size:1em}
.greeting p{font-size:12px;color:var(--muted)}
.greeting-side{display:inline-flex;align-items:center;gap:9px;background:var(--panel);border:1px solid var(--stroke);border-radius:50px;padding:11px 15px;font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap}
.today-mini-dot{width:7px;height:7px;background:var(--study);border-radius:50%;box-shadow:0 0 0 4px color-mix(in srgb,var(--study) 15%,transparent)}
.quick-templates{display:flex;align-items:center;gap:9px;min-width:0;margin:1px 3px 26px;flex-wrap:wrap}
.template-label{color:var(--muted);font-weight:800;font-size:11px;margin-right:5px;white-space:nowrap}
.quick-templates button{display:flex;align-items:center;gap:4px;min-height:37px;padding:0 14px;background:var(--panel);border:1px solid var(--stroke);border-radius:50px;font-size:11px;font-weight:750;transition:border-color .15s,background .15s,transform .15s;white-space:nowrap}
.quick-templates button:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);transform:translateY(-1px)}
.quick-templates .template-text{color:var(--accent);background:var(--accent-soft);border-color:transparent}
.viewing-tasks .quick-templates,.viewing-tasks .calendar-toolbar .toolbar-actions{display:none}
.viewing-tasks .calendar-toolbar{margin-top:20px}
.viewing-tasks .calendar-surface{display:none}
.viewing-tasks .under-calendar{display:none}
.viewing-tasks .greeting{min-height:104px}
.sidebar-link .task-sidebar-number{margin-left:auto;font-size:10px;color:var(--accent);font-weight:850}
.pinned-event-row{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--accent-soft);border-radius:11px;padding:13px 14px;margin-top:4px;margin-bottom:17px;cursor:pointer;font-size:11px;line-height:1.5;font-weight:750}
.pinned-event-row>span:first-child{display:flex;align-items:center;gap:9px}
.pinned-event-row .pin-icon{font-size:19px;font-weight:400;color:var(--accent)}
.share-button{font-size:12px;color:var(--accent);font-weight:750;padding:11px 7px;white-space:nowrap}
.share-button:hover{text-decoration:underline}
.milestone-widget{background:var(--panel);border:1px solid var(--stroke);box-shadow:var(--shadow);border-radius:17px;padding:16px 17px 13px;margin-bottom:18px}
.milestone-title{display:flex;align-items:center;justify-content:space-between;color:var(--ink);font-size:12px;font-weight:800;letter-spacing:-.025em;margin-bottom:12px}
.milestone-star{font-size:19px;font-weight:400;color:var(--accent)}
.milestone-title button{color:var(--accent);font-size:10px;font-weight:780;padding:6px 0}
.milestone-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-width:0;padding:10px 3px;border-top:1px solid var(--stroke);min-height:57px}
.milestone-item:hover .milestone-info strong{color:var(--accent)}
.milestone-daybox{width:62px;min-width:62px;border-radius:11px;padding:7px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;background:var(--accent-soft);color:var(--accent)}
.milestone-daybox strong{font-size:13px;font-weight:850;white-space:nowrap;line-height:1.1}
.milestone-daybox small{font-size:9px;font-weight:700;color:var(--muted)}
.milestone-info{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.milestone-info strong{font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.milestone-info small{color:var(--muted);font-size:9px}
.milestone-arrow{font-size:20px;color:var(--subtle)}
.milestone-tip{font-size:9px;color:var(--muted);margin:9px 0 0;line-height:1.6}
.milestone-empty{font-size:11px;color:var(--muted);padding:15px 0;line-height:1.7}
.task-side-widget{background:var(--panel);border:1px solid var(--stroke);border-radius:17px;padding:16px 17px 12px;margin-bottom:18px}
.task-side-widget .milestone-title{margin-bottom:5px}
.tasks-preview-empty{font-size:11px;color:var(--muted);line-height:1.8;padding:16px 0}
.task-row{display:flex;align-items:center;gap:14px;min-width:0;padding:13px 11px;background:var(--panel);border:1px solid var(--stroke);border-radius:13px;margin:8px 0;transition:background .16s,border-color .16s}
.task-row:hover{background:var(--panel-alt);border-color:var(--stroke-dark)}
.task-row.compact{border:0;border-top:1px solid var(--stroke);border-radius:0;padding:11px 2px;margin:0}
.task-checkbox{width:26px;height:26px;min-width:26px;display:grid;place-items:center;border:2px solid var(--stroke-dark);background:var(--panel);border-radius:9px;color:var(--contrast-on-accent);font-size:16px;font-weight:900}
.task-checkbox:hover{border-color:var(--accent);background:var(--hover)}
.task-row.is-done .task-checkbox{background:var(--study);border-color:var(--study);color:white}
.task-main{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left}
.task-main strong{font-size:13px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.task-row.is-done .task-main strong{text-decoration:line-through;color:var(--subtle)}
.task-main>span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;flex-wrap:wrap;line-height:1.2}
.task-cat{display:inline-block;width:8px;height:8px;border-radius:3px}
.task-cat.study{background:var(--study)}.task-cat.work{background:var(--work)}.task-cat.personal{background:var(--personal)}.task-cat.other{background:var(--other)}
.task-row.overdue .task-main>span{color:var(--danger)}
.task-important{display:inline-block;color:var(--danger);font-size:9px;background:color-mix(in srgb,var(--danger) 12%,transparent);padding:2px 4px;border-radius:4px}
.task-pencil{font-size:19px;font-weight:800;color:var(--muted);height:36px;width:36px;border-radius:9px;display:grid;place-items:center}
.task-pencil:hover{color:var(--accent);background:var(--accent-soft)}
.tasks-board{background:var(--panel);border:1px solid var(--stroke);box-shadow:var(--shadow);border-radius:20px;padding:29px 30px 34px;min-height:490px}
.tasks-hero{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--stroke);padding-bottom:28px;margin-bottom:24px}
.tasks-hero h2{font-size:27px;font-weight:850;letter-spacing:-.065em;margin:9px 0 5px}
.tasks-hero p{font-size:11px;color:var(--muted);margin:0}
.tasks-progress-ring{--pct:0%;height:95px;width:95px;min-width:95px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(closest-side,var(--panel) 83%,transparent 85%),conic-gradient(var(--study) var(--pct),var(--stroke) 0);transition:background .2s}
.tasks-progress-ring strong{font-size:22px;line-height:1.4;letter-spacing:-.04em}
.tasks-progress-ring small{font-size:8px;color:var(--muted);font-weight:800;letter-spacing:.1em}
.task-quick-form{display:flex;align-items:center;gap:12px;border:1px solid var(--stroke-dark);background:var(--panel-alt);border-radius:14px;padding:7px 8px 7px 15px}
.task-quick-form>.icon{color:var(--accent);width:20px;height:20px}
.task-quick-form #taskQuickTitle{flex:1;min-width:0;min-height:43px;background:transparent;border:0;outline:0;color:var(--ink);font-size:13px}
.task-quick-form #taskQuickTitle::placeholder{color:var(--subtle)}
.task-quick-form #taskQuickDate{width:135px;min-width:0;max-width:135px;border:0;background:var(--panel);border-radius:9px;padding:9px 7px;height:39px;color:var(--muted);font-size:11px}
.task-quick-form button{height:41px;min-width:67px;border-radius:10px;background:var(--accent);color:var(--contrast-on-accent);font-size:12px;font-weight:850}
.task-quick-form button:hover{background:var(--accent-dark)}
.task-filter-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:27px;margin-bottom:14px}
.task-filter-row button{border-radius:9px;min-height:37px;padding:0 14px;font-size:12px;font-weight:800;color:var(--muted);border:1px solid transparent}
.task-filter-row button.selected{background:var(--accent-soft);color:var(--accent)}
.task-filter-row button:hover:not(.selected){background:var(--soft)}
.task-filter-row .task-detailed-add{color:var(--accent);margin-left:auto;padding:0 4px}
.task-list-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke);padding:15px 4px 8px;margin-bottom:11px}
.task-list-heading strong{font-size:12px}.task-list-heading span{font-size:11px;color:var(--muted)}
.tasks-empty{text-align:center;background:var(--panel-alt);border:1px dashed var(--stroke-dark);padding:45px 13px;margin-top:15px;border-radius:15px}
.tasks-empty>span{display:block;font-size:34px;color:var(--accent);margin-bottom:8px}.tasks-empty strong{font-size:14px}.tasks-empty p{font-size:11px;color:var(--muted);line-height:1.7}
.task-dialog{width:min(485px,calc(100vw - 30px))}
.task-edit-form{padding:0 30px 27px}
.task-edit-form .dialog-actions{margin-top:10px}
.mobile-extras{display:none}
@media(max-width:1350px){
  .quick-templates{gap:6px}
  .quick-templates button{padding:0 10px;font-size:10px}
  .milestone-widget,.task-side-widget{padding:14px 13px}
  .task-quick-form{gap:6px}
}
@media(max-width:1120px){
  .mobile-extras{display:block;margin:20px 0;padding:18px 20px 16px;border-radius:17px;background:var(--panel);border:1px solid var(--stroke)}
  .mobile-extras-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
  .mobile-extras-header h3{margin:0;font-size:16px}
  .mobile-extras-header button{font-size:11px;color:var(--accent);font-weight:800}
  .mobile-countdown-label{font-size:10px;font-weight:800;color:var(--muted);margin:6px 0}
  .mobile-countdown{padding-bottom:12px;border-bottom:1px solid var(--stroke)}
  .mobile-countdown .milestone-item{border-top:0}
  .mobile-countdown .milestone-daybox{width:74px}
  .mobile-tasks-preview .task-row{padding:14px 0}
}
@media(max-width:760px){
  .app-topbar{display:flex;height:59px;border-bottom:1px solid var(--stroke);box-shadow:none;padding:0 16px;background:var(--panel)}
  .mobile-brand{display:block}
  .top-left{gap:12px}
  .top-actions{gap:1px}
  .top-search,.top-theme{width:41px;height:41px;border-radius:11px}
  .top-search:hover,.top-theme:hover{background:var(--soft)}
  .main-layout{padding-top:19px}
  .greeting{min-height:82px;padding:2px 3px 11px}
  .greeting-label{font-size:9px}
  .greeting h1{font-size:26px;margin:7px 0 3px}
  .greeting p{font-size:11px}
  .greeting-side{padding:9px 10px;font-size:9px;max-width:140px}
  .today-mini-dot{flex:none;height:6px;width:6px}
  .quick-templates{flex-wrap:nowrap;overflow-x:auto;margin:0 -12px 19px;padding:3px 12px 7px;gap:7px;scrollbar-width:none;scroll-snap-type:x proximity}
  .quick-templates::-webkit-scrollbar{display:none}
  .quick-templates button{flex:0 0 auto;scroll-snap-align:start;min-height:39px;padding:0 12px;font-size:11px}
  .template-label{flex:0 0 auto;font-size:11px}
  .viewing-tasks .greeting{margin-bottom:10px}
  .viewing-tasks .calendar-toolbar{margin-top:5px}
  .tasks-board{padding:20px 14px 28px;border-radius:15px;min-height:400px}
  .tasks-hero{padding-bottom:19px;margin-bottom:17px}
  .tasks-hero h2{font-size:23px}
  .tasks-progress-ring{width:73px;height:73px;min-width:73px}
  .tasks-progress-ring strong{font-size:17px}
  .tasks-progress-ring small{font-size:7px}
  .task-quick-form{flex-wrap:wrap;gap:6px 8px;padding:9px}
  .task-quick-form>.icon{width:17px}
  .task-quick-form #taskQuickTitle{min-height:33px;flex-basis:calc(100% - 36px);font-size:13px}
  .task-quick-form #taskQuickDate{width:150px;max-width:150px;flex:1;height:37px}
  .task-quick-form button{margin-left:auto;height:37px}
  .task-filter-row{padding-top:20px;gap:3px}
  .task-filter-row button{padding:0 10px;min-height:36px;font-size:11px}
  .task-filter-row .task-detailed-add{width:100%;text-align:right;margin-top:4px}
  .task-row{padding:13px 8px;gap:11px}
  .task-main strong{font-size:12px}
  .task-checkbox{width:28px;height:28px;min-width:28px}
  .task-edit-form{padding:0 22px calc(27px + env(safe-area-inset-bottom))}
  .pinned-event-row{font-size:10px}
  .mobile-extras{padding:16px 17px;margin:17px 0}
  .mobile-extras-header h3{font-size:15px}
  .milestone-daybox strong{font-size:12px}
  .mobile-extras .milestone-info strong{font-size:12px}
  .mobile-extras .task-main strong{font-size:12px}
  .mobile-fab{bottom:calc(85px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  .greeting-side{font-size:8px;padding:8px;max-width:116px}
  .greeting h1{font-size:24px}
  .tasks-board{padding:17px 12px 25px}
}

/* Final QA refinement: the task screen starts with tasks, not the calendar welcome and demo banner. */
.viewing-tasks .greeting,
.viewing-tasks .demo-banner,
.viewing-tasks .mobile-extras{display:none!important}
.viewing-tasks .calendar-toolbar{margin-top:4px}
@media(max-width:760px){
  .viewing-tasks .main-layout{padding-top:22px}
  .viewing-tasks .calendar-toolbar{margin-bottom:13px}
}
