/* Phone layouts, layered over the shared Sortit-inspired desktop theme. */
@media(max-width:760px), (max-width:1000px) and (max-height:500px){.phone-view-options{margin:0 0 18px;border-bottom:1px solid var(--line)}.phone-view-options>summary{min-height:44px;font-size:13px;color:var(--muted)}.phone-view-options .toolbar{margin:8px 0 16px}.phone-nav-group{margin:8px 0}.phone-nav-group>summary{min-height:46px;color:var(--muted);font-size:13px}.phone-settings-group>summary{min-height:44px;font-size:16px;color:var(--ink)}.phone-settings-group>section{padding-top:16px}.phone-settings-group.panel{padding-top:12px;padding-bottom:12px}#main>.add-inline{display:none}.task-row .row-more{display:none!important}.task-content{cursor:pointer}body[data-view=today] .overview{margin-bottom:8px}body[data-view=focus] .focus-screen>.eyebrow,body[data-view=focus] .focus-screen>h2{display:none}body[data-view=focus] .focus-screen{padding-top:14px}.phone-settings-group [hidden]{display:none!important}}
/* Quick capture: only a name is required; the full editor stays available. */
#editor.quick-create{max-width:540px}.quick-create .modal-head small,.quick-create label[for=task-title]{display:none}.quick-create .title-input{font-size:23px;padding:12px 0;border:0;box-shadow:none}.quick-task-context{font-size:12px;color:var(--muted);margin:2px 0 16px}.quick-task-dates{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.quick-task-dates button{border-radius:20px;min-height:44px;font-size:13px;padding:8px 14px}.quick-task-dates button[aria-pressed=true]{background:var(--soft);color:var(--accent);border-color:var(--accent)}.quick-date-picker:not([hidden]){display:flex;align-items:center;gap:12px;margin:12px 0}.quick-date-picker .field{flex:1;margin:0}.quick-date-picker button{margin-top:20px;min-height:44px}.new-task-options{border-top:1px solid var(--line)}.new-task-options>summary{color:var(--muted);min-height:48px}.new-task-options-body{padding-top:14px}.new-task-options-body>.divider:first-of-type{display:none}.quick-create .form-actions{margin-top:8px}.quick-create .editor-notes{min-height:64px}.quick-create .new-task-options-body>.form-grid{grid-template-columns:1fr 1fr}.quick-create .new-task-options-body>.form-grid .field:last-child{grid-column:1/-1}@media(max-width:760px), (max-width:1000px) and (max-height:500px){#editor.quick-create{max-width:100%}.quick-create .title-input{font-size:22px}.quick-task-dates{gap:6px}.quick-task-dates button{padding:8px 12px}.quick-create .modal-head{margin-bottom:0}.quick-create .form-actions{margin-top:4px}}
#mobile-nav,#mobile-account,#close-navigation,.board-status-tabs{display:none}
html{scrollbar-gutter:stable}body{overscroll-behavior-y:none}button,a,input,select,textarea,summary{touch-action:manipulation}button,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{min-height:40px}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500}summary::before{content:'›';font-size:21px;color:var(--muted);transition:transform .15s}details[open]>summary::before{transform:rotate(90deg)}summary::-webkit-details-marker{display:none}
.modal-head h2{overflow-wrap:anywhere}.nav-item>span:not(.count){min-width:0;overflow-wrap:anywhere}.project-row>span{min-width:0;overflow-wrap:anywhere}.attachment{min-width:0}.attachment .text-button{min-width:0;flex:1;text-align:left;justify-content:flex-start;overflow-wrap:anywhere}.comment,.activity-row>div{min-width:0;overflow-wrap:anywhere}.form-actions{flex-wrap:wrap}.editor-advanced{margin-top:12px}.editor-advanced>.form-grid{padding-top:15px}.editor-error{margin-top:10px}.quick-dates{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 17px}.quick-dates button{font-size:12px;min-height:36px;border-radius:20px}.field-hint{font-size:11px;color:var(--muted);margin-top:6px}.push-status{padding:13px 15px;background:var(--bg);border-radius:10px;margin:12px 0;font-size:13px;line-height:1.6}.push-actions{display:flex;flex-wrap:wrap;gap:8px}.install-steps{margin:15px 0;padding-left:22px;font-size:13px;line-height:1.8;color:var(--muted)}.install-steps li{padding-left:4px;margin:8px 0}.save-indicator{width:6px;height:6px;background:var(--green);border-radius:50%}.task-row .check{position:relative;width:40px;height:40px;min-height:40px;border:0!important;background:transparent!important}.task-row .check::before{content:'';position:absolute;width:19px;height:19px;inset:0;margin:auto;border:1.5px solid #a7a7b0;border-radius:50%}.task-row .check.p1::before{border-color:var(--red)}.task-row .check.p2::before{border-color:#bb872c}.task-row .check.p3::before{border-color:var(--accent)}.task-row .check.checked::before{background:var(--green);border-color:var(--green)}.task-row .check svg{z-index:1}.task-row .check::after{display:none}.task-content{min-height:40px;display:flex;flex-direction:column;justify-content:center}.select-task{flex-shrink:0}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 html{scrollbar-gutter:auto}body{--nav-height:72px;--page-x:18px;font-size:15px}.workspace{min-height:100dvh}.topbar{position:sticky;top:0;z-index:12;height:calc(66px + env(safe-area-inset-top));padding:env(safe-area-inset-top) var(--page-x) 0;gap:12px;background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(18px);border-bottom:0}.breadcrumb,#menu,#add-button{display:none!important}.top-right{margin-left:auto;gap:4px}.topbar #search-button{width:44px;min-height:44px;background:var(--paper);border:1px solid var(--line);border-radius:50%}#mobile-account{display:flex;gap:9px;padding:0;border:0;background:none;min-height:48px;justify-content:flex-start;font-size:14px;text-align:left;font-weight:600}#mobile-account .account-avatar{width:35px;height:35px;font-size:14px}#mobile-account small{display:block;font-size:10px;font-weight:400;letter-spacing:.2px;margin-top:3px}
 main{padding:20px var(--page-x) calc(var(--nav-height) + env(safe-area-inset-bottom) + 30px);margin:0;min-width:0}h1{font-size:31px;letter-spacing:-1px;overflow-wrap:anywhere}h2{font-size:20px}.page-head{margin-bottom:23px;align-items:flex-start;flex-wrap:wrap;gap:12px}.page-head>div:first-child{min-width:0}.page-head p{font-size:14px;line-height:1.5;margin-top:7px;color:var(--muted)}.page-head .eyebrow{display:none}.page-head .head-actions{width:100%}.head-actions button{min-height:44px;font-size:13px}.page-footer,.bottom-note{display:none}.eyebrow{font-size:11px}.hint{font-size:12px;line-height:1.6}
 #mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:15;padding:7px 9px calc(7px + env(safe-area-inset-bottom));height:calc(var(--nav-height) + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--paper) 95%,transparent);backdrop-filter:blur(20px);border-top:1px solid var(--line);box-shadow:0 -3px 20px #00000004}.mobile-tab{border:0;background:transparent;padding:4px;min-height:54px;display:flex;flex-direction:column;gap:5px;color:var(--muted);border-radius:12px}.mobile-tab small{font-size:10px;color:inherit;line-height:1.1}.mobile-tab svg{width:22px;height:22px}.mobile-tab.active{color:var(--accent)}.mobile-tab.mobile-add>span{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:#0071e3;color:white;box-shadow:0 4px 12px #0071e329}.mobile-add svg{width:25px;height:25px}.mobile-tab:hover{background:var(--blue-soft)}
 body[data-view=today] .overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:24px}body[data-view=today] .overview .stat{padding:13px 11px;border-radius:12px;min-width:0}body[data-view=today] .stat-top{font-size:11px;line-height:1.25}body[data-view=today] .stat-top svg,body[data-view=today] .stat small,body[data-view=today] .focus-card{display:none}body[data-view=today] .stat-value{font-size:25px;margin-top:8px}body[data-view=today] .progress-track{margin-top:9px}.overview .stat{padding:17px}.overview .stat-top{font-size:12px}.overview .stat small{font-size:11px}.overview .focus-card button{min-height:44px;font-size:12px}
 .toolbar{gap:12px;margin-bottom:19px}.view-switch{width:100%;display:grid;grid-template-columns:repeat(3,1fr);border-radius:11px;padding:4px}.view-switch button{min-height:40px;font-size:13px;padding:8px;gap:7px;border-radius:8px}.view-switch button svg{width:17px;height:17px}.tools{width:100%;justify-content:space-between;gap:8px}.tools button{font-size:12px;min-height:44px;padding:10px 12px;border-radius:9px;white-space:nowrap}.tools select{font-size:16px;min-height:44px;min-width:0;max-width:44%;padding:8px 6px;background:transparent;border:0}body[data-view=plan] .view-switch,body[data-view=plan] .tools select{display:none}body[data-view=plan] .tools{justify-content:flex-end}body[data-view=plan] .toolbar{margin-top:-10px;margin-bottom:12px}
 .section-title{font-size:13px;margin:21px 0 10px;gap:7px;flex-wrap:wrap}.section-title .badge{font-size:11px}.section-title .section-extra{font-size:12px;min-height:36px}.task-list{border-radius:14px}.task-row{padding:12px 6px;min-height:81px;gap:4px;align-items:center}.task-row .check{width:44px;height:44px;min-height:44px}.task-title{font-size:15px;line-height:1.4}.task-meta{font-size:11px;gap:6px;margin-top:7px}.task-meta svg{width:13px;height:13px}.task-content{min-width:0;min-height:48px}.task-row .row-more{width:40px!important;min-height:44px;padding:9px;opacity:1;align-self:center}.task-project{display:none}.label-chip{max-width:100%;overflow-wrap:anywhere;white-space:normal}.select-task{width:22px;min-height:22px;margin:0 2px 0 7px}.task-row:has(.select-task){gap:0}.task-row:has(.select-task) .row-more{display:none}.add-inline{font-size:14px;min-height:50px;padding:13px 16px;border-radius:12px;margin-top:12px}.add-inline kbd{display:none}.empty-state{padding:30px 18px;border-radius:16px}.empty-state h2{font-size:18px}.empty-state p{font-size:13px}.empty-state button{min-height:44px;font-size:14px}.empty-illustration{width:54px;height:54px;border-radius:18px;margin-bottom:16px}.bulkbar{padding:12px;gap:7px;border-radius:12px;font-size:13px}.bulkbar button{min-height:44px;font-size:12px;flex:1 0 auto}.bulkbar>span{width:100%}
 .board-status-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 12px}.board-status-tabs button{min-height:44px;font-size:13px;background:var(--paper);border-radius:10px;padding:8px 6px;gap:6px}.board-status-tabs button[aria-pressed=true]{border-color:var(--accent);background:var(--blue-soft);color:var(--accent)}.board-status-tabs small{font-size:11px;color:inherit}.board{display:block;overflow:visible;padding:0}.board-column{display:none;padding:12px;border-radius:14px;min-height:200px}.board[data-mobile-status=todo] [data-drop-status=todo],.board[data-mobile-status=doing] [data-drop-status=doing],.board[data-mobile-status=done] [data-drop-status=done]{display:block}.board-column .task-row{padding:10px 4px;align-items:center;flex-wrap:nowrap;gap:2px}.board-column .task-content{min-width:0}.board-column .section-title{margin:0 4px 10px;min-height:32px}.board-column .row-more{margin:0;min-height:44px;height:44px}.board-column .add-inline{min-height:44px;font-size:13px;padding:10px}
 .phone-calendar{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden;padding:0 7px 10px}.calendar-head{padding:12px 4px;border-bottom:0;gap:0}.calendar-head h2{font-size:16px;letter-spacing:-.4px}.calendar-head div{gap:1px}.calendar-head button{min-height:44px;min-width:35px;padding:8px;font-size:12px}.calendar-head .icon{font-size:26px;width:35px}.weekday{font-size:11px;border:0;padding:8px 0;text-align:center}.phone-day{display:flex;flex-direction:column;gap:3px;border:0;border-radius:11px;background:transparent;min-height:47px;padding:4px 0;font-size:14px;min-width:0}.phone-day.other{color:var(--muted);opacity:.5}.phone-day.today>span{color:var(--accent);font-weight:700}.phone-day[aria-pressed=true]{background:var(--blue-soft);color:var(--accent)}.calendar-dot{width:4px;height:4px;border-radius:50%;background:transparent}.calendar-dot.has-tasks{background:var(--accent)}.agenda-title{margin-top:25px}.agenda-empty{display:flex;align-items:center;gap:13px;padding:22px 17px;background:var(--paper);border:1px solid var(--line);border-radius:13px}.agenda-empty>svg{color:var(--green);width:24px;height:24px}.agenda-empty p{font-size:12px;margin-top:5px}#task-view:has(.phone-calendar)+.add-inline{display:none}
 dialog{position:fixed;inset:auto 0 var(--keyboard-space,0);margin:0;width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 14px - var(--keyboard-space,0));border:0;border-radius:22px 22px 0 0;padding:0 20px calc(18px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;scroll-padding:80px 0 90px;box-shadow:0 -8px 50px #0002}dialog::before{content:'';display:block;width:35px;height:4px;border-radius:5px;background:var(--line);margin:9px auto 4px}dialog .modal-head{position:sticky;top:0;z-index:2;background:var(--paper);padding:14px 0 16px;margin-bottom:10px;border-bottom:1px solid var(--line);gap:12px}dialog .modal-head h2{font-size:20px;line-height:1.3}dialog .modal-head small{display:none}dialog .modal-head .icon{width:44px;min-height:44px;border-radius:50%;background:var(--bg)}dialog form>.form-actions{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));z-index:2;background:var(--paper);border-top:1px solid var(--line);margin:20px -20px calc(-18px - env(safe-area-inset-bottom));padding:13px 20px calc(13px + env(safe-area-inset-bottom));gap:8px;flex-wrap:nowrap}dialog .form-actions button{font-size:14px;min-height:46px;padding:11px 13px;border-radius:10px}dialog .form-actions .primary{flex:1}dialog .form-actions .left{margin-right:0}dialog p.hint{font-size:12px}.form-grid{gap:0 12px}.field{min-width:0;margin-bottom:18px}label{font-size:12px;margin-bottom:8px}input,textarea,select{font-size:16px;min-height:46px;padding:11px 12px;border-radius:9px;min-width:0;max-width:100%;-webkit-appearance:none;appearance:none}select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23808087' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:30px}input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;accent-color:var(--accent);min-height:22px;width:22px}input[type=color]{padding:6px;height:46px}input[type=date],input[type=time],input[type=datetime-local]{display:block;min-width:0;min-height:46px;width:100%;font-size:16px}input::-webkit-date-and-time-value{text-align:left;min-height:22px}input[type=file]{font-size:13px;padding:9px}input[type=file]::file-selector-button{font:inherit;padding:8px;border:0;border-radius:6px;background:var(--soft);color:var(--ink);margin-right:8px}.title-input{font-size:21px;line-height:1.4;min-height:52px;padding:8px 0 12px}.editor-notes{font-size:16px;min-height:62px}.divider{margin:17px 0}.subtask{font-size:14px;min-height:44px;gap:10px}.subtask .icon{width:40px;min-height:44px}.inline-fields button{min-height:46px;font-size:14px}.comment{font-size:14px;line-height:1.5}.comment small{font-size:11px}.attachment{font-size:13px}.attachment .icon{min-height:44px;width:40px}.attachment .text-button{min-height:44px;font-size:13px}.quick-dates button{min-height:44px;font-size:12px}.editor-advanced summary{font-size:14px;min-height:48px}.editor-advanced .reminder-field{grid-column:1/-1}.editor-error{padding:10px 0;font-size:13px;scroll-margin:100px}.editor-error:empty{display:none}#editor{max-height:calc(100dvh - env(safe-area-inset-top) - 8px - var(--keyboard-space,0))}#editor .form-actions~.hint:empty{display:none}#modal .nav-stack button{justify-content:flex-start;min-height:50px;padding:13px;font-size:14px;border-radius:10px}#modal .nav-stack{gap:9px}.search-results{max-height:50dvh}.search-result{font-size:15px;min-height:64px;padding:13px 4px}.search-result small{font-size:12px}.search-input{font-size:16px;min-height:48px}
 #sidebar{inset:auto 0 0;transform:translateY(105%);width:100%;max-height:calc(90dvh - env(safe-area-inset-top));border:0;border-radius:22px 22px 0 0;padding:15px 22px calc(24px + env(safe-area-inset-bottom));z-index:30;overscroll-behavior:contain}.nav-open{overflow:hidden}.nav-open #sidebar{transform:translateY(0);visibility:visible}.nav-open #scrim{z-index:29;background:#11182760;backdrop-filter:blur(3px)}#sidebar>.brand{position:sticky;top:-15px;background:var(--paper);z-index:1;padding:8px 0 13px;font-size:22px}#close-navigation{display:flex;margin-left:auto;width:44px;min-height:44px;background:var(--bg);border-radius:50%}.workspace-label{margin:0 0 18px;font-size:12px}.nav-item{min-height:48px;font-size:15px;border-radius:10px;padding:11px 12px}.nav-item svg{width:20px;height:20px}.side-heading{margin:20px 9px 7px;font-size:11px}.side-heading .icon{min-height:40px;width:40px}.side-bottom{padding-top:20px}.local-note{display:none}.account-controls{padding:13px 8px;margin-bottom:14px}.account-controls .account-avatar{width:37px;height:37px}.account-controls strong{font-size:14px}.account-controls small{font-size:11px}.account-controls button{font-size:13px;min-height:44px;padding:6px}.nav-open #mobile-nav{visibility:hidden}
 .settings-grid{gap:17px}.panel{padding:20px;border-radius:15px;min-width:0}.panel h3{font-size:16px;margin-bottom:15px}.panel p{font-size:13px}.panel button{font-size:14px;min-height:46px}.panel .nav-stack button{justify-content:flex-start;padding:13px 14px;border-radius:10px}.panel .form-grid{grid-template-columns:1fr 1fr}.project-row{font-size:14px;min-height:57px;gap:7px}.project-row button{font-size:12px;flex-shrink:0}.project-row .project-dot{flex-shrink:0}.template-grid{gap:14px}.template-card{padding:20px;border-radius:15px}.template-card h3{font-size:16px}.template-card p{font-size:13px;line-height:1.5}.template-card button{min-height:44px;font-size:14px}.template-card>.text-button{padding:8px 14px}.activity-row{font-size:14px;line-height:1.55}.activity-row small{font-size:11px;margin-top:5px}.focus-screen{padding:27px 20px;margin:0 auto;border-radius:18px}.focus-screen select{margin-top:21px;font-size:16px}.focus-screen .timer-ring{width:210px;height:210px;margin:30px auto}.timer-ring strong{font-size:52px}.focus-screen h2{font-size:22px}.focus-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.focus-controls button{min-height:46px;font-size:14px}.focus-controls .primary{grid-column:1/-1;border-radius:12px;min-height:50px}.focus-screen p{font-size:13px}.chart{gap:8px}.chart-col{font-size:11px}
 #toast{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px);left:50%;max-width:calc(100% - 28px);font-size:13px;padding:12px 15px;border-radius:12px;line-height:1.5;gap:12px}#toast button{min-height:36px;min-width:42px;font-size:13px}.keyboard-open #mobile-nav{display:none}.signed-out #mobile-nav{display:none}.signed-out main{padding:calc(30px + env(safe-area-inset-top)) 25px calc(35px + env(safe-area-inset-bottom));min-height:100dvh}.login-card{max-width:365px}.login-card .brand{margin-bottom:46px;font-size:26px}.login-card h1{font-size:30px}.login-card>p{font-size:15px}.login-card>.hint{font-size:12px}.account-choices{margin:28px 0 20px}.account-choice{min-height:86px;border-radius:16px;padding:20px;gap:17px}.account-choice strong{font-size:17px}.account-choice .account-avatar{width:44px;height:44px}
}
@media(max-width:359px){body{--page-x:14px}.task-title{font-size:14px}.tools{gap:5px}.tools button{padding:10px}.form-grid{grid-template-columns:1fr}dialog{padding-left:16px;padding-right:16px}dialog form>.form-actions{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.panel .form-grid{grid-template-columns:1fr}.phone-day{min-height:46px}.calendar-head h2{font-size:15px}.calendar-head button{min-width:31px}.calendar-head .icon{width:31px}.focus-screen .timer-ring{width:190px;height:190px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.push-panel p{line-height:1.6}.push-status{padding:12px 14px;background:var(--bg);border-radius:10px;margin:16px 0;font-size:14px}.push-status.on{color:var(--accent)}.push-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.push-actions button{min-height:46px}.push-install{padding:16px;background:var(--bg);border-radius:12px}.push-install ol{padding-left:20px;line-height:1.8}.push-feedback{font-size:14px;color:var(--accent)}@media(max-width:760px), (max-width:1000px) and (max-height:500px){.push-actions{flex-direction:column}.push-actions button{width:100%}}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){body[data-view=today] .overview{display:none}#sidebar [data-nav=today]{display:none}.phone-nav-group .nav-item{width:100%}.quick-create .new-task-options-body .editor-advanced>summary{font-size:13px}}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){body{--nav-height:56px}#mobile-nav{padding:3px 8px calc(3px + env(safe-area-inset-bottom))}.mobile-tab{min-height:48px;padding:3px;gap:2px;border-radius:9px}.mobile-tab svg{width:20px;height:20px}.mobile-tab.mobile-add>span{width:40px;height:40px;border-radius:13px}.mobile-add svg{width:23px;height:23px}main{padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px)}.topbar{height:calc(56px + env(safe-area-inset-top));transition:transform .18s ease}.phone-header-hidden .topbar{transform:translateY(-100%);pointer-events:none}.topbar:focus-within{transform:none;pointer-events:auto}.phone-header-hidden .topbar:focus-within:not(:has(:focus-visible)){transform:translateY(-100%);pointer-events:none}#mobile-account{min-height:44px}#mobile-account small{display:none}.page-head{margin-bottom:14px}main{padding-top:14px}}
