/* ---------- Phones (James, 2026-10-15) ----------
   Everything here sits inside one media query, under 768px wide, so the desktop never reads a line of it.
   It lives in its own cascade layer: an !important rule in a layer outranks every unlayered !important rule,
   so these win over the older phone rules without a specificity fight. Plain (not !important) rules here
   only fill gaps: any page rule beats them.
   Two thumbs: titles centred, action rows split edge to edge with the main action on the right, every tap target
   48 by 48 with 12px clear between neighbours, nothing scrolls sideways, fields 16px so iOS never zooms, no hover
   (thumb.js moves hover rules behind a desktop-only query) and a press shows instead.
   One proportional scale, sized to the 48px controls (James: "every thing proportionately sized from buttons to spacings"):
     text      15px body, labels and values · 13px secondary · 12px counts · 17px page titles · 15px section titles · 22px record names
     controls  48px tall, 15px label, 16px side padding, 8px corners · labels (pills) 24px, 13px, round · icons 18px, 20px alone
     space     12px side margin (--g), the same line inside every list surface, and list surfaces run edge to edge
               (James, 2026-10-15: "utilize all the space available on the screen") · 12px between controls (--tg) */
@layer thumb{
@media (max-width:767px){
  :root{--tt:48px;--tg:12px;--g:12px;--m-fs:15px;--m-fs-2:13px;--m-fs-3:12px;--m-r:8px;--m-rc:12px}

  /* ---- the page is exactly the screen wide; only strips meant to scroll sideways do ---- */
  html,body{max-width:100%!important;overflow-x:clip!important}
  img,video,canvas,iframe,pre{max-width:100%}

  /* ---- 48px targets ---- */
  button,.btn,a.btn,[role=button],[role=tab],[role=menuitem],.chip,.tab,.td-tile,select,summary,button.stg,.dtc,.pv{min-height:48px!important}
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=color]):not([type=submit]):not([type=button]),select{min-height:48px!important;font-size:16px!important}
  textarea,[contenteditable=true],[contenteditable=""]{font-size:16px!important}
  /* short labels and icons get the full width too; in a strip they keep their size instead of squeezing */
  .chip,.tab,.td-tile,.seg button,.setnav button,button.stg,.dtc,.pv,.btn.x,.mm-dots,.cdots,.pdots,.tdz,.gm-ib,.devb,button[aria-label]:empty{min-width:48px!important}
  /* the theme button only: .tb is also the body of every timeline entry and email (a 48px box there hid the text) */
  .theme-btn{width:48px!important;height:48px!important;min-width:48px!important}
  .chip,.tab,.td-tile,.seg button,.setnav button,.phead .fbtn{flex-shrink:0!important}
  button.stg:not([hidden]),.dtc:not([hidden]),.pv:not([hidden]){display:inline-flex!important;align-items:center!important}
  a.pill[href]:not([hidden]),a.pill[data-jump]:not([hidden]){min-height:48px!important;display:inline-flex!important;align-items:center!important;padding:0 14px!important}
  /* a checkbox in a label: the whole label is the target */
  label:has(> input[type=checkbox]),label:has(> input[type=radio]){min-height:48px!important;display:inline-flex;align-items:center!important;gap:10px!important}
  label:has(> input[type=checkbox]) input,label:has(> input[type=radio]) input{width:22px!important;height:22px!important;margin:0!important;flex:none}
  /* a checkbox on its own: a 22px box drawn inside a 48px target */
  input[type=checkbox]:not(label *):not(.sw *){-webkit-appearance:none!important;appearance:none!important;width:48px!important;height:48px!important;min-width:48px!important;margin:0 0 0 -13px!important;padding:0!important;
    border:13px solid transparent!important;border-radius:19px!important;background:var(--surface,#fff) padding-box!important;box-shadow:inset 0 0 0 1.5px var(--line-2,#c9c9cf)!important;flex:none!important;cursor:pointer;opacity:1!important;outline-offset:-10px}
  input[type=checkbox]:not(label *):not(.sw *):checked{background:var(--accent,#5e6ad2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat padding-box!important;box-shadow:none!important}
  /* controls that only showed on mouse hover are always there */
  .cdots,.pdots,.tdz,td.ck input,.dropb,.nudgeb,#devl .da,.ibx-qpc .x,.mm-dots{opacity:1!important}
  .cdots,.pdots,.mm-dots,.gm-ib,.tdz,.sh-head .x,.btn.x{width:48px!important;height:48px!important;padding:0!important;justify-content:center!important}

  /* ---- 12px between neighbouring targets ---- */
  .acts,.td-acts,.tdbacts,.tdbulk,.chips,.tabs,#tabs,.td-tiles,.setnav,.seg,.row,.mmore-in,.ibx-tools,.ibx-top,.ibx-bar,.td-ch,.copnext,.cnb,.em-tools,.em-send,#out .bar,.pc .ft,header,.wrap>.top,.top[data-m-bar] .bar,.mv-ph,.ibx-qp{gap:var(--tg)!important}
  .ibx-tools{margin-top:0!important}
  .seg:not(#tabs){height:auto!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important;flex-wrap:wrap}
  .seg:not(#tabs) button{border:1px solid var(--line-2,#d6d6dc)!important;border-radius:var(--m-r)!important;padding:0 16px!important;box-shadow:none!important}
  .seg:not(#tabs) button.on,.seg:not(#tabs) button[aria-pressed=true]{border-color:transparent!important;background:var(--sel,var(--surface-2))!important;color:var(--text)!important}
  .seg:not(#tabs) button[data-mode],.seg:not(#tabs) button[data-pv]{width:48px!important;padding:0!important}
  .seg#tabs:not(.bar #tabs){flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;height:auto!important}
  .seg#tabs:not(.bar #tabs)::-webkit-scrollbar{display:none}
  .tabs,.seg#tabs{-webkit-overflow-scrolling:touch}

  /* ---- top bar: the two buttons balance the search between them ---- */
  .top[data-m-bar] .bar{padding:8px var(--g)!important;min-height:64px!important}
  .top[data-m-bar] .brand{display:none!important}
  body.frame-view .top[data-m-bar] .brand{display:flex!important;flex:1 1 auto!important;justify-content:center!important;order:2!important}
  .top[data-m-bar] .asstb{order:0!important;width:48px!important;height:48px!important;border:4px solid transparent!important;background-clip:padding-box!important;box-shadow:inset 0 0 0 1px var(--line-2,#d6d6dc)!important;border-radius:var(--m-rc)!important}
  .top[data-m-bar] .asstb svg{width:20px!important;height:20px!important}
  .top[data-m-bar] .search{order:2!important;flex:1 1 auto!important}
  .top[data-m-bar] .search input{height:48px!important;padding-left:42px!important;border-radius:var(--m-r)!important}
  .top[data-m-bar] .search svg{left:14px!important;width:18px!important;height:18px!important}
  .top[data-m-bar] .acct{order:3!important;margin-left:0!important}
  /* the refresh button, between the search and the avatar, the same 48px as the ECW Success button (James, 2026-10-16) */
  .top[data-m-bar] .rfb{order:3!important;width:48px!important;height:48px!important;min-width:48px!important;border:4px solid transparent!important;background-clip:padding-box!important;box-shadow:inset 0 0 0 1px var(--line-2,#d6d6dc)!important;border-radius:var(--m-rc)!important;color:var(--text)!important}
  .top[data-m-bar] .rfb svg{width:20px!important;height:20px!important}
  .top[data-m-bar] .acct .avatar{width:48px!important;height:48px!important;border:6px solid transparent!important;background-clip:padding-box!important;font-size:15px!important}

  /* ---- page titles centred, their controls in balanced rows under them ---- */
  .phead{flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;row-gap:12px!important;column-gap:12px!important;padding:12px var(--g) 16px!important}
  .phead>h2{flex:1 0 100%!important;text-align:center!important;padding:0!important;margin:0!important;line-height:24px!important}
  .phead>span[style*="flex:1"]{display:none!important}
  .phead>.small{flex:1 0 100%!important;text-align:center!important;padding:0!important}
  .phead>.chips{order:5!important;flex:1 0 100%!important;margin:0!important;padding:0!important;justify-content:center!important}
  .phead>.chips:has(> .chip:nth-child(3)){justify-content:flex-start!important;margin:0 calc(-1 * var(--g))!important;padding:0 var(--g)!important}
  .phead>.chips:not(:has(> .chip:nth-child(3)))>.chip{flex:1 1 0!important;justify-content:center!important}
  .phead>.seg{margin:0!important}
  .td-h{flex-wrap:wrap!important;justify-content:center!important;text-align:center!important;row-gap:2px!important;padding:12px var(--g) 16px!important}
  .td-h>*{flex:1 0 100%!important;text-align:center!important;justify-content:center!important;margin:0!important}
  .td-h>div:first-child{flex-direction:column!important;align-items:center!important;gap:4px!important}
  .td-h .td-sub{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%;line-height:1.45}
  /* Pipeline tools: Filter and Display share the first row, the view switches fill the second */
  .phead .fbtn{flex:1 1 40%!important;justify-content:center!important}
  .phead>.seg:has([data-dens]){flex:1 1 auto!important;flex-wrap:nowrap!important}
  .phead>.seg:has([data-dens]) button{flex:1 1 0!important}
  .phead>.seg:has([data-mode]){flex:none!important;flex-wrap:nowrap!important}
  /* the pages inside Practices, Outreach and Forms: the same side margin, the title centred, tabs in a strip, the action full width */
  body:not(:has(.top[data-m-bar])) .wrap{padding-left:var(--g)!important;padding-right:var(--g)!important}
  body:not(:has(.top[data-m-bar])) .wrap>header,body:not(:has(.top[data-m-bar])) .wrap>.top{margin-left:calc(-1 * var(--g))!important;margin-right:calc(-1 * var(--g))!important;padding:0 var(--g) 16px!important;flex-wrap:wrap!important;justify-content:center!important;row-gap:12px!important;width:auto!important;min-height:0!important}
  body:not(:has(.top[data-m-bar])) .wrap>header>h1,body:not(:has(.top[data-m-bar])) .wrap>.top>h1{flex:1 0 100%!important;text-align:center!important;padding:12px 0 0!important;margin:0!important;line-height:24px!important}
  body:not(:has(.top[data-m-bar])) .wrap>header>.sp,body:not(:has(.top[data-m-bar])) .wrap>.top>.sp{display:none!important}
  body:not(:has(.top[data-m-bar])) .wrap>header>:is(.tabs,#tabs),body:not(:has(.top[data-m-bar])) .wrap>.top>:is(.tabs,#tabs){order:5!important;flex:1 0 100%!important;margin:0 calc(-1 * var(--g))!important;padding:0 var(--g)!important;width:auto!important;max-width:none!important}
  body:not(:has(.top[data-m-bar])) .wrap>header>.btn,body:not(:has(.top[data-m-bar])) .wrap>.top>.btn{order:6!important;flex:1 1 100%!important;justify-content:center!important;margin:0!important;height:48px!important}
  body:not(:has(.top[data-m-bar])) #out{padding-left:0!important;padding-right:0!important}

  /* ---- action rows: split edge to edge so both thumbs reach; the main action sits on the right ---- */
  :is(.td-it .acts,.brk .acts,.iss .acts,.sheet .acts,.td-acts,.tdbacts,.copnext .cnb,.modal .card div:has(> .btn + .btn)):not([hidden]){display:flex!important;flex-wrap:wrap!important;width:100%!important;gap:var(--tg)!important;justify-content:stretch!important}
  :is(.td-it .acts,.brk .acts,.iss .acts,.sheet .acts,.td-acts,.tdbacts,.copnext .cnb,.modal .card div:has(> .btn + .btn))>.btn{flex:1 1 0!important;min-width:fit-content!important;justify-content:center!important;margin:0!important}
  :is(.td-it .acts,.brk .acts,.iss .acts,.sheet .acts,.td-acts,.tdbacts,.copnext .cnb,.modal .card div:has(> .btn + .btn)):has(> .btn:nth-child(4):last-child):not([hidden]){display:grid!important;grid-template-columns:1fr 1fr!important}
  :is(.td-it .acts,.brk .acts,.iss .acts,.sheet .acts,.td-acts,.modal .card div:has(> .btn + .btn))>.btn:is(.primary,.pri,#myes){order:9!important}
  .modal{padding:12px!important}
  .modal .card{padding:24px var(--g) calc(16px + env(safe-area-inset-bottom))!important;gap:16px!important;border-radius:16px!important}
  .modal .card>h3{text-align:center!important}

  /* ---- Today ---- */
  .td-tiles{margin:0!important;padding:0 var(--g)!important}
  .td-tile{height:48px!important;padding:0 16px!important}
  .td-card,.brk,.today2 .iss,.td-gh,.today2 .tgroup>h3,.td-sub2,.tdbulk{padding-left:var(--g)!important;padding-right:var(--g)!important}
  .td-card{padding-top:16px!important;padding-bottom:16px!important}
  .td-card>.td-ch,.td-card>.td-it{padding-left:0!important;padding-right:0!important}
  .td-gb{padding-top:0!important}
  .td-ch{min-height:48px!important;align-items:center!important}
  .td-name{padding:14px 0!important;margin:-14px 0!important}
  .td-it{row-gap:12px!important}
  .tdbulk{flex-wrap:wrap!important}
  /* Select all and each tick box are 48px to the thumb (2026-11-18, the suggested rejects) */
  .tdball{min-height:48px!important;padding-right:8px!important}
  .tdbw{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:48px!important;min-height:48px!important;margin:-12px 0 -12px -14px!important}
  .today2 .iss{padding-top:16px!important;padding-bottom:16px!important}

  /* ---- the bottom menu: five equal targets with clear space between ---- */
  .mnav{gap:12px!important;padding-left:8px!important;padding-right:8px!important}
  .mnav button{min-width:0!important}
  .mnav svg{width:24px!important;height:24px!important}
  .mnav button span,.mnav button{font-size:11px!important}
  .mmore-in{gap:var(--tg)!important;padding-left:var(--g)!important;padding-right:var(--g)!important}
  .mmore-in button{border-radius:var(--m-rc)!important;padding:0 16px!important;font-size:var(--m-fs)!important}
  .dev{bottom:calc(var(--mnav-h,58px) + env(safe-area-inset-bottom) + 16px)!important;right:var(--g)!important}
  .devb{width:48px!important;height:48px!important;font-size:var(--m-fs-3)!important}

  /* ---- the record: close on the left, the view switch centred, the name centred ---- */
  .sheet .sh-head{padding:calc(72px + env(safe-area-inset-top)) var(--g) 0!important;text-align:center!important}
  .sheet .sh-head .x{position:absolute!important;top:calc(12px + env(safe-area-inset-top))!important;left:var(--g)!important;right:auto!important;margin:0!important}
  .sheet .recseg{position:absolute!important;top:calc(12px + env(safe-area-inset-top))!important;left:calc(var(--g) + 60px)!important;right:calc(var(--g) + 60px)!important;justify-content:center!important;display:flex!important;flex-wrap:nowrap!important;margin:0!important}
  .sheet .recseg button{flex:1 1 0!important;max-width:150px}
  .sheet .sh-name{padding-right:0!important;justify-content:center!important;text-align:center!important}
  .sheet .sh-sub{justify-content:center!important}
  .sheet .path{margin:12px calc(-1 * var(--g)) 0!important;padding:0 var(--g) 12px!important}
  .sheet .rc{padding:16px var(--g) 0!important}
  .props .pr{min-height:48px!important;align-items:center!important;padding-top:6px!important;padding-bottom:6px!important}

  /* ---- Practices cards: the stage and menu buttons are full size without making the card tall ---- */
  .pch{align-items:center!important}
  .pch .stg.mini{margin:-12px 0 -12px -14px!important;width:48px!important}
  .pch .pdots{margin:-12px -12px -12px 0!important}

  /* ---- Emails: Back and the name on top, the actions split under them, the main one on the right ---- */
  .ibx-top,.ibx .ibx-head,.ibx .ibx-aside{padding-left:var(--g)!important;padding-right:var(--g)!important}
  .ibx .ibx-row{min-height:64px;padding-left:var(--g)!important;padding-right:var(--g)!important}
  .ibx .ibx-subject.ibx-subject{margin:16px var(--g) 8px!important}
  .ibx .ibx-comp,.ibx .ibx-comp.min{margin:16px var(--g) 20px!important}
  .gm-msg,.gm-msg.gm-clp{padding-left:var(--g)!important;padding-right:var(--g)!important}
  /* the list and the thread scroll with the page, so nothing hides under the bottom menu */
  .ibx.ibx{height:auto!important;min-height:0!important;max-height:none!important}
  .ibx .ibx-l,.ibx .ibx-r,.ibx .ibx-list,.ibx .ibx-msgs{height:auto!important;max-height:none!important;overflow:visible!important;flex:none!important}
  .ibx .ibx-head{flex-wrap:wrap!important;row-gap:12px!important}
  .ibx .ibx-head>span[style*="flex:1"]{flex:1 0 100%!important;height:0!important;margin:-6px 0!important}
  .ibx .ibx-head>span[style*="flex:1"]~.btn{flex:1 1 0!important;min-width:fit-content!important;justify-content:center!important;margin:0!important;order:2}
  .ibx .ibx-head>span[style*="flex:1"]~.btn.ghost{order:1!important}
  /* a message header: the name gets its line, the date and the two buttons go under it when they do not fit */
  .gm-msg:not(.gm-clp) .gm-hd{flex-wrap:wrap!important;row-gap:0!important}
  .gm-msg:not(.gm-clp) .gm-from{flex:1 1 150px!important;min-width:0!important}
  .gm-msg:not(.gm-clp) .gm-right{margin-left:auto!important;gap:0!important}
  .gm-hd .gm-ib{margin:-8px 0!important}
  /* the reply box: what to tell the AI on its own line, then Suggest on the left and Send on the right */
  .ibx .ibx-bar,.em .em-send{flex-wrap:wrap!important}
  .ibx .ibx-bar>input,.em .em-send>input{order:0!important;flex:1 0 100%!important;width:100%!important;margin:0!important}
  .ibx .ibx-bar>.btn,.em .em-send>.btn{order:1;flex:1 1 0!important;min-width:fit-content!important;justify-content:center!important;margin:0!important}
  .ibx .ibx-bar>.btn:is(.primary,.pri),.em .em-send>.btn:is(.primary,.pri){order:2!important}
  /* a practice: close on the left, the view switch centred, the name centred, the actions split with Email them on the right */
  details.menu{border:0!important;box-shadow:none!important;padding:0!important;background:none!important;border-radius:0!important}
  .drawer .dh.rh{position:relative!important;padding:72px var(--g) 16px!important;margin-left:0!important;margin-right:0!important}
  .drawer .rc.lin,.drawer .rc{padding-left:var(--g)!important;padding-right:var(--g)!important}
  .drawer .dh.rh .rht,.drawer .dh.rh h2{text-align:center!important}
  .drawer .dh.rh h2{padding:0!important}
  .drawer>:not(.dh):not(.rc){margin-left:var(--g)!important;margin-right:var(--g)!important}
  .drawer .dh.rh .rht{flex:1 0 100%!important;width:100%!important;padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important}
  .drawer .dh.rh .rhc{justify-content:center!important;text-align:center!important}
  .drawer .dh.rh .rha{display:flex!important;flex-wrap:wrap!important;gap:var(--tg)!important;width:100%!important;margin-left:0!important}
  .drawer .dh.rh .rha>.x{position:absolute!important;top:12px!important;left:var(--g)!important;right:auto!important;margin:0!important;width:48px!important;height:48px!important;font-size:20px!important}
  .drawer .dh.rh .rha>.seg{position:absolute!important;top:12px!important;left:calc(var(--g) + 60px)!important;right:calc(var(--g) + 60px)!important;display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;margin:0!important}
  .drawer .dh.rh .rha>.seg button{flex:1 1 0!important;max-width:150px}
  .drawer .dh.rh .rha>:is(details,.btn:not(.x)){flex:1 1 0!important;min-width:fit-content!important;margin:0!important;justify-content:center!important}
  .drawer .dh.rh .rha>details>summary{width:100%!important;justify-content:center!important}
  .drawer .dh.rh .rha>details:has(> summary.pri){order:9!important}
  /* Practices filters: the search runs the full width */
  #out .bar>:first-child:has(input){flex:1 0 100%!important}
  #out .bar>:first-child:has(input) input,#pq,#vq{width:100%!important;max-width:none!important}
  /* Pipeline list: the missing documents line stops before the actions */
  .talent td[data-col=docs] .small{max-width:calc(100vw - 260px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .talent td[data-col=docs]{white-space:normal!important}
  .talent td:first-child,.talent th:first-child{padding-left:var(--g)!important}
  .talent td:last-child,.talent th:last-child{padding-right:calc(var(--g) - 12px)!important}
  .phead:has(.fbtn)>.chips{margin:0 calc(-1 * var(--g))!important;padding:0 var(--g) 2px!important}

  /* ---- every page block sits on the same 16px side margin ---- */
  :root:not(.in-crm) main>:not(.phead):not(.td-h):not(.today2):not(.ibx):not(.setwrap):not(.tw):not(iframe):not(#frames){margin-left:var(--g)!important;margin-right:var(--g)!important}
  .col h3,.board .col>h3{padding-left:var(--g)!important;padding-right:var(--g)!important}
  /* list surfaces (report cards, stage groups, form lists, practice columns and sections, MyFocus cards) run edge to edge:
     no side margin, no side border, no rounded corners; their text sits on the same 12px line as the page */
  .rgrid>.tgroup,main>.tgroup,.board>.col,body:not(:has(.top[data-m-bar])) .wrap .col,body:not(:has(.top[data-m-bar])) #out>.card,body:not(:has(.top[data-m-bar])) #view>.card,
  body:not(:has(.top[data-m-bar])) .wrap>.card,body:not(:has(.top[data-m-bar])) #out>div>.card,.drawer .rc .blk,.drawer .rcc>.blk,.drawer .rc>details.blk,.drawer .rcc>details.blk{margin-left:calc(-1 * var(--g))!important;margin-right:calc(-1 * var(--g))!important;border-radius:0!important;border-left-width:0!important;border-right-width:0!important;max-width:none!important;width:auto!important}
  .board{gap:0!important;overflow:visible!important}
  /* the Practices Email tab runs edge to edge like the CRM's Emails page */
  body:not(:has(.top[data-m-bar])) #out>.em{margin-left:calc(-1 * var(--g))!important;margin-right:calc(-1 * var(--g))!important;width:auto!important;max-width:none!important}
  .em .em-top{padding-left:var(--g)!important;padding-right:var(--g)!important}
  .board>.col{border-top-width:0!important;border-bottom:1px solid var(--line)!important}
  .board>.col:first-child{border-top:1px solid var(--line)!important}

  /* ---- Settings ---- */
  .setwrap{padding-left:var(--g)!important;padding-right:var(--g)!important}
  .setnav{margin:0 calc(-1 * var(--g)) 16px!important;padding:0 var(--g) 12px!important}
  .setnav button{height:48px!important}
  .settings [style*="display:flex"],.settings [style*="display: flex"]{gap:var(--tg)!important}

  /* ================= the proportional scale ================= */
  /* text: the body and every primary label 15px, secondary 13px, counts 12px */
  body{font-size:var(--m-fs)!important;line-height:1.45!important}
  .btn:not(.link),button.chip,.chip,.tab,.seg button:not([data-mode]):not([data-pv]),.setnav button,.fbtn,.td-tile,.stp,.mnu button,.menu button,summary.btn,.ibx-replybtn,button.link,.btn.link,a.btn,label.btn,
  button.stg:not(.mini),.dtc,.pv,.pv .faint,.pv-ro,.mv-phc,.mv-pvt,.ibx-qpadd,.qdrop .qi,.qdrop button,.qdrop a,.acct .menu button{font-size:var(--m-fs)!important}
  .td-name,.td-it,.td-it>div:first-child,.td-it span.muted,.iss .t,.brk,.pch b,.pc,.col h3,.board h3,.rb.rpt,.rb.rpt .rl,.rb.rpt b,.talent td,.talent td b,.tli .tb,.gm-name,.gm-snip,.gm-from,
  .ibx .ibx-row .n,.ibx .ibx-row .t,.ibx .ibx-head b,.item .top b,.item .top,.sec,.sec p,.banner,.kv,.kv>*,.mh .nm b,.ivr,.dnt b,.jt b,.jcur,.blk,.drawer .rc,.props .pr,.si-main,.td-si,.isslist .t,
  .card,span.status,.mmore-in button,.in,.det,.em,.ob-row,.obg,.qdrop,.empty,.td-since .si-main,.td-tile *,.tdball,.exits a,details.jph summary b,.setck span{font-size:var(--m-fs)!important}
  .small,.muted.small,small,.pk,.kv .k,.k,.meta,.meta span,.iss .meta,.iss .do,.do,.cnt,.age,.pc .m,.field label,label.small,.dchip,.path span,.talent th,th,.talent .small,.gm-date,.gm-addr,.gm-tobtn,.gm-to,
  .sub,.when,.td-sub,.si-sum,.si-when,.rb.rpt em,.stat .l,.tli .th,.tli .th *,.ibx .ibx-row .s,.ibx .ibx-row .st,.ibx .ibx-row .small,.jst,.copat,.props-h,.td-sub2,.phead .small,.none,.cb .none,.note,
  .sec .small,.sec label,.td-it .small,.ibx-note,.ibx-top .small,.lede,.rhc,.rhc span,.dn .dnt small,.sh-sub,.sh-sub span,.sh-crumb{font-size:var(--m-fs-2)!important}
  .chip i,button.chip i,.tab small,.badge,.phead .chip i,.stg-n,.seg .n,.jcount{font-size:var(--m-fs-3)!important}
  .ghb span,.ghb .cnt{font-size:var(--m-fs-2)!important}
  .td-tile b{font-weight:600!important}
  /* labels (pills): 24px, 13px, a dot that reads at that size */
  .pill,span.status{height:24px!important;padding:0 10px 0 8px!important;font-size:var(--m-fs-2)!important;gap:6px!important;border-radius:999px!important}
  .pill::before{width:8px!important;height:8px!important}
  a.pill[href],a.pill[data-jump]{height:auto!important;padding:0 14px!important}
  /* titles */
  .phead>h2,.td-h h2,.ibx .phead h2,body:not(:has(.top[data-m-bar])) .wrap>header>h1,body:not(:has(.top[data-m-bar])) .wrap>.top>h1,.mf-ph>h1{font-size:17px!important;font-weight:600!important;letter-spacing:-.01em!important}
  .sheet .sh-name,.drawer .dh.rh h2{font-size:22px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.015em!important}
  .sec h4,h4.title,.blk h3,section.blk h3,.panel h3,.ibx .ibx-subject.ibx-subject,details.sec>summary,.tgroup>h3,.rgrid .tgroup h3,.mmore-h{font-size:var(--m-fs)!important;font-weight:600!important}
  .td-gh,.td-gh span,.today2 .tgroup>h3,.props-h,.col h3 span{font-size:var(--m-fs-2)!important}
  .td-gh span:first-child,.today2 .tgroup>h3>span:first-child{font-weight:600!important}
  .stat .n{font-size:17px!important;overflow:hidden;text-overflow:ellipsis}
  /* controls: one shape at 48px */
  .btn:not(.link),button.chip,.chip,.tab,.fbtn,.td-tile,.setnav button,.mv-phc,.mv-pvt,.ibx-qpadd,summary.btn{padding-left:16px!important;padding-right:16px!important;border-radius:var(--m-r)!important}
  .btn:not(.link),button.chip,.chip,.tab,.fbtn,.setnav button,summary.btn{font-weight:500!important}
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=color]),select,textarea,.input{border-radius:var(--m-r)!important}
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=color]):not([type=search]):not(.search input),select{padding-left:14px!important;padding-right:14px!important}
  textarea{padding:12px 14px!important;line-height:1.45!important}
  .cdots,.pdots,.mm-dots,.gm-ib,.tdz,.sh-head .x,.btn.x,.x{border-radius:var(--m-r)!important}
  /* the two close buttons (a record, a practice) look the same: an outlined 48px square with a 20px cross */
  .sheet .sh-head .x,.drawer .dh.rh .rha>.x{border:1px solid var(--line-2)!important;background:var(--surface)!important;color:var(--text)!important;font-size:20px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
  /* icons: 18px beside a label, 20px on their own */
  .btn svg,button.chip svg,.chip svg,.tab svg,.fbtn svg,.dtc svg,button.stg svg,.ibx-replybtn svg,.mv-pvt svg{width:18px!important;height:18px!important}
  .cdots svg,.pdots svg,.mm-dots svg,.gm-ib svg,.tdz svg,.x svg,.btn.x svg,.stg.mini svg{width:20px!important;height:20px!important}
  .phead .seg button[data-mode]::before,.seg button[data-mode]::before,.seg button[data-pv]::before{width:20px!important;height:20px!important}
  .tdz::before,.dtc::before{width:18px!important;height:18px!important}
  /* surfaces: 12px corners on the ones that stay inset (tiles, cards in a column, dialogs), the 12px line inside */
  .tgroup:not(.today2 .tgroup),.blk,.stats,.obg,details.fold,.col,.card,.pc,.c,.sec.card,.panel{border-radius:var(--m-rc)!important}
  .blk,.panel{padding:14px var(--g)!important}
  .pc,.c{padding:12px!important}
  .rgrid .tgroup .rin,.tgroup .rin{padding:8px var(--g) 12px!important}
  .rgrid .tgroup>h3,.tgroup:not(.today2 .tgroup)>h3{padding:0 var(--g)!important;height:40px!important}
  /* rows: room for two lines of 15px and 13px */
  .ibx .ibx-row{padding-top:12px!important;padding-bottom:12px!important}
  .item{padding:12px var(--g)!important}
  .talent td{padding-top:12px!important;padding-bottom:12px!important}
  .mmore-in button{min-height:56px!important}
}

/* ---- a press shows on a phone instead of a hover ---- */
@media (max-width:767px){
  :is(button,.btn,a.btn,[role=button],.chip,.tab,.td-tile,summary,.pv,button.stg,.dtc):active:not(:disabled):not(.mnav button){transform:scale(.97)!important;opacity:.72!important}
  .mnav button:active{opacity:.6!important}
  :is(.ibx-row,.item,.c,.pc,tr.r,.td-si,.si-row,a[data-id],a[data-frame],.row[data-e],.ac-r):active{background-color:var(--hover,rgba(0,0,0,.05))!important}
}
}
