/* B3 phone: the same quiet surfaces, with touch-first controls. */
.screen{background:var(--color-canvas)}
.t-title1{font-size:28px;line-height:36px;font-weight:650;letter-spacing:-.025em}
.mobile-icon-button{background:var(--color-subtle);border-radius:12px}
.mobile-text-button{font-weight:550}.mobile-header-actions{gap:8px}
.tabbar{border-top:1px solid var(--color-rule);background:var(--color-canvas)}
.nav-track{background:var(--color-subtle)}
.tab-indicator{background:var(--color-brand-soft)}
.fab{box-shadow:none}
.btn{font-weight:600}.btn:active:not(:disabled){filter:brightness(.96)}
.screen.has-tabs.is-enter>.scroll-area{animation:none}

/* Today and shared task rows: title first; selected task has one clear next action. */
.mobile-today-head{padding-top:16px}.mobile-today-title{align-items:center;margin-bottom:16px}.mobile-today-head h1{margin:0 0 3px}.mobile-today-title .t-caption{font-size:12px}
.mobile-week-strip{padding-bottom:12px;gap:3px}.mobile-week-strip button{min-height:50px;border-radius:12px;gap:5px}.mobile-week-strip [aria-current="date"]{background:var(--accent);color:white}.mobile-week-strip [aria-current="date"] strong{font-weight:600}
.mobile-day-summary{border:0;padding:10px 12px;background:var(--color-subtle);border-radius:10px;gap:8px}.mobile-day-summary strong{font-weight:550;font-size:14px}
.mobile-task-group .section-h{margin:24px 0 6px}.mobile-task-group .section-h .l{font-size:14px;font-weight:600}.mobile-task-group .section-h .dim{font-size:12px}
.mobile-task-group .row{padding-block:14px;min-height:76px;border-bottom:1px solid var(--color-rule)}.mobile-task-group .title{font-size:16px;line-height:24px;font-weight:500}.mobile-task-group .meta{font-size:12px;line-height:19px;margin-top:5px}
.mobile-next-label{display:inline-flex;align-items:center;gap:4px;margin:0 0 0 8px;font-size:12px;line-height:19px;font-weight:550;color:var(--accent);white-space:nowrap}.mobile-next-label>.ic{width:12px;height:12px}
.mobile-row-start{width:44px;min-width:44px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:var(--ink2)}.mobile-row-start svg{width:16px;height:16px}.mobile-task-group .metrics{font-weight:400}
.mobile-today-footer{margin-top:24px;gap:6px 20px}.mobile-inbox-link{border-radius:10px;background:var(--color-subtle);border:0;padding:10px 12px;min-height:52px}.mobile-day-empty{padding-top:40px;padding-bottom:24px}.mobile-day-empty h2{font-size:22px;line-height:30px}.mobile-day-empty p{margin-block:12px 20px}
/* Plan: actual time is readable on the left; flexible tasks remain outside the time axis. */
.seg{background:var(--color-sunken);padding:3px;border-radius:10px}.seg .on{color:var(--ink)!important;box-shadow:0 1px 3px #20242c12}
.mobile-agenda-list{padding-top:6px}.mobile-agenda-row{gap:16px;padding-bottom:14px}.mobile-agenda-time{font-size:12px;width:46px;padding-top:14px}.mobile-agenda-time strong{font-weight:600;color:var(--accent)}.mobile-agenda-time::after{left:54px;border-color:var(--color-border)}
.mobile-agenda-task{padding:14px;background:var(--color-subtle);border:0;border-radius:12px}.mobile-agenda-task strong{font-weight:550;line-height:24px}.mobile-agenda-task span{font-size:12px;line-height:19px}
.dayrow{min-height:64px}.dayrow.today{border-radius:10px}.dayrow .tag{font-size:12px}
/* Details, focus and reports share the same type and neutral form surfaces. */
.mobile-detail-page .mobile-detail-title{font-size:24px;line-height:32px;font-weight:600}.mobile-detail-page .t-title3{font-size:16px;line-height:24px}.mobile-detail-page .field{background:var(--color-subtle);border-color:var(--color-border);border-radius:10px;min-height:46px}
.mobile-detail-plan{padding-block:12px;gap:14px}.mobile-detail-plan .btn{padding-inline:12px}.mobile-detail-history{padding-block:16px;line-height:22px}
.screen.focus-bg{background:var(--color-canvas)}.mobile-focus-page{background:var(--color-canvas);padding-top:8px!important}.mobile-focus-page>div:nth-child(2){min-height:300px!important;padding-block:32px}.mobile-focus-page .t-display{font-size:72px;line-height:82px;font-weight:450;letter-spacing:-.035em}.mobile-focus-page .t-title2{font-size:20px;line-height:28px;font-weight:600}.mobile-focus-page .chip.ghost{border:0;background:var(--color-subtle);color:var(--ink2)}.mobile-focus-page .field{border-radius:10px;border-color:var(--color-border);background:var(--color-subtle)}
.mobile-progress-page>h1{margin:14px 0 20px!important}.mobile-progress-page>.seg{margin-bottom:24px}.mobile-progress-empty{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:32px 20px;background:var(--color-subtle);border-radius:12px;margin-top:28px}.mobile-progress-empty .t-title3{font-size:20px;line-height:28px}.mobile-progress-empty .btn{height:44px;min-height:44px;background:var(--surface);color:var(--accent);border:1px solid var(--color-border)}
.settings-header{padding-block:12px;border-bottom-color:var(--color-rule)}.settings-header h1{font-size:18px;font-weight:600}.settings-scroll{padding-inline:20px}.settings-group{margin-top:28px}.settings-group h2{font-size:13px;line-height:20px;margin-bottom:10px}.settings-group .list-row{padding:12px 14px;min-height:56px}.settings-note{line-height:20px}.settings-brand{display:flex;align-items:center;gap:12px;padding:16px 14px;background:var(--surface);border-radius:12px 12px 0 0}.settings-brand img{flex:none}.settings-brand strong{font-size:16px;font-weight:600;display:block}.settings-brand small{font-size:12px;color:var(--ink2);display:block;margin-top:3px}
@media(max-width:375px){.mobile-day-summary{padding:10px 8px;font-size:11px}.mobile-day-summary strong{font-size:13px}.mobile-today-head{padding-top:12px}.mobile-today-title{margin-bottom:12px}.mobile-task-group .section-h{margin-top:20px}}
@media(max-height:700px){.mobile-focus-page>div:nth-child(2){min-height:250px!important;padding-block:20px}.mobile-focus-page .t-display{font-size:64px;line-height:72px}}

/* Leave enough scroll runway to bring the final action above the floating add button. */
.screen.has-tabs .scroll-area{padding-bottom:180px}.mobile-task-group .metrics{white-space:nowrap;flex-shrink:0}
@media(max-height:450px){.screen.has-tabs .scroll-area{padding-bottom:150px}.mobile-focus-page>div:nth-child(2){min-height:200px!important;padding-block:12px}.mobile-focus-page .t-display{font-size:56px;line-height:64px}}

/* The independent floating action has its own lane, outside the scrolling content. */
.mobile-add-lane{flex:none;display:flex;align-items:center;justify-content:flex-end;padding:12px 20px;background:var(--color-canvas)}
.screen.has-tabs .mobile-add-lane .fab{position:relative;inset:auto;flex:none}
.screen.has-tabs>.scroll-area{min-height:0;padding-bottom:20px}
.mobile-header-actions .mobile-text-button{min-width:44px;justify-content:center}
@media(max-height:450px){.mobile-add-lane{padding-block:6px}}

@media(min-width:650px) and (max-height:450px){
 .mobile-today-head{display:grid;grid-template-columns:280px minmax(0,1fr);gap:8px 16px;padding-top:8px}
 .mobile-today-title{margin-bottom:0;min-width:0}.mobile-today-head .mobile-week-strip{padding-bottom:0;align-self:center}
 .mobile-today-head .mobile-day-summary,.mobile-today-head .mobile-session{grid-column:1/-1}
 .mobile-task-group .section-h{margin-top:14px}
}

/* One row vocabulary across the day: quiet rules, title first, readable metadata. */
.mobile-task-group .row{border-bottom:0}.mobile-task-group .row::before{content:none}
.mobile-task-group .row::after{content:"";position:absolute;left:60px;right:20px;bottom:0;height:1px;background:var(--color-rule)}
.mobile-task-group .row:last-child::after{content:none}
.mobile-task-group .title{font-weight:550;letter-spacing:-.012em}
.mobile-task-group .meta{flex-wrap:wrap;column-gap:8px;row-gap:3px;color:var(--ink2)}
.mobile-row-start:active{background:var(--color-subtle);color:var(--accent)}
.mobile-task-group .section-h .l{font-size:15px}.mobile-task-group .section-h .dim{font-variant-numeric:tabular-nums}
.mobile-day-summary{border-radius:8px}.mobile-day-summary strong{margin-left:3px;font-variant-numeric:tabular-nums}
.mobile-icon-button{border-radius:10px}.mobile-add-lane .fab{box-shadow:none}
.mobile-agenda-task{border-radius:10px}.mobile-agenda-task strong{font-size:16px;letter-spacing:-.01em}
.mobile-detail-page .field,.settings-scroll .field{border-radius:8px}
.settings-group h2{font-weight:550}.mobile-progress-empty{border-radius:10px}

/* Neutralize the legacy recommendation fill; only its label is distinct. */
.row.mobile-next{background:var(--surface)}

.today-priority {
  margin: 10px 0 8px;
  padding: 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  background: var(--surface);
}
.today-priority h2 { margin: 2px 0; overflow-wrap: anywhere; }
.today-priority p { margin: 4px 0; font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.today-priority .btn-primary { margin-top: 8px; }
.mobile-today-footer .mobile-week-strip { width: 100%; }
.mobile-rest { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 0 20px 12px; }
.mobile-focus-page { overflow-y: auto; }
.mobile-focus-page .ring-wrap { width: min(100%, 267px, 44dvh); height: auto; aspect-ratio: 1; flex-shrink: 0; }
.mobile-focus-page .ring-wrap svg { width: 100%; height: 100%; }
.mobile-focus-page .ring-wrap .t-display { font-size: clamp(38px, 8vw, 64px); }

.mobile-focus-main {
  flex: 1;
  min-height: calc(min(267px, 44dvh) + 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mobile-focus-setup { min-height: 180px; padding-inline: 4px; }
.mobile-focus-page .focus-environment summary,
.mobile-focus-page .rest-link { min-height: 44px; }
.mobile-focus-page .focus-env-fields select,
.mobile-focus-page .focus-env-fields label:has(input) { min-height: 44px; }
.mobile-focus-page .focus-env-fields label:has(input) { display: flex; align-items: center; gap: 4px; }
.mobile-today-head .today-priority p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.mobile-progress-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}
.mobile-progress-metrics > div { padding-inline: 8px; min-width: 0; }
.mobile-progress-metrics > div:first-child { padding-inline-start: 0; }
.mobile-progress-metrics > div + div { border-inline-start: 1px solid var(--hairline); }
.mobile-progress-metrics span { color: var(--ink2); font-size: 12px; }
.mobile-progress-metrics strong { display: block; margin-top: 4px; font-size: clamp(18px, 5.5vw, 24px); line-height: 1.25; overflow-wrap: anywhere; }
