diff --git a/frontend/e2e/today-plain-list.spec.ts b/frontend/e2e/today-plain-list.spec.ts index 44b77c1..a16f2a5 100644 --- a/frontend/e2e/today-plain-list.spec.ts +++ b/frontend/e2e/today-plain-list.spec.ts @@ -1,7 +1,7 @@ import type { APIRequestContext } from '@playwright/test' import { expect, test } from './fixtures' -const widths = [1440, 721, 720, 390, 375] +const widths = [1600, 1440, 721, 720, 390, 375] async function csrf(request: APIRequestContext) { const state = await request.storageState() @@ -50,7 +50,7 @@ test('Today plain-list layout matches the approved responsive geometry', async ( } })).toEqual({ media720: width <= 720, - contentWidth: width >= 1440 ? 900 : width === 721 ? 630 : width - 58, + contentWidth: width >= 1440 ? 1080 : width === 721 ? 630 : width - 58, environmentHeight: width >= 721 ? 55 : width === 375 ? 90 : 93, }) await expect(taskRowLocator).toHaveCount(1) @@ -120,6 +120,8 @@ test('Today plain-list layout matches the approved responsive geometry', async ( content: { left: content.left, right: content.right, width: content.width }, environment: { ...environment.getBoundingClientRect().toJSON(), scrollWidth: environment.scrollWidth, clientWidth: environment.clientWidth }, directions: { calendar: getComputedStyle(calendar).flexDirection, weather: getComputedStyle(weather).flexDirection, gold: getComputedStyle(gold).flexDirection }, + itemWidths: [calendar, weather, gold].map((element) => element.getBoundingClientRect().width), + itemHeights: [calendar, weather, gold].map((element) => element.getBoundingClientRect().height), uniqueRows, collisions, collisionRects: [calendar, weather, gold].map(element => element.getBoundingClientRect().toJSON()), @@ -190,11 +192,20 @@ test('Today plain-list layout matches the approved responsive geometry', async ( expect(metrics.styles.fabIconWidth).toBeCloseTo(30, 0) if (width >= 721) { expect(metrics.uniqueRows).toHaveLength(1) - expect(metrics.content.width).toBeCloseTo(width >= 1440 ? 900 : 630, 0) + expect(metrics.content.width).toBeCloseTo(width >= 1440 ? 1080 : 630, 0) + expect(Math.max(...metrics.itemWidths) - Math.min(...metrics.itemWidths)).toBeLessThanOrEqual(1) + expect(Math.max(...metrics.itemHeights) - Math.min(...metrics.itemHeights)).toBeLessThanOrEqual(1) expect(metrics.environment.height).toBeLessThanOrEqual(72) expect(metrics.styles.titleFontSize).toBe('34px') } else { expect(metrics.uniqueRows).toHaveLength(2) + expect(metrics.collisionRects[0].width).toBeCloseTo(metrics.content.width, 0) + expect(metrics.collisionRects[0].left).toBeCloseTo(metrics.content.left, 0) + expect(metrics.collisionRects[0].right).toBeCloseTo(metrics.content.right, 0) + expect(metrics.collisionRects[1].width).toBeCloseTo(metrics.collisionRects[2].width, 0) + expect(metrics.collisionRects[1].left).toBeCloseTo(metrics.content.left, 0) + expect(metrics.collisionRects[2].right).toBeCloseTo(metrics.content.right, 0) + expect(metrics.collisionRects[1].right).toBeCloseTo(metrics.collisionRects[2].left, 0) expect(metrics.directions.calendar).toBe('row') expect(metrics.directions.weather).toBe('column') expect(metrics.directions.gold).toBe('column') @@ -207,7 +218,7 @@ test('Today plain-list layout matches the approved responsive geometry', async ( } } if (width >= 721) { - expect(metrics.content.width).toBeLessThanOrEqual(width >= 1440 ? 900 : 721) + expect(metrics.content.width).toBeLessThanOrEqual(width >= 1440 ? 1080 : 721) expect(Math.abs(metrics.content.left - (metrics.main.left + (metrics.main.width - metrics.content.width) / 2))).toBeLessThanOrEqual(2) } } diff --git a/frontend/src/TodayEnvironment.test.ts b/frontend/src/TodayEnvironment.test.ts index 17245d1..9e5369c 100644 --- a/frontend/src/TodayEnvironment.test.ts +++ b/frontend/src/TodayEnvironment.test.ts @@ -59,7 +59,8 @@ describe('Today environment integration', () => { expect(app).toContain("'today-active': activeView==='today'") expect(css).toContain('.shell.today-active .unified-fab{box-shadow:0 8px 18px rgba(174,65,29,.22)}') expect(css).not.toContain('\n.unified-fab{box-shadow:0 8px 18px rgba(174,65,29,.22)}') - expect(css).toContain('main.today-main{padding-left:max(44px,calc((100% - 900px)/2));padding-right:max(44px,calc((100% - 900px)/2))}') + expect(css).toContain('main.today-main{padding-left:max(44px,calc((100% - 1080px)/2));padding-right:max(44px,calc((100% - 1080px)/2))}') + expect(css).toContain('.today-environment{grid-template-columns:repeat(3,minmax(0,1fr));') expect(css).toContain('@media(max-width:930px){main.today-main{padding-left:max(44px,calc((100% - 630px)/2));padding-right:max(44px,calc((100% - 630px)/2))}}') expect(css).toContain('@media(max-width:720.98px){main.today-main{padding-left:29px!important;padding-right:29px!important}') expect(css).toContain('.today-context{margin:0 0 14px;border-bottom:0}') diff --git a/frontend/src/style.css b/frontend/src/style.css index a54e9c2..fd7a646 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -5,7 +5,7 @@ *{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;background:#f8f3e8}button,input,textarea,select{font:inherit;color:inherit}@media(max-width:800px){input,textarea,select{font-size:16px}}button{cursor:pointer}svg{width:18px;height:18px;stroke-width:1.8}.center,.auth-shell{min-height:100vh;display:grid;place-items:center}.center{gap:12px;align-content:center;color:var(--muted)}.loading-brand{grid-template-columns:auto;justify-items:center;gap:13px}.loading-logo{width:40px;height:40px;display:block;margin-bottom:3px}.loading-brand>span:last-child{font-size:13px}.loader{width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}} .auth-shell{background:var(--surface-canvas)}.auth-card{width:min(390px,90vw);padding:38px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);display:grid;gap:16px}.brand{display:inline-flex;align-items:center;gap:11px;font-size:40px;font-weight:850;letter-spacing:-3px}.brand-wordmark{color:var(--text-primary)}.brand-logo{width:42px;height:42px;flex:0 0 auto;display:block}.brand.small{font-size:29px;gap:9px}.brand.small .brand-logo{width:32px;height:32px}.auth-card p{margin:0 0 8px;color:var(--muted)}.auth-card label,.detail-form>label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#756d61}.auth-card input,.detail-form input,.detail-form select{width:100%;border:1px solid var(--line);background:#fff;padding:11px;border-radius:9px;outline:none}.auth-card input:focus,.detail-form input:focus,.detail-form select:focus,.detail-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(241,90,41,.1)}.primary{border:0;background:var(--accent);color:#fff;padding:12px;border-radius:9px;font-weight:700;box-shadow:0 5px 12px rgba(241,90,41,.2)}.auth-card small{color:var(--danger)} .shell{height:100vh;display:grid;grid-template-columns:236px minmax(430px,1fr) 0;background:var(--paper);overflow:hidden;transition:grid-template-columns .22s ease}.shell.detail-open{grid-template-columns:236px minmax(430px,1fr) 350px}.shell.sidebar-collapsed{grid-template-columns:0 minmax(430px,1fr) 0}.shell.sidebar-collapsed.detail-open{grid-template-columns:0 minmax(430px,1fr) 350px}.shell.sidebar-collapsed .sidebar{width:0;min-width:0;overflow:hidden;border-right:0;padding:0}.sidebar{border-right:1px solid #e4d5c3;background:#f7efe3;display:flex;flex-direction:column;min-height:0;overflow:hidden}.brand-row{height:68px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(222,205,185,.75)}.primary-nav{display:grid;padding:10px 11px 8px;gap:2px}.primary-nav button,.sidebar-management button{position:relative;display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:0 12px;min-height:44px;border-radius:11px;color:#655b50;text-align:left}.primary-nav button:hover,.sidebar-management button:hover,.list-row:hover,.folder-row>button:hover{background:rgba(255,255,255,.68)}.primary-nav button.active{background:#f9e2d5;color:#b63c1b;font-weight:750}.list-row.active{background:#fff8ef;color:#bc431f;box-shadow:inset 0 0 0 1px #ead5c4}.sidebar-management button.active{background:#f9e2d5;color:#b63c1b;font-weight:750}.primary-nav button.active::before,.list-row.active::before,.sidebar-management button.active::before{content:"";position:absolute;left:2px;top:50%;width:3px;height:18px;border-radius:999px;background:var(--accent);transform:translateY(-50%)}.section-title{padding:14px 15px 5px 20px;display:flex;justify-content:space-between;align-items:center;color:#958b7d;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:750}.section-title>span:last-child{display:flex}.mini-icon,.row-actions button{min-width:44px;min-height:44px;border:0;background:transparent;padding:4px;color:#8e8477}.mini-icon svg,.row-actions svg{width:14px;height:14px}.folders{flex:1;min-height:0;padding:0 10px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}.folders::-webkit-scrollbar{display:none}.folder-row,.list-row{position:relative;display:flex;align-items:center;border-radius:8px}.folder-row>button,.list-row-main{flex:1;min-width:0;min-height:44px;border:0;background:transparent;padding:0 8px;display:flex;align-items:center;gap:7px;color:#6d6559;text-align:left}.folder-row>button>span,.list-row-main>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-row>button svg{width:14px}.row-actions{display:flex;position:absolute;right:0;opacity:0;pointer-events:none;transition:opacity .15s}.folder-row:hover .row-actions,.folder-row:focus-within .row-actions,.list-row:hover .row-actions,.list-row:focus-within .row-actions{opacity:1;pointer-events:auto}.list-row-main{width:100%;min-height:44px;padding:8px 7px 8px 31px;color:#665f55}.draggable-list-row-main{padding-left:0}.list-row.active .list-row-main{color:inherit}.sidebar-create-wrap{position:relative}.sidebar-popover{position:absolute;z-index:12;display:grid;min-width:148px;padding:6px;background:#fffdf8;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 28px rgba(78,58,34,.14);text-transform:none;letter-spacing:0}.sidebar-create-menu{top:40px;right:0}.sidebar-popover button{min-height:38px;border:0;background:transparent;border-radius:8px;padding:7px 10px;display:flex;align-items:center;gap:8px;color:#665e52;text-align:left;white-space:nowrap;font-size:12px}.sidebar-popover button:hover{background:#fbf0e8}.sidebar-popover svg{width:15px;height:15px}.sidebar-action-mask{position:fixed;z-index:70;inset:0;display:flex;align-items:flex-end}.sidebar-management{display:grid;gap:2px;margin:8px 12px max(12px,env(safe-area-inset-bottom));padding-top:8px;border-top:1px solid rgba(218,207,190,.82)}.mobile-only,.bottom{display:none}.scrim{display:none} -main{container-type:inline-size;min-width:0;padding:27px 34px 50px;overflow:auto;background:var(--surface-base)}@media(min-width:931px){main{scrollbar-width:none}main::-webkit-scrollbar{display:none}}.topbar{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"menu title filter" "search search search";align-items:center;column-gap:14px;row-gap:12px;margin-bottom:18px}.topbar>.icon{grid-area:menu}.topbar-title{grid-area:title;min-width:0;width:100%}.topbar p{margin:0;color:var(--muted);font-size:12px}.topbar h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:27px;margin:0;letter-spacing:-.03em}.search-reveal{grid-area:search;width:100%;min-width:0}.search-pull-hint{display:none}.topbar .search{width:100%;margin:0}.topbar-actions{grid-area:filter;justify-self:end;display:flex;align-items:center;gap:8px}.topbar-filter{justify-self:end;flex:none}.topbar-refresh{width:44px;height:44px;min-width:44px;border-radius:50%;color:var(--text-secondary)}.topbar-refresh:hover:not(:disabled){background:var(--surface-raised);color:var(--text-primary)}.topbar-refresh:disabled{opacity:.5;cursor:not-allowed}.topbar-refresh.spinning svg{animation:topbar-refresh-spin .7s linear infinite}@keyframes topbar-refresh-spin{to{transform:rotate(360deg)}}.completed-filter-pill{min-width:132px;height:36px;padding:0 8px 0 12px;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border-cream);border-radius:999px;background:var(--surface-raised);box-shadow:var(--highlight-inner);color:#675f54;font-size:12px;font-weight:650;white-space:nowrap}.completed-filter-pill:hover:not(:disabled){background:#fff7eb;border-color:#d8c6ae}.completed-filter-pill:active:not(:disabled){transform:scale(.985)}.completed-filter-pill:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.completed-filter-pill:disabled{opacity:.55;cursor:not-allowed}.completed-filter-pill__track{width:32px;height:18px;flex:0 0 auto;padding:2px;border-radius:999px;background:#d8cbb9;transition:background .15s ease}.completed-filter-pill__thumb{display:block;width:14px;height:14px;border-radius:50%;background:#fffdf8;transform:translateX(0);transition:transform .15s ease}.completed-filter-pill[aria-checked="true"] .completed-filter-pill__track{background:var(--accent)}.completed-filter-pill[aria-checked="true"] .completed-filter-pill__thumb{transform:translateX(14px)}main.today-main{padding-left:max(44px,calc((100% - 900px)/2));padding-right:max(44px,calc((100% - 900px)/2))}.today-context{margin:0 0 14px;border-bottom:0}.today-page-title{margin:28px 0 8px;font-size:34px;font-weight:700;line-height:1.15;letter-spacing:-.04em}.today-remaining{margin:0 0 24px;color:var(--muted);font-size:13px}.today-inline-filter{margin:0 0 14px auto}.today-context .completed-filter-pill{min-width:0;width:87px;height:36px;padding:0;justify-content:flex-end;gap:7px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#8a8178;font-weight:400}.today-context .completed-filter-pill__track{width:30px;height:18px}.today-section-anchor{scroll-margin-top:16px}.search{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;background:#faf7f0;border:1px solid var(--line);border-radius:9px;color:var(--muted)}.search input{min-width:0;width:100%;border:0;outline:0;background:transparent}.search kbd{font-size:10px;white-space:nowrap;border:1px solid var(--line);padding:2px 4px;border-radius:4px}.list-toolbar{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px}.list-toolbar-actions,.habit-reorder-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px}.reorder-mode-toggle{min-height:44px}.link{border:0;background:transparent;color:var(--accent);padding:3px;display:inline-flex;gap:3px;align-items:center}.link svg{width:14px}.task-list{transition:opacity .2s}.task-list.loading{opacity:.45}.task-row{border-left:0;--swipe-x:0px;min-height:53px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:4px 8px;transition:background .15s,transform .18s ease;position:relative;overflow:hidden;isolation:isolate}.task-row.swipeable{touch-action:pan-y;transform:translate(var(--swipe-x),var(--reorder-y,0px))}.task-row.swipeable:not([style*="0px"]){transition:none}.task-row:hover,.task-row.selected{background:rgba(250,240,229,.75)}.task-row:hover:not(.reordering){transform:translate(calc(var(--swipe-x) + 2px),var(--reorder-y,0px))}.check{width:19px;height:19px;flex:0 0 19px;border:1.6px solid #c6baa8;background:#fff;border-radius:5px;padding:0;display:grid;place-items:center}.check svg{width:13px}.task-check{width:44px;height:44px;flex:0 0 44px;border:0;background:transparent;padding:0;display:grid;place-items:center;border-radius:9px}.task-check-mark{width:19px;height:19px;border:1.6px solid #c6baa8;background:#fff;border-radius:50%;display:grid;place-items:center;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}.task-check-mark svg{width:13px}.task-check:hover .task-check-mark{transform:scale(1.06);border-color:#9d8f7b}.task-check:focus-visible{outline:2px solid rgba(241,90,41,.32);outline-offset:1px}.task-check[aria-pressed="true"] .task-check-mark{background:#71856b;border-color:#71856b;color:#fff}.task-check-mark.p1{border-color:#4b93d1}.task-check-mark.p2{border-color:#d79b25}.task-check-mark.p3{border-color:#dc4b30}.check.p1{border-color:#4b93d1}.check.p2{border-color:#d79b25}.check.p3{border-color:#dc4b30}.done .check{background:#afa595;color:white}.task-main{border:0;background:transparent;flex:1;min-width:0;text-align:left;padding:8px 0}.task-main strong{display:block;font-size:14px;font-weight:590;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.done .task-main strong{text-decoration:line-through;color:#9b9388}.meta{display:inline-flex;align-items:center;gap:9px;color:#9b9286;font-size:11px;margin-top:3px}.meta-item{display:flex;align-items:center;gap:3px}.meta svg{width:12px}.priority{display:inline-flex;margin:3px 0 0 7px;font-size:10px;font-weight:750;padding:3px 6px;border-radius:5px}.priority.p1{color:#3f80ba;background:#e5f2fc}.priority.p2{color:#a56b05;background:#fff1cb}.priority.p3{color:#bd3827;background:#fde2dc}.icon,.ghost{min-width:44px;min-height:44px;border:0;background:transparent;display:grid;place-items:center;padding:5px;border-radius:6px}.mobile-only{display:none}.ghost{opacity:0;color:#9d9387}.task-row:hover .ghost{opacity:1}.ghost:hover{color:var(--danger);background:#fce7e2}.restore{display:flex;align-items:center;gap:5px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:7px;padding:6px 8px;font-size:12px}.restore svg{width:14px}.subtask{padding-left:53px;min-height:42px;color:#6d655b}.subtask>svg{width:13px;color:#bbb0a2}.empty{min-height:300px;display:grid;place-items:center;align-content:center;gap:8px;color:#aaa094;text-align:center}.empty>svg{width:38px;height:38px;color:#d8cabb}.empty b{color:#6f675c}.empty span{font-size:13px}.today-filtered-empty-note{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 6px 2px 14px;border:1px solid var(--line);border-radius:10px;background:#fffaf4;color:var(--muted);font-size:13px}.today-filtered-empty-note .link{min-width:44px;min-height:44px;padding:0 10px} +main{container-type:inline-size;min-width:0;padding:27px 34px 50px;overflow:auto;background:var(--surface-base)}@media(min-width:931px){main{scrollbar-width:none}main::-webkit-scrollbar{display:none}}.topbar{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"menu title filter" "search search search";align-items:center;column-gap:14px;row-gap:12px;margin-bottom:18px}.topbar>.icon{grid-area:menu}.topbar-title{grid-area:title;min-width:0;width:100%}.topbar p{margin:0;color:var(--muted);font-size:12px}.topbar h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:27px;margin:0;letter-spacing:-.03em}.search-reveal{grid-area:search;width:100%;min-width:0}.search-pull-hint{display:none}.topbar .search{width:100%;margin:0}.topbar-actions{grid-area:filter;justify-self:end;display:flex;align-items:center;gap:8px}.topbar-filter{justify-self:end;flex:none}.topbar-refresh{width:44px;height:44px;min-width:44px;border-radius:50%;color:var(--text-secondary)}.topbar-refresh:hover:not(:disabled){background:var(--surface-raised);color:var(--text-primary)}.topbar-refresh:disabled{opacity:.5;cursor:not-allowed}.topbar-refresh.spinning svg{animation:topbar-refresh-spin .7s linear infinite}@keyframes topbar-refresh-spin{to{transform:rotate(360deg)}}.completed-filter-pill{min-width:132px;height:36px;padding:0 8px 0 12px;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border-cream);border-radius:999px;background:var(--surface-raised);box-shadow:var(--highlight-inner);color:#675f54;font-size:12px;font-weight:650;white-space:nowrap}.completed-filter-pill:hover:not(:disabled){background:#fff7eb;border-color:#d8c6ae}.completed-filter-pill:active:not(:disabled){transform:scale(.985)}.completed-filter-pill:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.completed-filter-pill:disabled{opacity:.55;cursor:not-allowed}.completed-filter-pill__track{width:32px;height:18px;flex:0 0 auto;padding:2px;border-radius:999px;background:#d8cbb9;transition:background .15s ease}.completed-filter-pill__thumb{display:block;width:14px;height:14px;border-radius:50%;background:#fffdf8;transform:translateX(0);transition:transform .15s ease}.completed-filter-pill[aria-checked="true"] .completed-filter-pill__track{background:var(--accent)}.completed-filter-pill[aria-checked="true"] .completed-filter-pill__thumb{transform:translateX(14px)}main.today-main{padding-left:max(44px,calc((100% - 1080px)/2));padding-right:max(44px,calc((100% - 1080px)/2))}.today-context{margin:0 0 14px;border-bottom:0}.today-page-title{margin:28px 0 8px;font-size:34px;font-weight:700;line-height:1.15;letter-spacing:-.04em}.today-remaining{margin:0 0 24px;color:var(--muted);font-size:13px}.today-inline-filter{margin:0 0 14px auto}.today-context .completed-filter-pill{min-width:0;width:87px;height:36px;padding:0;justify-content:flex-end;gap:7px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#8a8178;font-weight:400}.today-context .completed-filter-pill__track{width:30px;height:18px}.today-section-anchor{scroll-margin-top:16px}.search{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;background:#faf7f0;border:1px solid var(--line);border-radius:9px;color:var(--muted)}.search input{min-width:0;width:100%;border:0;outline:0;background:transparent}.search kbd{font-size:10px;white-space:nowrap;border:1px solid var(--line);padding:2px 4px;border-radius:4px}.list-toolbar{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px}.list-toolbar-actions,.habit-reorder-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px}.reorder-mode-toggle{min-height:44px}.link{border:0;background:transparent;color:var(--accent);padding:3px;display:inline-flex;gap:3px;align-items:center}.link svg{width:14px}.task-list{transition:opacity .2s}.task-list.loading{opacity:.45}.task-row{border-left:0;--swipe-x:0px;min-height:53px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:4px 8px;transition:background .15s,transform .18s ease;position:relative;overflow:hidden;isolation:isolate}.task-row.swipeable{touch-action:pan-y;transform:translate(var(--swipe-x),var(--reorder-y,0px))}.task-row.swipeable:not([style*="0px"]){transition:none}.task-row:hover,.task-row.selected{background:rgba(250,240,229,.75)}.task-row:hover:not(.reordering){transform:translate(calc(var(--swipe-x) + 2px),var(--reorder-y,0px))}.check{width:19px;height:19px;flex:0 0 19px;border:1.6px solid #c6baa8;background:#fff;border-radius:5px;padding:0;display:grid;place-items:center}.check svg{width:13px}.task-check{width:44px;height:44px;flex:0 0 44px;border:0;background:transparent;padding:0;display:grid;place-items:center;border-radius:9px}.task-check-mark{width:19px;height:19px;border:1.6px solid #c6baa8;background:#fff;border-radius:50%;display:grid;place-items:center;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}.task-check-mark svg{width:13px}.task-check:hover .task-check-mark{transform:scale(1.06);border-color:#9d8f7b}.task-check:focus-visible{outline:2px solid rgba(241,90,41,.32);outline-offset:1px}.task-check[aria-pressed="true"] .task-check-mark{background:#71856b;border-color:#71856b;color:#fff}.task-check-mark.p1{border-color:#4b93d1}.task-check-mark.p2{border-color:#d79b25}.task-check-mark.p3{border-color:#dc4b30}.check.p1{border-color:#4b93d1}.check.p2{border-color:#d79b25}.check.p3{border-color:#dc4b30}.done .check{background:#afa595;color:white}.task-main{border:0;background:transparent;flex:1;min-width:0;text-align:left;padding:8px 0}.task-main strong{display:block;font-size:14px;font-weight:590;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.done .task-main strong{text-decoration:line-through;color:#9b9388}.meta{display:inline-flex;align-items:center;gap:9px;color:#9b9286;font-size:11px;margin-top:3px}.meta-item{display:flex;align-items:center;gap:3px}.meta svg{width:12px}.priority{display:inline-flex;margin:3px 0 0 7px;font-size:10px;font-weight:750;padding:3px 6px;border-radius:5px}.priority.p1{color:#3f80ba;background:#e5f2fc}.priority.p2{color:#a56b05;background:#fff1cb}.priority.p3{color:#bd3827;background:#fde2dc}.icon,.ghost{min-width:44px;min-height:44px;border:0;background:transparent;display:grid;place-items:center;padding:5px;border-radius:6px}.mobile-only{display:none}.ghost{opacity:0;color:#9d9387}.task-row:hover .ghost{opacity:1}.ghost:hover{color:var(--danger);background:#fce7e2}.restore{display:flex;align-items:center;gap:5px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:7px;padding:6px 8px;font-size:12px}.restore svg{width:14px}.subtask{padding-left:53px;min-height:42px;color:#6d655b}.subtask>svg{width:13px;color:#bbb0a2}.empty{min-height:300px;display:grid;place-items:center;align-content:center;gap:8px;color:#aaa094;text-align:center}.empty>svg{width:38px;height:38px;color:#d8cabb}.empty b{color:#6f675c}.empty span{font-size:13px}.today-filtered-empty-note{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 6px 2px 14px;border:1px solid var(--line);border-radius:10px;background:#fffaf4;color:var(--muted);font-size:13px}.today-filtered-empty-note .link{min-width:44px;min-height:44px;padding:0 10px} .drag-handle{width:44px;min-width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:0;background:transparent;color:#b3a795;cursor:grab;touch-action:none;border-radius:8px}.drag-handle:active{cursor:grabbing}.drag-handle:disabled{opacity:.3;cursor:not-allowed}.drag-handle svg{width:17px;height:17px}.reordering{opacity:.78;z-index:4;box-shadow:0 12px 28px rgba(78,58,34,.18)!important;transition:none!important;pointer-events:none}.reorder-target{box-shadow:inset 0 2px 0 var(--accent)} .list-drag-handle{width:44px;min-width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:#ad9f8c;cursor:grab;touch-action:none;border-radius:8px}.list-drag-handle svg{width:15px;height:15px}.list-row{touch-action:pan-y}.list-row.list-dragging{position:relative;z-index:8;opacity:.8;box-shadow:0 10px 24px rgba(78,58,34,.2);transform:translateY(var(--list-drag-y));transition:none;pointer-events:none;background:#fffaf4}.folder-row.list-drop-target{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}.list-root-drop.list-drop-target{background:var(--accent-soft);color:#b7421e;border-radius:9px}.list-row.list-reorder-target{box-shadow:inset 0 2px 0 var(--accent)}.list-move-menu{display:grid;gap:2px;padding:0}.list-move-menu button{min-height:44px}.list-move-menu button:disabled,.sidebar-action-sheet .app-sheet__body button:disabled{opacity:.55;cursor:default}.sidebar-action-sheet{width:min(320px,calc(100vw - 24px));margin:12px;border:1px solid var(--border-cream);border-radius:18px;box-shadow:var(--highlight-inner),var(--shadow-raised);overflow:hidden}.sidebar-action-header.app-sheet__header,.sidebar-action-move-view.app-sheet__header{align-items:flex-start;min-height:64px;padding:13px 14px 12px}.sidebar-action-header>div,.sidebar-action-move-view>div{min-width:0;display:grid;gap:2px}.sidebar-action-header b,.sidebar-action-move-view b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.sidebar-action-kind,.sidebar-action-group-title{font-size:11px;font-weight:750;letter-spacing:.04em;color:var(--muted)}.sidebar-action-body.app-sheet__body{gap:8px;padding:10px}.sidebar-action-group{display:grid;gap:2px;padding:6px;border:1px solid var(--border-cream);border-radius:14px;background:#fffaf4}.sidebar-action-group button,.sidebar-action-danger button,.list-move-menu button{width:100%;min-height:44px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:0;border-radius:11px;background:transparent;padding:0 10px;text-align:left}.sidebar-action-group button:hover:not(:disabled),.list-move-menu button:hover:not(:disabled){background:#fff3e6}.sidebar-action-group button span,.sidebar-action-danger button span,.list-move-menu button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-action-chevron{color:#b3a795}.sidebar-action-up{transform:rotate(180deg)}.sidebar-action-danger{border-top:1px solid #efd6cf;padding:9px 6px 6px;display:grid;gap:7px}.sidebar-action-danger>span{font-size:11px;line-height:1.4;color:#9a6a5f;padding:0 4px}.sidebar-action-danger button.danger{color:var(--danger);background:#fff6f2}.sidebar-action-move-back{min-height:44px;width:44px;border:0;border-radius:12px;background:transparent;color:#8a7e70;display:grid;place-items:center}.sidebar-action-move-back svg{transform:rotate(180deg)}.list-move-current{background:#fbe6dc!important;color:#7b351e;font-weight:750} .archived-lists{position:relative;margin-top:4px}.archived-lists-toggle{min-height:44px;width:100%;display:flex;align-items:center;gap:8px;border:0;border-radius:9px;background:transparent;padding:0 12px;color:#81786c;text-align:left;font-size:12px;font-weight:650}.archived-lists-toggle:hover:not(:disabled){background:rgba(255,255,255,.52)}.archived-lists-toggle:focus-visible,.archived-row-menu-trigger:focus-visible,.archived-row-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.archived-lists-toggle:disabled{cursor:default;color:#aaa196}.archived-lists-toggle svg{width:15px;height:15px;transition:transform .16s ease}.archived-lists-toggle svg.expanded{transform:rotate(90deg)}.archived-list-items{display:grid;transition:opacity .16s ease}.archived-row{min-height:44px;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;padding-left:35px;color:#746c61}.archived-row-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.archived-row-menu{display:grid;place-items:center}.archived-row-menu-trigger{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#8e8477}.archived-row-menu-trigger svg{width:15px;height:15px}.archived-action-mask{display:contents}.archived-row-actions{position:fixed;z-index:70;width:164px;display:grid;gap:2px;padding:6px;background:#fffdf8;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.archived-row-actions button{min-height:44px;display:flex;align-items:center;gap:9px;border:0;border-radius:8px;background:transparent;padding:8px 10px;text-align:left;font-size:12px}.archived-row-actions button:hover{background:#f8f1e8}.archived-row-actions svg{width:15px;height:15px}@media(max-width:930px){.archived-action-mask{display:block;position:fixed;z-index:60;inset:0;background:rgba(45,38,31,.3)}.archived-row-actions{position:fixed;z-index:61;left:0;right:0;top:auto;bottom:0;width:100%;padding:12px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}.archived-row-actions button{font-size:14px}}@media(prefers-reduced-motion:reduce){.archived-lists-toggle svg,.archived-list-items{transition:none}} @@ -119,7 +119,7 @@ input,select,textarea,.search{background:var(--surface-raised);border-color:var( /* Approved Today plain-list prototype parity. */ main.today-main .topbar{margin-bottom:18px} -.today-environment{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);align-items:center;gap:0;padding:0 0 18px;border-bottom:1px solid #e8e0d5;color:#8a8178} +.today-environment{grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:0;padding:0 0 18px;border-bottom:1px solid #e8e0d5;color:#8a8178} .today-environment__item{height:36px;padding:0 0 0 18px;justify-content:flex-start} .today-environment__item:first-child{padding-left:0} .today-environment__calendar{flex-direction:row;align-items:baseline;gap:8px}