/* Taylor-first phone layout (2026-11-24, Option A). js/shared/phone-shell.js
   adds html.ascent-phone on screens 640px wide or less (unless the agent chose
   "Open full site"), and data-ph-tab = taylor | today | messages.
   Every rule here is scoped to html.ascent-phone, so desktop is untouched. */

html.ascent-phone { --ph-tabs-h: calc(64px + env(safe-area-inset-bottom, 0px)); }

/* Tab bar */
#ph-tabs { display: none; }
html.ascent-phone #ph-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10060;
  height: var(--ph-tabs-h); box-sizing: border-box; padding: 4px 0 env(safe-area-inset-bottom, 0px);
  background: #FFFFFF; border-top: 1px solid #E3E5E9;
}
html.ascent-phone .ph-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #5B616B; cursor: pointer;
}
html.ascent-phone .ph-tab .ti { font-size: 22px; }
html.ascent-phone .ph-tab.on { color: #D85A30; font-weight: 700; }
html.ascent-phone .ph-tab:focus-visible { outline: 2px solid #D85A30; outline-offset: -4px; }

/* No workflows, sidebar, desktop top bar or old bottom bar on a phone */
html.ascent-phone .sidebar,
html.ascent-phone .mobile-nav,
html.ascent-phone .topbar,
html.ascent-phone .taylor-launcher { display: none !important; }
html.ascent-phone .main { padding-bottom: calc(var(--ph-tabs-h) + 16px); }

/* Taylor tab: Taylor fills the screen above the tab bar */
html.ascent-phone .taylor-panel { bottom: var(--ph-tabs-h) !important; top: 0 !important; height: auto !important; max-height: none !important; }
html.ascent-phone .taylor-panel .taylor-head button.taylor-hbtn.taylor-close,
html.ascent-phone .taylor-panel #taylor-minbtn { display: none !important; }
html.ascent-phone[data-ph-tab="today"] .taylor-panel,
html.ascent-phone[data-ph-tab="messages"] .taylor-panel { display: none !important; }

/* Messages tab: the texts panel fills the screen above the tab bar */
html.ascent-phone #texts-panel {
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: var(--ph-tabs-h) !important;
  width: auto !important; height: auto !important; max-height: none !important; max-width: none !important;
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
}
html.ascent-phone #texts-panel [data-act="close"],
html.ascent-phone #texts-panel [data-act="min"] { display: none !important; }
html.ascent-phone:not([data-ph-tab="messages"]) #texts-panel { display: none !important; }

/* Today tab: the Dashboard's day items only */
.ph-head { display: none; }
html.ascent-phone .ph-head { display: flex; align-items: center; gap: 10px; padding: 12px 2px 14px; }
html.ascent-phone .ph-head h1 { flex: 1; margin: 0; text-align: center; font-size: 17px; font-weight: 800; color: #1B1D22; }
html.ascent-phone .ph-head-sp { width: 40px; flex: none; }
html.ascent-phone #tab-today > *:not(#ph-today-head):not(#dt-planner) { display: none !important; }
html.ascent-phone #dt-planner { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px; }
html.ascent-phone #dt-planner .dt-card { width: auto; margin: 0; }
html.ascent-phone #dt-planner > .dt-col { display: contents; }
html.ascent-phone #dt-planner .dt-col-market > .dash-section--market,
html.ascent-phone #dt-planner .dt-today-all,
html.ascent-phone #dt-planner .dt-card:has(#dt-goals),
html.ascent-phone #dt-planner #dt-taylor { display: none !important; }
/* Order: who to contact and to-dos first, then today's schedule and the week */
html.ascent-phone #dt-planner #dt-brief { order: 1; }
html.ascent-phone #dt-planner .dt-card:has(#dt-check-sub) { order: 2; }
html.ascent-phone #dt-planner .dt-card:has(#dt-cal-sub) { order: 3; }
html.ascent-phone #dt-planner .dt-next { order: 4; }

/* The agent's initials (Taylor header and Today header) */
html.ascent-phone .ph-me {
  width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; padding: 0;
  background: #D85A30; color: #FFFFFF; font: 700 13px/1 Inter, system-ui, sans-serif; cursor: pointer;
  display: grid; place-items: center;
}
html.ascent-phone .ph-me:focus-visible { outline: 2px solid #D85A30; outline-offset: 2px; }
.ph-me { display: none; }
html.ascent-phone .taylor-head .ph-me { margin-right: 4px; }

/* Account sheet */
.ph-sheet-wrap { position: fixed; inset: 0; z-index: 10080; background: rgba(17, 17, 20, .45); display: flex; align-items: flex-end; }
.ph-sheet {
  width: 100%; max-height: 88vh; overflow-y: auto; box-sizing: border-box;
  background: #FFFFFF; border-radius: 18px 18px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  font-family: Inter, system-ui, sans-serif; color: #1B1D22; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
}
.ph-sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #D7D9DE; margin: 0 auto 10px; }
.ph-sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ph-sheet-top h2 { margin: 0; font-size: 17px; font-weight: 800; }
.ph-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #F3F4F6; font-size: 18px; color: #1B1D22; cursor: pointer; }
.ph-who { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; border-bottom: 1px solid #ECEDF0; }
.ph-av { width: 44px; height: 44px; border-radius: 50%; background: #D85A30; color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.ph-who b { display: block; font-size: 16px; }
.ph-who small { display: block; font-size: 14px; color: #5B616B; margin-top: 2px; }
.ph-group { padding: 12px 0; border-bottom: 1px solid #ECEDF0; }
.ph-group:last-of-type { border-bottom: 0; }
.ph-group-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6D6D76; margin-bottom: 4px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 15px; }
.ph-row[hidden] { display: none; }
.ph-row-sub { padding-left: 0; } /* lines up with the rows above (2026-11-25, Mark) */
.ph-switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: #D7D9DE; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.ph-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.ph-switch:checked { background: #D85A30; }
.ph-switch:checked::after { left: 21px; }
.ph-switch:focus-visible { outline: 2px solid #D85A30; outline-offset: 2px; }
.ph-select { height: 40px; border: 1px solid #E3E5E9; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 16px; background: #FFFFFF; color: #1B1D22; }
.ph-act { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 600; color: #1B1D22; text-align: left; cursor: pointer; }
.ph-act .ti { font-size: 20px; color: #D85A30; flex: none; }
.ph-act small { display: block; font-size: 13px; font-weight: 400; color: #5B616B; margin-top: 2px; }
.ph-note { margin: 10px 0 0; font-size: 13px; color: #6D6D76; text-align: center; }

/* Summary cards for Taylor's links (2026-11-25) */
.ph-card-loading { margin: 18px 0 26px; text-align: center; font-size: 15px; color: #5B616B; }
.ph-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ph-card-ic { width: 52px; height: 52px; border-radius: 12px; background: #FDE7E2; color: #D85A30; display: grid; place-items: center; font-size: 24px; flex: none; }
.ph-card-t { flex: 1; min-width: 0; }
.ph-card-kind { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6D6D76; }
.ph-card-t h2 { margin: 2px 0 0; font-size: 18px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ph-card-sub { font-size: 14px; color: #5B616B; margin-top: 2px; }
.ph-pill { align-self: center; padding: 4px 10px; border-radius: 999px; background: #F1F2F4; color: #1B1D22; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ph-card .ph-x { flex: none; }
.ph-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
.ph-stat { padding: 10px; border-radius: 10px; background: #F7F7F9; min-width: 0; }
.ph-stat b { display: block; font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-stat span { font-size: 13px; color: #5B616B; }
.ph-card-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ph-card-line { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #1B1D22; margin-bottom: 6px; overflow-wrap: anywhere; }
.ph-card-line .ti { color: #D85A30; font-size: 18px; flex: none; }
.ph-muted { color: #5B616B; font-size: 14px; }
.ph-card-quote { padding: 12px 14px; border-radius: 10px; background: #F7F7F9; font-size: 15px; line-height: 1.5; margin-bottom: 10px; white-space: pre-line; }
.ph-card-next, .ph-card-late { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; margin: 4px 0 8px; }
.ph-card-next .ti { color: #D85A30; font-size: 18px; margin-top: 1px; flex: none; }
.ph-card-late { padding: 10px 12px; border-radius: 10px; background: #F6E3DA; color: #9C3A1A; }
.ph-card-late .ti { font-size: 18px; margin-top: 1px; flex: none; }
.ph-card-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ph-card-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.ph-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 12px; border: 1px solid #E3E5E9; border-radius: 10px; background: #FFFFFF; font: inherit; font-size: 15px; font-weight: 600; color: #1B1D22; text-decoration: none; cursor: pointer; text-align: center; }
.ph-btn-main { border: 0; background: #D85A30; color: #FFFFFF; font-weight: 700; }
.ph-btn:focus-visible { outline: 2px solid #D85A30; outline-offset: 2px; }

/* Messages: Texts | Email switch (2026-11-25) */
html.ascent-phone { --ph-seg-h: calc(68px + env(safe-area-inset-top, 0px)); } /* +10px so the Texts/Email switch isn't flush with the top (2026-11-25) */
#ph-msg-seg { display: none; }
html.ascent-phone[data-ph-tab="messages"] #ph-msg-seg {
  display: flex; align-items: flex-end; justify-content: center;
  position: fixed; top: 0; left: 0; right: 0; z-index: 10055; height: var(--ph-seg-h); box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 8px; background: #FFFFFF; border-bottom: 1px solid #ECEDF0;
}
.ph-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 360px; padding: 4px; border-radius: 12px; background: #F1F2F4; }
.ph-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: #5B616B; cursor: pointer; }
.ph-seg button .ti { font-size: 18px; }
.ph-seg button.on { background: #FFFFFF; color: #D85A30; font-weight: 700; box-shadow: 0 1px 3px rgba(20, 22, 28, .12); }
.ph-seg button:focus-visible { outline: 2px solid #D85A30; outline-offset: 1px; }
html.ascent-phone[data-ph-tab="messages"] #texts-panel { top: var(--ph-seg-h) !important; }
html.ascent-phone[data-ph-tab="messages"][data-ph-msg="email"] #texts-panel { display: none !important; }
html.ascent-phone[data-ph-tab="messages"][data-ph-msg="email"] .main { padding-top: var(--ph-seg-h); }

/* Pop-ups on phones (2026-11-25, Mark: Email setup's title was hidden under the
   Texts | Email bar). Every pop-up sits above the phone bars; Email setup
   fills the screen. */
html.ascent-phone .lw-modal-overlay { z-index: 10090; }
html.ascent-phone .jd-email-setup-overlay { padding: 0; align-items: stretch; }
html.ascent-phone .jd-email-setup-overlay .lw-modal { width: 100%; max-height: none; height: 100%; border: 0; border-radius: 0; }
html.ascent-phone .jd-email-setup-overlay .lw-modal-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
html.ascent-phone .jd-email-setup-overlay .lw-modal-head .lw-icon-btn { width: 44px; height: 44px; flex: none; }
html.ascent-phone .jd-email-setup-overlay .lw-modal-body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* Phone Today card (2026-11-25, Mark picked option 3): one card replaces
   "To do today" and the hourly calendar on the phone. Built by
   paintPhoneToday() in js/shared/dashboard-today.js. */
.dt-phone-today { display: none; }
html.ascent-phone #dt-planner .dt-phone-today { display: block; order: 0; padding: 0; overflow: hidden; }
html.ascent-phone #dt-planner .dt-card:has(#dt-check-sub),
html.ascent-phone #dt-planner .dt-card:has(#dt-cal-sub) { display: none !important; }
.ph-td-hero { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #ECEDF0; }
.ph-td-eb { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #D85A30; }
.ph-td-hero.late .ph-td-eb { color: #9A4A22; }
.ph-td-hero.clear .ph-td-eb { color: #13704B; }
.ph-td-title { font-size: 18px; font-weight: 800; line-height: 1.25; color: #1B1D22; }
.ph-td-sub { font-size: 14px; color: #5B616B; line-height: 1.4; }
.ph-td-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ph-td-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 1px solid #E3E5E9; border-radius: 999px; background: #FFFFFF; color: #1B1D22; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ph-td-btn.p { background: #D85A30; border-color: #D85A30; color: #FFFFFF; }
.ph-td-btn .ti { font-size: 17px; }
.ph-td-fold { border-top: 1px solid #ECEDF0; }
.ph-td-fh { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: transparent; font: inherit; font-size: 15.5px; font-weight: 700; color: #1B1D22; text-align: left; cursor: pointer; }
.ph-td-fh > span:first-child { flex: 1; }
.ph-td-fh .ti { font-size: 19px; color: #5B616B; }
.ph-td-n { min-width: 26px; padding: 3px 8px; box-sizing: border-box; border-radius: 999px; background: #F1F2F4; color: #5B616B; font-size: 13px; font-weight: 700; text-align: center; }
.ph-td-n.hot { background: #F6E7DE; color: #9A4A22; }
.ph-td-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 16px; border: 0; border-top: 1px solid #F1F2F4; background: transparent; font: inherit; text-align: left; color: #1B1D22; cursor: pointer; box-sizing: border-box; }
.ph-td-row.past { opacity: .55; }
.ph-td-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; background: #FDF1EC; color: #C2491F; display: grid; place-items: center; font-size: 17px; }
.ph-td-row.late .ph-td-ic { background: #F6E7DE; color: #9A4A22; }
.ph-td-time { flex: none; width: 66px; font-size: 13.5px; font-weight: 700; color: #5B616B; }
.ph-td-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-td-txt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-td-txt small { font-size: 13px; color: #5B616B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-td-row .dt-tag { flex: none; }

/* Market column holds Goals and Next 7 days since 2026-11-25; on the phone only Next 7 days shows. */
html.ascent-phone #dt-planner > .dt-col-market { display: contents; }
.ph-td-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #F1F2F4; color: #1B1D22; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.ph-td-act { flex: none; padding: 5px 11px; border: 1px solid #F1C7B8; border-radius: 999px; color: #B5461F; font-size: 13px; font-weight: 700; }
/* Messages header: the same see-through fade as the top of Taylor's window
   on desktop (.taylor-head::before in taylor-widget.js), 2026-11-25, Mark.
   The bar itself is clear; a layer behind it carries the gray-to-clear
   gradient and the blur, masked so it fades out with no hard line. The bar
   runs 16px past where the content starts, so the fade ends over the
   content instead of at a straight edge. */
html.ascent-phone[data-ph-tab="messages"] #ph-msg-seg {
  background: transparent; border-bottom: 0;
  height: calc(var(--ph-seg-h) + 16px); padding-bottom: 24px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  isolation: isolate;
}
html.ascent-phone[data-ph-tab="messages"] #ph-msg-seg::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(241,242,245,0.82) 0%, rgba(241,242,245,0.55) 50%, rgba(241,242,245,0) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
html.ascent-phone[data-ph-tab="messages"] #ph-msg-seg .ph-seg { background: rgba(228,230,234,0.85); }

/* Taylor header on phones, larger (2026-11-25, Mark: initials a little larger,
   menu icon and the Taylor name at least 15% larger). */
html.ascent-phone .ph-me { width: 42px; height: 42px; font-size: 15px; }
html.ascent-phone .taylor-panel #taylor-menubtn { width: 40px; height: 40px; }
html.ascent-phone .taylor-panel #taylor-menubtn i { font-size: 22px; }
html.ascent-phone .taylor-panel .taylor-status { font-size: 16.5px; gap: 8px; }
html.ascent-phone .taylor-panel .taylor-status-dot { width: 9.5px; height: 9.5px; }

/* Taylor chat text on phones matches Muse's size (2026-11-25, Mark sent a
   Muse screenshot: about 20px text on a 27px line). Was 14px. */
html.ascent-phone .taylor-panel .taylor-bubble { font-size: 20px; line-height: 1.38; padding: 10px 14px; border-radius: 18px; }
html.ascent-phone .taylor-panel .taylor-msg-row.taylor-in .taylor-bubble { border-bottom-left-radius: 18px; }
html.ascent-phone .taylor-panel .taylor-msg-row.taylor-out .taylor-bubble { border-bottom-right-radius: 18px; }

/* Taylor menu on phones matches Muse's menu (2026-11-25, Mark): items about
   21px with 23px icons, section headings 16px, lighter text 19px, title 30px. */
html.ascent-phone .taylor-panel .taylor-dr-head { font-size: 30px; padding: 6px 4px 10px 10px; }
html.ascent-phone .taylor-panel #taylor-drawer-close { width: 44px; height: 44px; }
html.ascent-phone .taylor-panel #taylor-drawer-close i { font-size: 24px; }
html.ascent-phone .taylor-panel .taylor-dr-sec { font-size: 16px; padding: 18px 10px 8px; }
html.ascent-phone .taylor-panel .taylor-dr-item { height: 54px; gap: 14px; font-size: 21px; border-radius: 14px; }
html.ascent-phone .taylor-panel .taylor-dr-ico { width: 38px; height: 38px; border-radius: 11px; }
html.ascent-phone .taylor-panel .taylor-dr-ico i { font-size: 23px; }
html.ascent-phone .taylor-panel .taylor-dr-day { font-size: 16px; padding: 18px 10px 8px; }
html.ascent-phone .taylor-panel .taylor-dr-conv { padding: 9px 10px; border-radius: 14px; }
html.ascent-phone .taylor-panel .taylor-dr-conv-t { font-size: 19px; }
html.ascent-phone .taylor-panel .taylor-dr-conv-w { font-size: 16px; margin-top: 3px; }
html.ascent-phone .taylor-panel .taylor-dr-empty { font-size: 19px; }

/* Your account sheet sized like the Taylor menu and Muse (2026-11-25, Mark):
   rows 21px, section headings 16px, lighter text 19px, title 30px. */
.ph-sheet:not(.ph-card) .ph-sheet-top h2 { font-size: 30px; }
.ph-sheet:not(.ph-card) .ph-x { width: 44px; height: 44px; font-size: 22px; }
.ph-sheet:not(.ph-card) .ph-av { width: 56px; height: 56px; font-size: 19px; }
.ph-sheet:not(.ph-card) .ph-who { gap: 14px; }
.ph-sheet:not(.ph-card) .ph-who b { font-size: 21px; }
.ph-sheet:not(.ph-card) .ph-who small { font-size: 17px; margin-top: 3px; }
.ph-sheet:not(.ph-card) .ph-group { padding: 16px 0; }
.ph-sheet:not(.ph-card) .ph-group-h { font-size: 16px; margin-bottom: 6px; }
.ph-sheet:not(.ph-card) .ph-row { font-size: 21px; min-height: 56px; }
.ph-sheet:not(.ph-card) .ph-switch { width: 56px; height: 34px; border-radius: 17px; }
.ph-sheet:not(.ph-card) .ph-switch::after { width: 28px; height: 28px; }
.ph-sheet:not(.ph-card) .ph-switch:checked::after { left: 25px; }
.ph-sheet:not(.ph-card) .ph-select { height: 46px; font-size: 19px; padding: 0 12px; border-radius: 10px; }
.ph-sheet:not(.ph-card) .ph-act { font-size: 21px; min-height: 58px; gap: 14px; }
.ph-sheet:not(.ph-card) .ph-act .ti { font-size: 23px; }
.ph-sheet:not(.ph-card) .ph-act small { font-size: 17px; }
.ph-sheet:not(.ph-card) .ph-note { font-size: 17px; line-height: 1.4; }

/* Chat timestamps on phones match Muse (2026-11-25, Mark): about 18px, with
   more room above and below. Were 13px. */
html.ascent-phone .taylor-panel .taylor-time { font-size: 18px; margin: 16px 0 6px; }

/* Theme selector in Your account (2026-11-25): Light · Night · Match phone. */
.ph-theme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #F1F2F4; margin-top: 4px; }
.ph-theme button { height: 44px; border: 0; border-radius: 10px; background: transparent; font: 500 17px/1 Inter, system-ui, sans-serif; color: #3A4049; cursor: pointer; }
.ph-theme button.on { background: #D85A30; color: #FFFFFF; font-weight: 700; }
.ph-theme button:focus-visible { outline: 2px solid #D85A30; outline-offset: 1px; }
.ph-theme-hint { margin: 8px 0 0; font-size: 16px; line-height: 1.35; color: #5B616B; }

/* Message box text matches the chat on phones (2026-11-25, Mark): 20px on a
   1.38 line, growing to five lines (taylorAutoGrow). */
html.ascent-phone .taylor-panel .taylor-input { font-size: 20px; line-height: 1.38; padding: 7px 2px; }
html.ascent-phone .taylor-panel .taylor-line .taylor-input-row { padding-top: 3px; padding-bottom: 3px; }
html.ascent-phone .taylor-panel .taylor-line .taylor-mic,
html.ascent-phone .taylor-panel .taylor-line .taylor-send { margin-bottom: 2px; }

/* Room for the larger Today and Messages text (css/phone-text-scale.css,
   2026-11-25): boxes with a fixed size that held the old text. */
html.ascent-phone #tab-today :is(.ph-td-ic, .ph-td-av, .dtt-ic) { width: 40px; height: 40px; }
html.ascent-phone #tab-today :is(.ph-td-time, .dt-stime) { width: 92px; }
html.ascent-phone #tab-today .dt-box { width: 24px; height: 24px; }
html.ascent-phone #tab-today .dtb-n { width: 28px; height: 28px; }
html.ascent-phone #tab-today .dtb-chip { height: auto; min-height: 36px; }
html.ascent-phone #tab-today .dt-db { height: 46px; }
html.ascent-phone #tab-today .dt-day i { max-width: 40px; }
html.ascent-phone #tab-today .dt-goal-pw { min-width: 78px; }
html.ascent-phone #tab-today .dt-hr span { width: 60px; left: -68px; }
html.ascent-phone #texts-panel .texts-input { height: auto; min-height: 40px; }
/* With the larger text, let row titles and details wrap instead of cutting off. */
html.ascent-phone #tab-today :is(.ph-td-txt b, .ph-td-txt small) { white-space: normal; overflow: visible; text-overflow: clip; }

/* Sheets fit what Safari actually shows (2026-11-25, Mark: on the iPhone the
   account sheet's top and X sat under the address bar). vh counts the space
   behind Safari's toolbars, dvh doesn't. The title row stays pinned while
   the sheet scrolls, so X is always reachable. */
.ph-sheet-wrap { height: 100vh; height: 100dvh; top: auto; bottom: 0; }
.ph-sheet { max-height: calc(100vh - 40px); max-height: calc(100dvh - 24px); }
.ph-sheet-top { position: sticky; top: -10px; z-index: 2; background: inherit; margin: 0 -16px 8px; padding: 8px 16px; }
.ph-sheet-grab { position: relative; z-index: 3; }

/* Texts/Email switch back to a modest size (2026-11-26, Mark: too big after
   the 1.4x text scale), and the bottom tab labels 2px larger. */
html.ascent-phone .ph-seg button { font-size: 16px; min-height: 40px; }
html.ascent-phone .ph-seg button .ti { font-size: 18px; }
html.ascent-phone .ph-tab { font-size: 16px; }

/* Dropdown menus and the Email setup pop-up header at the phone text size
   (2026-11-26): they sit outside the generated phone-text-scale.css. */
html.ascent-phone .as-pop-head { font-size: 16px; padding: 11px 16px; }
html.ascent-phone .as-group { font-size: 15px; }
html.ascent-phone .as-opt { font-size: 18px; padding: 12px 12px; }
html.ascent-phone .jd-email-setup-overlay .lw-modal-head h3 { font-size: 22px; }
html.ascent-phone .jd-email-setup-overlay .lw-modal-head p { font-size: 17px; line-height: 1.35; }

/* A little more room between the summary line and the tiles (2026-11-26, Mark). */
html.ascent-phone .taylor-welcome .taylor-qa-grid { margin-top: 12px; }
