/* Figma: 02 · Field Notes · Pages
   One block per page frame. Page body padding matches the Figma frame: 100px
   gutters inside a 1440 frame, so the content column is 1240. */
.Page { display: flex; flex-direction: column; }
.Page-body { padding: 0 var(--gutter) 80px; }
.PageHead { display: flex; flex-direction: column; gap: 12px; padding: 40px 0 26px; }
.PageHead[data-actions] { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 20px; }
.PageHead-copy { display: flex; flex: 1; flex-direction: column; gap: 12px; min-width: 0; }
.PageHead-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: none; }
.ExportMenu-wrap { position: relative; }
.ExportMenu { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; min-width: 190px; padding: 5px; border: 1px solid var(--navy-100); border-radius: 8px; background: var(--paper); box-shadow: 0 8px 24px rgba(10,38,52,.14); }
.ExportMenu button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; background: none; color: var(--navy); text-align: left; cursor: pointer; }
.ExportMenu button:hover { background: var(--mist); }
.CalendarMenu-wrap { position: relative; }
.CalendarMenu { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; width: min(420px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--navy-100); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 24px rgba(10,38,52,.14); }
.CalendarMenu-intro { margin: 8px 0 14px; color: var(--navy-400); }
.CalendarMenu-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--fog); }
.CalendarMenu-links { display: flex; flex-wrap: wrap; gap: 8px; }
.CalendarMenu-links a, .CalendarMenu-links button { padding: 7px 10px; border: 1px solid var(--navy-100); border-radius: 999px; background: var(--paper); color: var(--navy); text-decoration: none; font: inherit; cursor: pointer; }
.CalendarMenu-links a:hover, .CalendarMenu-links button:hover { border-color: var(--teal); color: var(--teal-700); }
.PageHead-desc { color: var(--navy-400); max-width: 900px; }
.Count { display: flex; align-items: center; gap: 6px; padding: 10px 0; }
.Count-note { color: var(--navy-400); }
.DuplicateBanner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 0 14px; padding: 12px 14px; border: 1px solid var(--teal-200); border-radius: 7px; background: var(--teal-100); color: var(--navy); }
.DuplicateBanner > span { min-width: 0; }
.DuplicateBanner button { flex: none; padding: 4px 0; border: 0; background: none; color: var(--teal-700); cursor: pointer; }
.DuplicateBanner button:hover { text-decoration: underline; }
.ContactsMap-view { min-width: 0; }
#ContactsMap { width: 100%; height: min(64vh, 620px); min-height: 360px; border: 1px solid var(--fog); border-radius: 8px; overflow: hidden; background: var(--mist); }
.ContactsMap-count { margin: 10px 0; }
.ContactsMap-unlocated { display: flex; flex-direction: column; border-top: 1px solid var(--fog); }
.ContactsMap-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--fog); background: none; text-align: left; cursor: pointer; }
.ContactsMap-row:hover { background: var(--mist); }
.AccountPin { width: 18px; height: 18px; padding: 0; border: 2px solid var(--paper); border-radius: 50%; box-shadow: 0 1px 4px rgba(10,38,52,.45); cursor: pointer; }
.AccountPin[data-interest="hot"] { background: var(--teal-700); }
.AccountPin[data-interest="warm"] { background: var(--teal-300); }
.AccountPin[data-interest="cold"] { background: var(--navy-300); }
.AccountPin[data-interest="unknown"] { border: 2px solid var(--navy-400); background: var(--paper); }
.AccountPin[data-overdue="true"] { outline: 3px solid var(--error); }
.AccountPopup { display: flex; flex-direction: column; gap: 5px; min-width: 200px; color: var(--navy); }
.AccountPopup-overdue { color: var(--error); }
.AccountPopup-last { color: var(--navy-400); }
.AccountPopup-actions { display: flex; gap: 8px; padding-top: 6px; }
.AccountPopup-actions button, .AccountPopup-actions a { padding: 6px 9px; border: 1px solid var(--navy-100); border-radius: 999px; background: var(--paper); color: var(--navy); text-decoration: none; font: inherit; cursor: pointer; }
.AccountPopup-actions button:hover, .AccountPopup-actions a:hover { border-color: var(--teal); color: var(--teal-700); }
.Table { display: flex; flex-direction: column; }
.view-enter { animation: viewIn var(--base) var(--ease) both; }
.view-enter[data-static] { animation: none; }
.ScopeNotice { display:flex; gap:16px; justify-content:space-between; align-items:center; padding:12px 24px; background:var(--mist); color:var(--navy); }
.ScopeNotice a { color:var(--teal-700); text-decoration:underline; }
@media (max-width:600px) { .ScopeNotice { padding:12px 16px; flex-wrap:wrap; gap:8px; } }
@media (max-width:719px) { .AppHeader-refresh { min-width:40px; justify-content:center; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } }

/* Arriving on a page. The blocks come up in order, the way wienscorp.com
   reveals a section, on the same curve but shorter: this is a tool, not a
   page someone is reading. A phone does the same thing faster and closer
   together, so a tab switch reads as the app answering, not as waiting. */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 720px) {
  .Page[data-enter] > .Page-body > *, .Page[data-enter] > .Ask-shell > * { animation: pageIn 520ms var(--ease) both; }
  .Page[data-enter] > .Page-body > *:nth-child(2) { animation-delay: 45ms; }
  .Page[data-enter] > .Page-body > *:nth-child(3) { animation-delay: 90ms; }
  .Page[data-enter] > .Page-body > *:nth-child(4) { animation-delay: 135ms; }
  .Page[data-enter] > .Page-body > *:nth-child(5) { animation-delay: 180ms; }
  .Page[data-enter] > .Page-body > *:nth-child(n+6) { animation-delay: 210ms; }
  .Page[data-enter] > .Ask-shell > *:nth-child(2) { animation-delay: 60ms; }
}
@media (max-width: 719px) {
  .Page[data-enter] > .Page-body > *, .Page[data-enter] > .Ask-shell > * { animation: pageUp 300ms var(--ease) both; }
  .Page[data-enter] > .Page-body > *:nth-child(2) { animation-delay: 30ms; }
  .Page[data-enter] > .Page-body > *:nth-child(3) { animation-delay: 60ms; }
  .Page[data-enter] > .Page-body > *:nth-child(n+4) { animation-delay: 90ms; }
}
@keyframes pageUp { from { opacity: 0; transform: translateY(8px); } }

/* Today ------------------------------------------------------------------- */
.Today-columns { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; padding-top: 24px; align-items: start; }
.Today-left { display: flex; flex-direction: column; gap: 24px; }
.Today-list { display: flex; flex-direction: column; }
.Today-right { display: flex; flex-direction: column; gap: 22px; }
.Today-links { display: flex; flex-wrap: wrap; gap: 20px; }
.Today-more { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--navy-400); cursor: pointer; padding: 16px 0 0; }
.Today-list .GroupLabel { margin: 14px 0 8px; }
/* Section headings in Today's and Projects' columns drop the h2's browser
   margins, 33px of air under each summary; the column gaps space them (#22). */
.Today-columns .SectionHeader-title { margin: 0; }
.Today-seeall { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--teal-700); cursor: pointer; padding: 0; }

/* Tasks ------------------------------------------------------------------- */
.Tasks-summary { display: flex; border: 1px solid var(--fog); border-radius: 8px; background: var(--paper); margin-bottom: 20px; }
.Tasks-stage { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; flex: 1; border-left: 1px solid var(--fog); }
.Tasks-stage:first-child { border-left: 0; }
.Tasks-stage-top { display: flex; align-items: center; gap: 8px; }
.Tasks-stage-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--teal); }
.Tasks-stage-note { color: var(--navy-400); }
.Tasks-monthnav { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.Tasks-arrows { display: flex; gap: 4px; }
.Tasks-arrow { width: 30px; height: 30px; border: 1px solid var(--navy-200); border-radius: 6px; background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: border-color var(--fast) var(--ease); }
.Tasks-arrow:hover { border-color: var(--teal); }
.Tasks-today-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--navy-200); border-radius: 999px; background: var(--paper); cursor: pointer; }
.Tasks-legend { display: flex; gap: 14px; align-items: center; margin-left: auto; color: var(--navy-400); }
.Tasks-legend span { display: inline-flex; align-items: center; gap: 6px; }
.Tasks-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.Calendar { display: flex; flex-direction: column; }
.Calendar-dots, .Calendar-agenda { display: none; }
.Calendar-dow { display: grid; grid-template-columns: repeat(7, 1fr); }
.Calendar-dow span { padding: 0 8px 8px; color: var(--navy-400); }
.Calendar-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.Calendar-day { display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 132px; padding: 8px 8px 10px; border: 1px solid var(--fog); margin: 0 -1px -1px 0; }
.Calendar-day[data-weekend="true"] { background: var(--mist); }
.Calendar-day[data-muted="true"] .Calendar-num { color: var(--navy-300); }
.Calendar-daytop { display: flex; justify-content: flex-end; }
.Calendar-num { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; }
.Calendar-day[data-today="true"] .Calendar-num { background-image: var(--grad); color: var(--paper); }
/* A day opened from Today's week strip is outlined; the phone marks it its own way. */
@media (min-width: 720px) { .Calendar-day[data-selected="true"][data-today="false"] { box-shadow: inset 0 0 0 2px var(--teal-300); } }
.Calendar-events { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.CalendarEvent { display: flex; min-width: 0; align-items: center; gap: 5px; padding: 3px 7px 3px 5px; border-radius: 4px; border: 0; width: 100%; text-align: left; cursor: pointer; background: var(--mist); color: var(--navy); transition: filter var(--fast) var(--ease); }
.CalendarEvent:hover { filter: brightness(0.97); }
.CalendarEvent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.CalendarEvent[data-kind="follow-up"] { background: var(--teal-100); color: var(--teal-700); }
.CalendarEvent[data-kind="overdue"] { background: var(--error-bg); color: var(--error); }
.CalendarEvent[data-kind="done"] { background: var(--green-100); color: var(--green-600); }
.Timeline { --tl-label: 316px; }
.Timeline-scale { display: grid; grid-template-columns: var(--tl-label) minmax(0, 1fr); padding-bottom: 10px; }
.Timeline-ticks { display: grid; }
.Timeline-ticks span { color: var(--navy-400); white-space: nowrap; overflow: hidden; }
.Timeline-ticks span[data-today="true"] { color: var(--teal-700); }
.Timeline-rows { position: relative; padding-top: 8px; border-top: 1px solid var(--fog); }
.Timeline-grid { position: absolute; inset: 0; display: grid; margin-left: var(--tl-label); pointer-events: none; }
.Timeline-grid i { border-left: 1px solid var(--fog); }
.Timeline-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--teal); opacity: 0.55; pointer-events: none; }
.TimelineRow { display: grid; grid-template-columns: calc(var(--tl-label) - 16px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 6px 0; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; position: relative; }
.TimelineRow-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.TimelineRow-text { display: flex; flex-direction: column; min-width: 0; }
.TimelineRow-text span:last-child { color: var(--navy-400); }
.TimelineRow-track { position: relative; height: 34px; }
.TimelineBar { position: absolute; top: 3px; height: 28px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--teal-100); color: var(--teal-700); transition: transform var(--base) var(--ease); }
.TimelineRow:hover .TimelineBar { transform: translateY(-1px); }
.TimelineBar i { width: 12px; height: 12px; border-radius: 999px; background: var(--teal); flex: none; }
.TimelineBar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.TimelineBar[data-kind="due-soon"] { background: var(--teal); color: var(--paper); }
.TimelineBar[data-kind="due-soon"] i { background: var(--paper); }
.TimelineBar[data-kind="overdue"] { background: var(--error-bg); color: var(--error); }
.TimelineBar[data-kind="overdue"] i { background: var(--error); }
.TimelineBar[data-kind="done"] { background: var(--green-100); color: var(--green-600); }
.TimelineBar[data-kind="done"] i { background: var(--green-600); }

/* Contacts ---------------------------------------------------------------- */
/* Pager -------------------------------------------------------------------- */
.Pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 18px; }
.Pager button { border: 0; background: none; color: var(--teal-700); cursor: pointer; }
.Pager button:hover { color: var(--navy); }

/* Team -------------------------------------------------------------------- */
.Team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 20px; }
.Team-note { display: flex; gap: 10px; align-items: flex-start; padding-top: 32px; color: var(--navy-400); max-width: 760px; }

/* Inbox ------------------------------------------------------------------- */
.Inbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding: 14px 0 26px; align-items: stretch; }
.CaptureProgress { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-400); white-space: nowrap; }
.CaptureProgress button { min-height: 32px; color: var(--teal-700); font: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Ask --------------------------------------------------------------------- */
.Ask-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.Ask-rail { display: flex; flex-direction: column; gap: 8px; padding: 24px 16px; background: var(--mist); }
.Ask-new { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--fog); border-radius: 8px; background: var(--paper); cursor: pointer; }
.Ask-rail-label { color: var(--navy-400); padding: 10px 12px 2px; }
.Ask-main { display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }
.Ask-topbar { display: none; }  /* the rail carries this on a desk */
.Ask-thread { display: flex; flex-direction: column; gap: 28px; width: 720px; max-width: 100%; padding: 36px 0 0; flex: 1; }
.Ask-composer { width: 720px; max-width: 100%; padding: 24px 0 28px; position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 72%, rgba(255, 255, 255, 0)); }
.Ask-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 720px; max-width: 100%; margin: auto 0; text-align: center; padding: 60px 0; }
.Ask-intro-mark { width: 44px; height: 44px; display: grid; place-items: center; }
.Ask-intro-mark svg { stroke: url(#fn-gradient); }
.Ask-starters { display: flex; gap: 12px; width: 100%; padding-top: 14px; }

/* iPad Pro portrait and other tablets ------------------------------------- */
/* Figma: 03 · Field Notes · Tablet & Phone, the iPad Pro row (1024 x 1366).   */
@media (max-width: 1099px) and (min-width: 720px) {
  :root { --gutter: 40px; }
  .AppHeader-inner { height: 60px; gap: 16px; }
  .AppHeader-logo img { width: 92px; }
  .AppHeader-nav { gap: 18px; }
  .AppHeader-fresh span[data-freshness], .AppHeader-refresh-label { display: none; }
  /* One row: the number, then the two ways in. The third line said what the
     page below it already shows. */
  :root { --bar-h: 72px; }
  .CaptureCard[data-layout="bar"] { gap: 28px; padding: 16px 26px; }
  .CaptureCard[data-layout="bar"] .CaptureCard-head { padding-right: 28px; }
  .CaptureCard[data-layout="bar"] .CaptureCard-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .CaptureCard[data-layout="bar"] .CaptureCard-way:nth-child(3) { display: none; }
  .Today-columns { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  :root { --cols-ProjectTableRow: minmax(0, 1fr) 0px 76px minmax(0, 1.2fr) 32px; }
  .ProjectTableRow > :nth-child(2), .TableHeader[data-for="ProjectTableRow"] > :nth-child(2) { visibility: hidden; overflow: hidden; }
  /* A 1240 table at 944: the summary is the column to give up first. */
  /* A dropped column keeps its cell, empty and zero wide: display:none would
     shift every cell after it one column to the left. */
  :root { --cols-VisitTableRow: 3px 80px 108px minmax(0, 1fr) 0px 80px 210px 15px; }
  .VisitTableRow > :nth-child(5), .TableHeader[data-for="VisitTableRow"] > :nth-child(5) { visibility: hidden; overflow: hidden; }
  :root { --cols-ContactTableRow: 22px 176px minmax(0, 1fr) 0px 0px 150px 78px 54px 92px 15px; }
  .ContactTableRow > :nth-child(4), .ContactTableRow > :nth-child(5),
  .TableHeader[data-for="ContactTableRow"] > :nth-child(4), .TableHeader[data-for="ContactTableRow"] > :nth-child(5) { visibility: hidden; overflow: hidden; }
  .Inbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .Team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* A tablet has room for the earlier questions, so the rail stays. The page
     behaves like the app screen it is: only the thread scrolls and the composer
     sits at the bottom of the column. */
  .Page[data-page="ask"] .Page-body { padding: 0; }
  .Ask-shell { grid-template-columns: 224px minmax(0, 1fr); height: calc(100dvh - 60px); min-height: 480px; }
  .Ask-rail { padding: 18px 12px; overflow-y: auto; }
  .Ask-main { height: 100%; min-height: 0; padding: 0 32px; }
  .Ask-thread { width: min(720px, 100%); flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 0 8px; gap: 22px; }
  .Ask-composer { width: min(720px, 100%); flex: none; position: static; padding: 8px 0 18px; background: var(--paper); }
  .Ask-intro { width: min(720px, 100%); flex: 1; min-height: 0; overflow-y: auto; justify-content: flex-end; margin: 0; padding: 40px 0 12px; }
}

/* Phone ------------------------------------------------------------------- */
/* Figma: the phone row of the same board (390 x 844). Navigation moves to a
   bottom tab bar, records open as pages and menus come up as sheets. */
@media (max-width: 719px) {
  :root { --gutter: 16px; }
  .AppHeader-inner { height: 56px; gap: 12px; }
  .AppHeader-logo img { width: 84px; }
  .AppHeader-nav { display: none; }
  .AppHeader-fresh { gap: 8px; margin-left: auto; }  /* no nav to push it, so push it */
  /* Safari zooms the page when a field under 16px takes focus, and never zooms
     back. 16px on the fields is the whole fix. */
  .SearchField input, .Composer textarea, .ContactForm-field input, input, textarea, select { font-size: 16px; }
  .SearchField { padding: 11px 12px; }
  .AppHeader-refresh-label { display: none; }
  .AppHeader-more { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  .TabBar { display: flex; }
  /* room for the tab bar under every page */
  .Page-body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .PageHead { padding: 22px 0 16px; }
  .PageHead[data-actions] { flex-direction: column; align-items: stretch; gap: 8px; }
  .PageHead-actions { flex: 1 1 auto; min-width: 0; justify-content: flex-start; flex-wrap: wrap; }
  .PipelineBoard-columns { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  #ContactsMap { height: 46vh; min-height: 320px; }
  .ContactsMap-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .PageHead h1 { font-size: 26px; line-height: 1.05; }
  .PageHead-desc { display: none; }

  /* Today */
  .Today-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 20px; }
  .Today-right { order: 2; }
  /* Projects is about the list and its pipeline: the pipeline leads, not 30 rows down */
  [data-page="projects"] .Today-right { order: -1; }
  /* the date and how fresh the data is share a line, as on a desk */
  .BriefingHeader-top { gap: 12px; padding: 14px 0 12px; }
  .BriefingHeader-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 14px; }
  .MetricTile { min-width: 0; }
  /* Figma: Capture Card · Layout=Phone. One target, and it is a text: the team
     is being moved towards texting, so the phone offers that and nothing else.
     The mark, what the bar is, the number and what to send; the whole bar
     opens Messages with the number filled in. */
  :root { --bar-h: 66px; }
  .CaptureCard[data-layout="bar"] { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; }
  /* the mark stands on its own, stroked in the brand gradient like the arrow */
  .CaptureCard-mark { display: grid; place-items: center; }
  .CaptureCard-mark svg { width: 30px; height: 30px; stroke: url(#fn-gradient-icon); stroke-width: 1.8; }
  .CaptureCard[data-layout="bar"] .CaptureCard-head { min-width: 0; padding: 0; border: 0; gap: 2px; }
  .CaptureCard[data-layout="bar"] .CaptureCard-number { font-size: 22px; }
  .CaptureCard[data-layout="bar"] .CaptureCard-number::after { content: ''; position: absolute; inset: 0; border-radius: 8px; }
  .CaptureCard-hint { display: block; color: rgba(255, 255, 255, 0.72); }
  .CaptureCard[data-layout="bar"] .CaptureCard-ways { display: none; }
  .CaptureCard-go { display: grid; place-items: center; width: 34px; height: 34px; }
  .CaptureCard-go svg { stroke: url(#fn-gradient); stroke-width: 2.4; }

  /* Rows · Figma: Phone Row. The same markup, two lines instead of a table. */
  .Table { overflow: visible; }
  .TableHeader { display: none; }
  .Row { min-width: 0; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 0; }
  .VisitTableRow { grid-template-columns: 3px 34px minmax(0, 1fr) auto 15px; }
  .VisitTableRow > :nth-child(2) { grid-column: 4; grid-row: 1; justify-self: end; }   /* the date */
  .VisitTableRow-rep { grid-column: 2; grid-row: 1 / span 2; }
  .VisitTableRow-rep > span:last-child { display: none; }  /* the rep's name; the photo stays */
  .VisitTableRow-stripe { grid-row: 1 / span 2; height: 100%; }
  .VisitTableRow-contact { grid-column: 3; grid-row: 1 / span 2; }
  .VisitTableRow > :nth-child(5) { display: none; }                                     /* the summary */
  .VisitTableRow > :nth-child(6) { grid-column: 4; grid-row: 2; justify-self: end; }     /* the pill */
  .VisitTableRow-next { display: none; }
  .VisitTableRow .chev { grid-column: 5; grid-row: 1 / span 2; }

  .TaskTableRow { grid-template-columns: 20px minmax(0, 1fr) auto 30px; }
  .TaskTableRow-task { grid-column: 2; grid-row: 1 / span 2; }
  .TaskTableRow-owner, .TaskTableRow > :nth-child(6) { display: none; }   /* owner, stage */
  .TaskTableRow-due { grid-column: 3; grid-row: 1; justify-self: end; }
  .TaskTableRow > :nth-child(7) { grid-column: 3; grid-row: 2; justify-self: end; }   /* the pill */
  .TaskTableRow-draft { grid-column: 4; grid-row: 1 / span 2; }
  .TaskTableRow .chev { display: none; }
  .Checkbox { grid-row: 1 / span 2; }
  /* Today's rows are the same task, so on a phone they read the same as the
     Tasks table: the circle centred on both lines, no owner photo, edge to edge. */
  .TaskRowCompact { align-items: center; padding: 13px 0; row-gap: 0; }
  .TaskRowCompact-meta .Avatar { display: none; }
  .TaskRowCompact-side { gap: 2px; }
  .TaskRowCompact-text { gap: 2px; }

  /* the desk row is a fixed 44px so hundreds stay scannable; two lines need their own height */
  .ContactTableRow { grid-template-columns: 22px minmax(0, 1fr) auto 15px; height: auto; }
  .ContactTableRow > :nth-child(1) { grid-row: 1 / span 2; }
  .ContactTableRow > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .ContactTableRow > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .ContactTableRow > :nth-child(4), .ContactTableRow-email, .ContactTableRow-phone,
  .ContactTableRow > :nth-child(9) { display: none; }
  .ContactTableRow > :nth-child(7) { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
  .ContactTableRow > :nth-child(8) { display: none; }
  .ContactTableRow .chev { grid-column: 4; grid-row: 1 / span 2; }

  .MediaRow { grid-template-columns: 52px minmax(0, 1fr) 15px; }
  .MediaRow-preview { width: 52px; height: 40px; grid-row: 1; }
  .MediaRow-who { grid-column: 2; grid-row: 1; }
  .MediaRow-middle { grid-column: 1 / span 2; grid-row: 2; padding-top: 6px; }
  .MediaRow > :nth-child(4) { display: none; }
  .MediaRow .chev { grid-column: 3; grid-row: 1; }

  /* Filters: the menu opens as a sheet rather than a dropdown */
  .FilterBar-row { flex-wrap: wrap; }
  .FilterBar-row .SearchField { flex: 1 1 100%; width: 100%; min-width: 0; }
  .FilterMenu { flex: 1 1 0; }
  .FilterMenu-button { width: 100%; justify-content: center; }
  .FilterMenu-list { position: fixed; inset: auto 0 0 0; z-index: 35; min-width: 0; border-radius: 18px 18px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px -8px rgba(10, 38, 52, 0.22); animation: sheetIn var(--base) var(--ease); }
  body:has(.FilterMenu-scrim) { overflow: hidden; }  /* the page behind a sheet stays put */
  .FilterMenu-scrim { display: block; position: fixed; inset: 0; z-index: 34; background: rgba(0, 15, 29, 0.38); animation: scrimIn var(--base) var(--ease); }
  .FilterMenu-grabber { display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--navy-200); margin: 0 auto 8px; }
  /* Touch: the handle belongs to the drag, the lists keep their own momentum
     and do not hand a stray scroll to the page behind them. */
  .Sheet-grabber, .Sheet-head, .FilterMenu-grabber, .Drawer-bar { touch-action: none; }
  .Sheet, .FilterMenu-list, .Modal, .Drawer { will-change: transform; }
  .Sheet-body, .Drawer-body, .FilterMenu-list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .FilterMenu-list { max-height: 70vh; overflow-y: auto; }
  .Sheet-body { max-height: 60vh; overflow-y: auto; }
  /* a finger needs a target, not a hairline */
  .Sheet-option, .FilterMenu-option { min-height: 48px; }
  .IconButton { min-width: 40px; min-height: 40px; }
  .TabBar-tab { min-height: 48px; }
  .FilterMenu-option { padding: 14px 4px; border-bottom: 1px solid var(--fog); border-radius: 0; }
  .ViewToggle { width: 100%; }
  .ViewToggle { min-width: 0; max-width: 100%; }
  .ViewToggle button { flex: 1; min-width: 0; min-height: 32px; justify-content: center; padding-left: 3px; padding-right: 3px; gap: 3px; font-size: 12px; white-space: nowrap; }

  /* A record is a page on a phone, not a panel at the side */
  .Drawer, .Drawer[data-wide="true"] { width: 100%; box-shadow: none; }
  .Drawer-body { padding: 18px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  /* The two drafts are a choice between each other, so they share a line. What
     happens to the visit itself gets the full width under them. */
  .Drawer-actions[data-layout="pairs"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .Drawer-actions[data-layout="pairs"] .Button { justify-content: center; padding-left: 12px; padding-right: 12px; }
  .Drawer-actions[data-layout="pairs"] .Button[data-span="full"] { grid-column: 1 / -1; }
  .Modal { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; border-radius: 18px 18px 0 0; }
  .Modal[data-kind="merge"] { max-height: 86dvh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .Inbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .Team-grid { grid-template-columns: minmax(0, 1fr); }
  /* At 358 the card has room for a photo and one column of text, so the phone
     number drops under the name and the three counts wrap instead of running
     off the edge. */
  .TeamCard-photo { width: 104px; }
  .TeamCard-body { padding: 14px 14px 14px 16px; gap: 10px; }
  .TeamCard-top { flex-direction: column; gap: 4px; }
  .TeamCard-names b { font-size: 17px; line-height: 1.15; }
  .TeamCard-names span { white-space: normal; overflow: visible; display: block; }
  .TeamCard-phone { white-space: normal; }
  .TeamCard-stats { flex-wrap: wrap; gap: 6px 14px; }
  .TeamCard-last { align-items: flex-start; }

  /* Ask is the one page that behaves like an app screen rather than a document:
     the column is exactly the space between the header and the tab bar, only the
     thread scrolls, and the composer is anchored to the bottom of it. */
  .Page[data-page="ask"] .Page-body { padding: 0; }
  .Contacts-head { align-items: center; gap: 12px; flex-wrap:wrap; }
  .Contacts-head .PageHead { width: 100%; }
  .Contacts-head .PageHead { padding: 18px 0 14px; }
  .Contacts-add { padding: 11px 13px; }
  .ContactTableRow-name, .ContactTableRow-company { display: inline-flex; align-items: center; min-height: 32px; }
  /* Two lines in a row need room to be two lines. The name and company read the
     way a visit row reads: the type's own leading, the company in navy-400. */
  /* Two tracks that size to their own line, not to half of whatever spans them:
     without this the pill (23px over two rows) sets both tracks to 10px and the
     name and company overlap. */
  .Row { padding: 13px 0; row-gap: 2px; grid-template-rows: auto auto; }
  .ContactTableRow > :nth-child(2) { font: 900 15px/1.35 var(--display); }
  .ContactTableRow > :nth-child(3) { font: 400 13px/1.45 var(--body); color: var(--navy-400); }
  .Ask-shell { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 56px - 84px - env(safe-area-inset-bottom, 0px)); min-height: 320px; }
  .Ask-rail { display: none; }
  .Ask-main { padding: 0; height: 100%; min-height: 0; }
  .Ask-topbar { display: flex; align-self: stretch; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; border-bottom: 1px solid var(--fog); flex: none; }
  .Ask-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--teal-700); cursor: pointer; }
  .Ask-thread { width: 100%; align-self: stretch; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 16px 8px; gap: 16px; }
  .Ask-composer { width: auto; align-self: stretch; flex: none; margin: 0 var(--gutter) 10px; padding: 8px 0 0; background: var(--paper); position: static; }
  .Ask-intro { width: 100%; flex: 1; min-height: 0; overflow-y: auto; justify-content: center; padding: 16px 16px 10px; gap: 12px; margin: 0; }  /* one centred block, so the space splits above and below it */
  .Ask-intro h1 { font-size: 22px; }
  .Ask-intro p { display: none; }              /* the heading already says it */
  .Ask-intro-mark { width: 34px; height: 34px; }
  .Ask-intro-mark svg { width: 30px; height: 30px; stroke-width: 1.4; }
  .Ask-starters { flex-direction: column; gap: 8px; width: 100%; }
  .StarterCard { flex: none; width: 100%; flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; text-align: center; min-height: 48px; }
  .StarterCard:nth-child(4) { display: none; }
  .Composer-scope, .Composer-note { display: none; }
  .Composer-box { flex-direction: row; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; }
  .Composer textarea { flex: 1; min-width: 0; padding: 7px 0; }
  .Composer-bar { justify-content: flex-end; min-height: 0; flex: none; }
  .ChatMessage-bubble { max-width: 85%; }
  /* a thumb needs more than 28px, and the answer needs the full width under the mark */
  .AnswerActions button { width: 40px; height: 40px; }
  .AnswerActions { margin-left: -8px; }
  .ChatMessage[data-role="assistant"] { gap: 10px; }
  /* The keyboard is up (app.js sets data-keyboard from the visual viewport): the
     tab bar steps aside, and Ask is exactly the header plus what is left above
     the keys, so the composer sits on them. */
  html[data-keyboard] .TabBar { display: none; }
  html[data-keyboard] .Ask-shell { height: calc(var(--vvh, 100dvh) - 56px - env(safe-area-inset-top, 0px)); }
  html[data-keyboard] .Page[data-page="ask"] .Page-body { padding-bottom: 0; }

  /* Tasks: the desk views that need width stay on the desk */
  /* The stage counts cost a third of the screen before a single task is read.
     The same numbers are on Today, so a phone goes straight to the work. */
  .Tasks-summary { display: none; }
  /* The gantt keeps its shape and pans sideways; the label column narrows so
     eleven days still have room to mean something. */
  .view-enter[data-view="Timeline"] { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .Timeline { --tl-label: 150px; min-width: 820px; }
  .TimelineRow { gap: 12px; }
  /* the names stay put while the days pan under them */
  .TimelineRow-label, .Timeline-scale > span:first-child { position: sticky; left: 0; z-index: 2; background: var(--paper); padding-right: 8px; }
  .TimelineRow-label .Avatar { display: none; }
  .Timeline-ticks span { font-size: 9.5px; letter-spacing: 0.06em; }
  .TimelineBar span { display: none; }   /* the row already says what it is */
  .TimelineBar { padding: 4px; }
  /* A month at 358px holds numbers and dots. What a day contains is listed
     under the grid, which is also the only place it can be read. */
  .Calendar { overflow: visible; display: flex; }
  .Calendar-dow, .Calendar-week { min-width: 0; }
  .Calendar-dow span { padding: 0 0 6px; text-align: center; }
  .Calendar-day { min-height: 0; gap: 2px; padding: 5px 0 6px; border: 0; margin: 0; align-items: center; cursor: pointer; border-radius: 8px; }
  .Calendar-day[data-weekend="true"] { background: none; }
  .Calendar-day[data-selected="true"] { background: var(--mist); }
  .Calendar-day[data-selected="true"][data-today="false"] .Calendar-num { border: 1px solid var(--navy-200); }
  .Calendar-daytop { justify-content: center; }
  .Calendar-events { display: none; }
  .Calendar-dots { display: flex; gap: 3px; height: 6px; align-items: center; justify-content: center; }
  .Calendar-dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--navy-300); }
  .Calendar-dots i[data-kind="follow-up"] { background: var(--teal); }
  .Calendar-dots i[data-kind="overdue"] { background: var(--error); }
  .Calendar-dots i[data-kind="done"] { background: var(--green-600); }
  .Calendar-dots i[data-kind="visit"] { background: var(--navy); }
  .Calendar-agenda { display: flex; flex-direction: column; padding-top: 16px; }
  .CalendarAgendaRow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--fog); background: none; text-align: left; cursor: pointer; }
  .CalendarAgendaRow-dot { width: 8px; height: 8px; border-radius: 999px; flex: none; background: var(--navy-300); }
  .CalendarAgendaRow-dot[data-kind="follow-up"] { background: var(--teal); }
  .CalendarAgendaRow-dot[data-kind="overdue"] { background: var(--error); }
  .CalendarAgendaRow-dot[data-kind="done"] { background: var(--green-600); }
  .CalendarAgendaRow-dot[data-kind="visit"] { background: var(--navy); }
  .CalendarAgendaRow-text { flex: 1; min-width: 0; }
  .Calendar-empty { padding: 14px 0; }
  .Tasks-monthnav, .Tasks-legend { flex-wrap: wrap; }
  .Tasks-legend { margin-left: 0; }
  .Done-summary { flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; }
  .DoneRow { grid-template-columns: 22px minmax(0, 1fr) auto; min-width: 0; gap: 10px; padding: 10px 0; align-items: center; }
  .DoneRow-owner, .DoneRow > :nth-child(5) { display: none; }
  .DoneRow-when { grid-column: 2; grid-row: 2; }
  .DoneRow-task { grid-column: 2; grid-row: 1; }
  .DoneRow-check { grid-row: 1 / span 2; }
  .DoneRow-restore { grid-column: 3; grid-row: 1 / span 2; min-height: 40px; padding: 8px 12px; }
  /* a finger-sized target on everything that is only a line of text */
  .Today-seeall, .Today-more, .AppHeader-refresh, .Pager button, .Ask-back, .Drawer-link { min-height: 40px; }
  .AppHeader-fresh span[data-freshness] { display: none; }
  .AppHeader-fresh-short { display: inline; color: var(--navy-400); }
  /* toasts rise above the tab bar rather than behind it */
  #toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px); }
}
@keyframes sheetIn { from { transform: translateY(14px); opacity: 0; } }
@keyframes scrimIn { from { opacity: 0; } }

/* Tasks · Done view ------------------------------------------------------- */
.Done-summary { display: flex; align-items: baseline; gap: 20px; padding: 4px 0 18px; }
.Done-summary b { font-family: var(--display); font-weight: 900; font-size: 20px; }
.Done-summary span { color: var(--navy-400); }

/* Photos ------------------------------------------------------------------- */
.PhotoGrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:26px; }

/* Tools -------------------------------------------------------------------- */
.ToolGrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); grid-auto-rows:1fr; gap:24px; }
.ToolCard { display:flex; flex-direction:column; gap:14px; padding:22px; border:1px solid var(--fog); border-radius:14px; background:var(--paper); }
.ToolCard[data-state="soon"] { background:var(--mist); border-color:var(--navy-100); }
.ToolCard[data-state="soon"] .ToolCard-titles b { color:var(--navy-400); }
.ToolCard-head { display:flex; align-items:center; gap:12px; }
.ToolCard-badge { display:grid; place-items:center; width:44px; height:44px; border-radius:11px; background:var(--teal-100); color:var(--teal-700); flex:none; }
.ToolCard[data-state="soon"] .ToolCard-badge { background:var(--navy-100); color:var(--navy-400); }
.ToolCard-titles { display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.ToolCard-foot { margin-top:auto; display:flex; align-items:center; gap:10px; }
.Tools-links { margin-top:52px; }
.Today-quicklinks { margin:26px 0 6px; }
.BackLink { display:inline-flex; align-items:center; gap:6px; margin:24px 0 -12px; border:0; background:none; color:var(--teal-700); cursor:pointer; padding:0; }

/* Tools · ROI -------------------------------------------------------------- */
.ROI-columns { display:flex; gap:28px; align-items:flex-start; }
.ROI-inputs { flex:1; min-width:0; }
.ROI-numbers { margin-top:44px; }
.ROIFields { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:24px 24px; }
.ROI-results { width:416px; flex:none; display:flex; flex-direction:column; gap:14px; padding:26px; border:1px solid var(--fog); border-radius:16px; background:var(--paper); }
.ROI-results-empty { justify-content:center; }
.ROI-stat { display:flex; flex-direction:column; gap:4px; }
.ROI-pair { display:flex; gap:16px; }
.ROI-pair .ROI-stat { flex:1; }
.ROI-breakdown { display:flex; flex-direction:column; }
.ROI-line { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; }
.ROI-years { display:flex; gap:12px; padding:16px; border-radius:12px; background:var(--mist); }
.ROI-year { flex:1; display:flex; flex-direction:column; gap:3px; }
.ROI-year[data-tone="good"] b { color:var(--green-600); }
.ROI-year[data-tone="quiet"] b { color:var(--navy-400); }
.ContactPick { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--teal-300); border-radius:10px; background:var(--teal-100); }
.ContactPick-text { display:flex; flex-direction:column; gap:1px; flex:1; min-width:0; }
.ContactPick-text span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ContactSearch { position:relative; }
.ContactMenu { position:absolute; left:0; right:0; top:calc(100% + 8px); z-index:4; border:1px solid var(--fog); border-radius:12px; background:var(--paper); box-shadow:0 10px 26px -4px rgba(0,15,29,.16); overflow:hidden; }
.ContactMenu-row { display:flex; align-items:center; gap:12px; width:100%; padding:11px 14px; border:0; border-bottom:1px solid var(--fog); background:var(--paper); text-align:left; cursor:pointer; }
.ContactMenu-row:hover { background:var(--teal-100); }
.ContactMenu-row[data-noemail="true"] b { color:var(--navy-400); }
.ContactMenu-row[data-noemail="true"] .icon { color:var(--navy-300); margin-left:auto; }
.ContactMenu-text { display:flex; flex-direction:column; gap:1px; min-width:0; }
.ContactMenu-text span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ContactMenu-alt { display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px; border:0; background:var(--mist); color:var(--teal-700); cursor:pointer; }

/* Settings ----------------------------------------------------------------- */
.Settings { display:flex; flex-direction:column; max-width:840px; }
.Settings .SectionHeader { margin-top:52px; margin-bottom:6px; }
.Settings-list { display:flex; flex-direction:column; }
.Settings-add { margin-top:16px; }
.SignedBanner { display:flex; align-items:center; gap:10px; padding:10px 10px 10px 18px; border-radius:10px; background:var(--teal-100); color:var(--teal-700); }
.SignedBanner > span { flex:1; min-width:0; }
.Settings-note { display:flex; gap:10px; align-items:flex-start; margin-top:48px; padding:16px 18px; border-radius:10px; background:var(--mist); color:var(--navy-400); }
.Segmented { display:inline-flex; gap:4px; padding:3px; border-radius:10px; background:var(--mist); }
.Segmented-seg { padding:8px 16px; border:0; border-radius:8px; background:none; color:var(--navy-400); cursor:pointer; }
.Segmented-seg[aria-pressed="true"] { background:var(--paper); color:var(--deep); box-shadow:0 1px 2px rgba(0,15,29,.08); }
.DigestDrawer { display:flex; flex-direction:column; gap:14px; }
.DigestDrawer-head { display:flex; align-items:center; gap:14px; }
.DigestDrawer-head span { display:flex; flex-direction:column; gap:2px; }
.DigestDrawer-blocks { display:flex; flex-direction:column; }
.DigestDrawer-blocks .SettingsRow { padding:13px 0; }
.DigestDrawer-blocks .SettingsRow-label { width:auto; max-width:none; flex:1; }
.DigestDrawer-days { display:flex; gap:8px; }
.DigestDrawer-preview { display:flex; gap:10px; align-items:flex-start; padding:14px 16px; border-radius:10px; background:var(--mist); color:var(--navy-400); }
.PhotoDrawer { display:flex; flex-direction:column; gap:14px; }
.PhotoDrawer-image { padding:0; border:0; border-radius:12px; overflow:hidden; background:var(--mist); cursor:zoom-in; }
.PhotoDrawer-image img { width:100%; display:block; }
.DoneRow-when { display:flex; flex-direction:column; gap:1px; }
.Sheet-links { display:flex; flex-direction:column; gap:8px; padding:16px 4px 4px; border-top:1px solid var(--fog); margin-top:8px; }

@media (max-width: 1099px) {
  .ROI-columns { flex-direction:column; }
  .ROI-results { width:100%; }
  .ROIFields { grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 719px) {
  .PhotoGrid { grid-template-columns:repeat(2, 1fr); gap:12px; }
  .PhotoTile-image { aspect-ratio:4/3; }
  .LinkGrid { grid-template-columns:repeat(2, 1fr); gap:12px; }
  .ToolGrid { grid-template-columns:1fr; gap:14px; }
  .ROIFields { grid-template-columns:1fr; }
  .TowerGrid { grid-template-columns:repeat(2, 1fr); gap:10px; }
  .TowerCard-image { height:118px; }
  .SettingsRow { flex-direction:column; align-items:stretch; gap:10px; }
  .SettingsRow-label { width:auto; max-width:none; }
  .SettingsRow-control { margin-left:0; }
  .SettingsRow .Field { width:100% !important; }
  .SettingsRow[data-control="toggle"] { flex-direction:row; align-items:center; }
  .SettingsRow[data-control="toggle"] .SettingsRow-control { margin-left:auto; }
  /* Two buttons that will not shrink against a paragraph that will: the text
     column collapsed to about ten characters a line. Stacked, the sentence gets
     the width and the buttons sit under it at a size a thumb can hit. */
  .SignedBanner { flex-wrap:wrap; align-items:flex-start; padding:14px; gap:8px 10px; }
  .SignedBanner > span { flex:1 1 100%; order:2; }
  .SignedBanner > .icon { order:1; margin-top:2px; }
  .SignedBanner .Button { order:3; flex:1 1 auto; justify-content:center; }
  /* A section's note belongs under its title on a phone, not beside it, where
     two words a line is what "beside" means. */
  .SectionHeader { flex-wrap:wrap; align-items:flex-start; gap:2px 12px; }
  .SectionHeader-count { flex:1 1 100%; }
  .SignIn { padding:24px; }
  .SignIn-wrap { padding:40px 0 60px; }
  .Settings .SectionHeader { margin-top:36px; }
  /* Today on a phone leads with the links: a rep in a truck wants the thing they
     are about to tap, and the counts are a scroll away in the list underneath. */
  .Today-quicklinks { margin:16px 0 0; }
  .Today-quicklinks .SectionHeader { display:none; }
  [data-page="today"] .BriefingHeader-tiles { display:none; }
  /* Rep chips share the width under the date as photos alone; the name stays
     for screen readers (#20). A project row stacks its next step under the name. */
  [data-page="today"] .BriefingHeader-top { flex-direction: column; align-items: stretch; }
  .BriefingHeader-filter { flex-wrap: nowrap; width: 100%; }
  .BriefingHeader-filter .Chip { flex: 1 1 0; min-width: 0; justify-content: center; min-height: 40px; }
  .BriefingHeader-filter .Chip[data-kind="filter"] { flex: none; }
  .BriefingHeader-filter .Chip[data-kind="filter-rep"] { padding: 4px; }
  .BriefingHeader-filter .Chip[data-kind="filter-rep"] .Avatar { width: 30px; height: 30px; }
  .BriefingHeader-filter .Chip[data-kind="filter-rep"] .Chip-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .TableHeader[data-for="ProjectTableRow"] { display: none; }
  /* with the table header hidden, the first group sits on the column gap alone (#22) */
  .TableHeader[data-for="ProjectTableRow"] + .GroupLabel { margin-top: 0; }
  .ProjectTableRow { grid-template-columns: minmax(0, 1fr) 32px; grid-template-areas: "name rep" "next next"; row-gap: 8px; }
  .ProjectTableRow > :nth-child(1) { grid-area: name; }
  .ProjectTableRow > :nth-child(2), .ProjectTableRow > :nth-child(3) { display: none; }
  .ProjectTableRow > :nth-child(4) { grid-area: next; }
  .ProjectTableRow > :nth-child(5) { grid-area: rep; }
  /* A prospect on a phone: tier and name, then contact and status. */
  .TableHeader[data-for="ProspectRow"] { display: none; }
  .ProspectRow { grid-template-columns: 28px minmax(0, 1fr); row-gap: 6px; }
  .ProspectRow > :nth-child(3), .ProspectRow > :nth-child(4) { display: none; }
  .ProspectRow > :nth-child(5), .ProspectRow > :nth-child(6) { grid-column: 2; }
  .Prospects-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  /* A tinted row needs its own gutter, or the text sits on the tint's edge. */
  .ProjectTableRow { padding: 14px 0; }
  .ProjectTableRow[data-push="true"] { padding: 14px; margin-bottom: 8px; }
  .ProjectTableRow-next { gap: 4px; }
}

.Today-strip { margin:16px 0 6px; }
.Settings-empty { display:flex; gap:10px; align-items:center; padding:18px; border-radius:10px; background:var(--mist); color:var(--navy-400); }

@media (max-width: 719px) {
  /* The title is the thing; the sentence under it is explanation the screen has
     no room for, and "Open" is what the whole bar already means. */
  .ToolStrip { padding:0 15px; gap:12px; }
  .ToolStrip-sub, .ToolStrip-action { display:none; }
  .ToolStrip-badge { width:34px; height:34px; }
  .Today-strip { margin:12px 0 0; }
}
