@layer tokens, base, ui, shell, surface;
/* The phone shell in Signal (docs/signal.md; shells/phone): the frame, the places (a large title over a
   scrolling body), the phone kit surfaces share (ph-*: grouped glass cards of 44 px rows, sections,
   links, buttons, the Tabs grid, Find), an open thing full screen, the slots for the Assistant's and
   Highlights' sheets over the bar, the bar itself, and the composer as a phone holds it.
   Sheets are .mk-sheet (ui.css); what is inside the Assistant and Highlights sheets is theirs. */
@layer shell {
  /* ---- the frame ------------------------------------------------------------------------------- */
  /* One place or one open thing above the bar. Each of those pads itself for the notch and the sides. */
  .os-ui.is-mobile {
    position: fixed;
    inset: 0;
    height: 100dvh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    isolation: isolate;
    background: var(--s-ground);
    background-color: var(--color-bg);
    color: var(--color-ink);
  }
  .os-ui.is-mobile > .os-ui__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--s-ground);
    pointer-events: none;
  }
  .os-ui.is-mobile > .os-desktop {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  /* ---- a place: a large title over a scrolling body ---------------------------------------------- */
  .ph-place {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  }
  .ph-place__head {
    flex: none;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px 6px 16px;
  }
  .ph-place__head > .ph-btn { align-self: center; }
  .ph-place__heading { display: grid; flex: 1 1 auto; justify-items: start; gap: 2px; min-width: 0; }
  .ph-place__heading--row { display: flex; align-items: baseline; gap: 8px; }
  .ph-place__title {
    flex: 1 1 auto;
    min-width: 0;
    font: var(--w-title) var(--t-28) / var(--lh-tight) var(--font-display);
    letter-spacing: var(--track-title);
    color: var(--color-ink);
  }
  .ph-place__heading--row > .ph-place__title { flex: none; }
  .ph-place__count { font: 500 11.5px / 1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--color-ink-faint); }
  .ph-place__body {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 22px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 16px 28px;
  }

  /* A place that holds a surface: the surface fills it and scrolls itself. */
  .ph-place__host { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
  .ph-place__host > .surface-host { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
  .ph-place__actions { display: contents; }

  /* Home's top row: the think tank at the left, an actions slot Home fills, you at the right. */
  .ph-place__bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 52px;
    padding: 4px 6px 0 8px;
  }
  .ph-tank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    height: var(--h-touch);
    margin-right: auto;
    padding: 0 8px;
    border-radius: var(--r-lg);
    color: var(--color-ink);
    font: var(--w-title) var(--t-16) / 1 var(--font-display);
    letter-spacing: var(--track-display);
    transition: background var(--d) var(--ease);
  }
  .ph-tank > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ph-tank > svg { color: var(--color-ink-faint); }
  .ph-tank:active { background: var(--s-tint-2); }
  .ph-me { display: grid; place-items: center; flex: none; width: var(--h-touch); height: var(--h-touch); border-radius: var(--r-round); }
  .ph-me .avatar { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 1px var(--s-edge); }
  .ph-me:active .avatar { box-shadow: 0 0 0 1px var(--s-edge-2); }

  /* ---- the phone kit: sections, labels, links, buttons --------------------------------------------- */
  .ph-section { display: grid; gap: 8px; min-width: 0; }
  .ph-section__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
  .ph-section__title {
    margin: 0 2px;
    font: var(--w-title) var(--t-16) / var(--lh-tight) var(--font-display);
    letter-spacing: var(--track-display);
    color: var(--color-ink);
  }
  .ph-section__row > .ph-section__title { margin-right: 0; }
  /* Needs you: the system's own voice. */
  .ph-section--needs > .ph-section__title { color: var(--color-measure-text); }

  /* A label over a group: sentence case, small, faint. */
  .ph-eyebrow { margin: 0; font-size: var(--t-12); font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--color-ink-faint); }

  /* A text button: a full finger's height, drawn as a word. In a section's row it keeps the row short. */
  .ph-link {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: var(--h-touch);
    padding: 0 8px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink-secondary);
    transition: color var(--d) var(--ease), background var(--d) var(--ease);
  }
  .ph-link:active { color: var(--color-ink); background: var(--s-tint-2); }
  .ph-section__row > .ph-link { margin: -11px -8px -11px 0; }

  /* A phone button: .btn's look at the phone's height. is-primary is the one thing to press. */
  .ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    height: var(--h-md);
    padding: 0 14px;
    border-radius: var(--r-md);
    background: var(--s-glass);
    box-shadow: var(--e-raise);
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--d) var(--ease), transform var(--d-fast) var(--ease);
  }
  .ph-btn svg { width: 15px; height: 15px; }
  .ph-btn:active { background: var(--s-glass-strong); transform: scale(var(--press)); }
  .ph-btn.is-primary { background: var(--color-accent-fill); color: var(--color-on-accent); box-shadow: var(--s-act-rim); }
  .ph-btn.is-primary:active { background: var(--s-spot-lit), var(--color-accent-fill); }

  /* ---- grouped cards of rows ----------------------------------------------------------------------- */
  .ph-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--s-glass);
    box-shadow: var(--e-flat);
  }
  .ph-card:empty { display: none; }

  /* A row: 44 px, the title over a faint meta, an edge line between rows from where the text starts. */
  .ph-row {
    --ph-sep: 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: var(--h-touch);
    padding: 5px 12px 5px 14px;
    color: var(--color-ink);
    text-align: left;
    transition: background var(--d) var(--ease);
  }
  .ph-row:has(> .ph-row__glyph) { --ph-sep: 43px; }
  .ph-row:has(> .ph-row__avatar) { --ph-sep: 47px; }
  .ph-row:has(> .ph-row__when) { --ph-sep: 87px; }
  .ph-row + .ph-row::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: var(--ph-sep);
    height: 1px;
    background: var(--s-edge);
    pointer-events: none;
  }
  button.ph-row:active { background: var(--s-tint-2); }
  :is(.ph-row, .ph-find__row, .ph-tabcard__open):focus-visible { outline-offset: -2px; }
  .ph-row__glyph { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--kind, var(--color-ink-secondary)); }
  .ph-row__glyph svg { width: 17px; height: 17px; }
  .ph-row__avatar { flex: none; width: 22px; height: 22px; }
  .ph-row__when {
    flex: none;
    width: 62px;
    font: 500 var(--t-12) / 1.2 var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    color: var(--color-ink-secondary);
  }
  .ph-row__main { display: grid; flex: 1 1 auto; gap: 1px; min-width: 0; }
  .ph-row__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-13); font-weight: 500; line-height: 1.3; }
  .ph-row__meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-12); line-height: 1.3; color: var(--color-ink-faint); }
  .ph-row__chevron { display: grid; place-items: center; flex: none; color: var(--color-ink-faint); }
  .ph-row__chevron svg { width: 16px; height: 16px; }
  /* A check marks the one picked (the think tank sheet). */
  .ph-row__chevron:has(> svg[data-icon="check"]) { color: var(--color-ink); }

  /* ---- quiet text -------------------------------------------------------------------------------- */
  .ph-empty { display: grid; justify-items: center; gap: 4px; padding: 40px 20px; text-align: center; }
  .ph-empty > p { max-width: 300px; font-size: var(--t-13); color: var(--color-ink-faint); }
  .ph-empty > .ph-empty__title { font: var(--w-title) 19px / 1.3 var(--font-display); letter-spacing: var(--track-display); color: var(--color-ink); }
  .ph-empty > .ph-btn { margin-top: 14px; }

  /* ---- Home's places: four tiles across ---------------------------------------------------------- */
  .ph-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ph-place-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 72px;
    padding: 0 4px;
    border-radius: var(--r-xl);
    background: var(--s-glass);
    box-shadow: var(--e-flat);
    color: var(--color-ink);
    font-size: var(--t-12);
    font-weight: 500;
    line-height: 1.1;
    transition: background var(--d) var(--ease), transform var(--d-fast) var(--ease);
  }
  .ph-place-tile > svg { width: 22px; height: 22px; color: var(--kind, var(--color-ink-secondary)); }
  .ph-place-tile > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ph-place-tile:active { background: var(--s-glass-strong); transform: scale(var(--press)); }

  /* ---- Tabs: the open things, two across --------------------------------------------------------- */
  .ph-tabgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ph-tabcard {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--s-glass);
    box-shadow: var(--e-flat);
  }
  .ph-tabcard__open { display: grid; width: 100%; color: var(--color-ink); text-align: left; transition: background var(--d) var(--ease); }
  .ph-tabcard__open:active { background: var(--s-tint-2); }
  .ph-tabcard__pic {
    display: grid;
    place-items: center;
    height: 108px;
    overflow: hidden;
    background: var(--s-tint-1);
    box-shadow: inset 0 -1px 0 var(--s-edge);
    color: var(--kind, var(--color-ink-secondary));
  }
  .ph-tabcard__pic > svg { width: 30px; height: 30px; }
  .ph-tabcard__foot { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px 10px; }
  .ph-tabcard__glyph { display: grid; flex: none; color: var(--kind, var(--color-ink-secondary)); }
  .ph-tabcard__text { display: grid; gap: 1px; min-width: 0; }
  .ph-tabcard__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-13); font-weight: 500; line-height: 1.25; }
  .ph-tabcard__kind { font-size: 11.5px; font-weight: 500; line-height: 1.25; color: var(--color-ink-faint); }
  /* × on the picture's corner: a full 44 px target around a small glass disc. */
  .ph-tabcard__close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: var(--h-touch);
    height: var(--h-touch);
    color: var(--color-ink-secondary);
  }
  .ph-tabcard__close > svg {
    box-sizing: content-box;
    width: 14px;
    height: 14px;
    padding: 4px;
    border-radius: var(--r-round);
    background: var(--s-glass-strong);
    box-shadow: var(--e-raise);
    transition: color var(--d) var(--ease);
  }
  .ph-tabcard__close:active { color: var(--color-ink); }

  /* ---- Find: the field is the head, the results are grouped cards -------------------------------- */
  .find-ph { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
  .find-ph > .ph-place__body { gap: 6px; }
  .ph-find__head { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 8px 8px 16px; }
  .ph-find__head > .ph-link { margin-right: -2px; }
  .ph-find__field {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: var(--h-lg);
    padding: 0 12px;
    border-radius: var(--r-lg);
    background: var(--s-tint-2);
    color: var(--color-ink-faint);
    transition: background var(--d) var(--ease), box-shadow var(--d) var(--ease);
  }
  .ph-find__field:focus-within { background: var(--s-glass-strong); box-shadow: var(--e-focus); }
  .ph-find__field > svg { width: 16px; height: 16px; }
  .ph-find__field > input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: none;
    color: var(--color-ink);
    -webkit-appearance: none;
    appearance: none;
  }
  .ph-find__field > input::-webkit-search-cancel-button { -webkit-appearance: none; }
  .ph-find__head-label { margin: 14px 2px 2px; }
  .ph-find__head-label:first-child { margin-top: 2px; }
  .ph-find__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 6px 12px;
    color: var(--color-ink);
    text-align: left;
    transition: background var(--d) var(--ease);
  }
  .ph-find__row + .ph-find__row::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 55px;
    height: 1px;
    background: var(--s-edge);
    pointer-events: none;
  }
  .ph-find__row:active { background: var(--s-tint-2); }
  .ph-find__glyph {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: var(--r-lg);
    background: var(--s-tint-2);
    color: var(--kind, var(--color-ink-secondary));
  }
  .ph-find__glyph > svg { width: 17px; height: 17px; }
  .ph-find__row mark { border-radius: 3px; background: var(--color-wash); color: inherit; font-weight: 600; }
  .ph-find__status { flex: none; padding: 0 16px 14px; font-size: var(--t-13); color: var(--color-ink-faint); }
  .ph-find__status:empty { display: none; }

  /* ---- the think tank sheet ---------------------------------------------------------------------- */
  .ph-tank-sheet .mk-sheet__body { padding: 2px 16px 16px; }

  /* ---- an open thing, full screen ------------------------------------------------------------------ */
  .os-ui.is-mobile .os-window {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .os-ui.is-mobile .os-window__header {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    min-height: calc(48px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 6px 0 16px;
    border: 0;
    background: var(--s-glass);
    box-shadow: 0 1px 0 var(--s-edge);
  }
  .os-ui.is-mobile .os-window__identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .pn-titles { display: grid; gap: 1px; min-width: 0; }
  .os-ui.is-mobile .os-window__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: var(--w-title) var(--t-16) / var(--lh-tight) var(--font-display);
    letter-spacing: var(--track-display);
    color: var(--color-ink);
  }
  .pn-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-12); line-height: 1.25; color: var(--color-ink-faint); }
  .os-ui.is-mobile .os-window__header-slot { min-width: 0; overflow: hidden; }
  .os-ui.is-mobile .os-window__actions, .pn-actions { display: flex; align-items: center; gap: 2px; }
  .os-ui.is-mobile .os-window__body { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .os-ui.is-mobile .os-window__body > .surface-host { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }

  /* ---- the Assistant's sheet over the bar -------------------------------------------------------- */
  /* No scrim: the place stays live around it. Folded it is its header and the composer; unfolded it
     reaches up to the notch. */
  .mk-sheet-layer.has-run-dock { bottom: var(--phone-bar-inset, 0px); overflow: hidden; pointer-events: none; }
  .mk-sheet.run-dock {
    min-height: 0;
    max-height: calc(100% - env(safe-area-inset-top, 0px) - 48px);
    padding-bottom: 0;
    pointer-events: auto;
  }
  .mk-sheet.run-dock.is-full { height: calc(100% - env(safe-area-inset-top, 0px) - 8px); max-height: none; }
  .mk-sheet.run-dock > .mk-sheet__body { display: flex; flex-direction: column; overflow: hidden; }
  .run-dock__host { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
  .run-dock__host > .surface-host { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }

  /* ---- Highlights' sheet over the bar: the bar stays, its Highlights tab lit ---------------------- */
  .mk-sheet-layer.has-hl-sheet { bottom: var(--phone-bar-inset, 0px); overflow: hidden; }
  .mk-sheet.hl-sheet {
    height: calc(100% - max(8%, env(safe-area-inset-top, 0px) + 12px));
    max-height: none;
    padding-bottom: 0;
  }
  .mk-sheet.hl-sheet > .mk-sheet__body { display: flex; flex-direction: column; }

  /* ---- the bar: Home · Tabs · the mark · Find · Highlights ------------------------------------- */
  /* On the floating surface, docked to the bottom edge, so only its top edge and highlight show. */
  .os-ui.is-mobile > .os-bar {
    position: relative;
    z-index: var(--z-panel);
    display: flex;
    min-width: 0;
    padding: 2px max(6px, env(safe-area-inset-right, 0px)) max(4px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: var(--s-float);
    -webkit-backdrop-filter: var(--s-blur);
    backdrop-filter: var(--s-blur);
    box-shadow: var(--e-float);
  }
  .phone-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
  }
  .phone-tabs__tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    height: 46px;
    margin: 0 2px;
    border-radius: var(--r-lg);
    color: var(--color-ink-faint);
    font: 500 11.5px / 1 var(--font-sans);
    letter-spacing: 0;
    transition: color var(--d) var(--ease), background var(--d) var(--ease);
  }
  .phone-tabs__tab > span:not(.phone-tabs__badge, .phone-tabs__count) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .phone-tabs__tab.is-on { color: var(--color-ink); }
  .phone-tabs__tab:active { background: var(--s-tint-2); }
  .phone-tabs__tab:focus-visible { outline-offset: -3px; }

  /* Tabs: how many things are open, inside the glyph's front card. */
  .phone-tabs__count { position: relative; display: block; width: 22px; height: 22px; }
  .phone-tabs__count > b {
    position: absolute;
    left: 6px;
    top: 9px;
    width: 13px;
    font: 600 9px / 10px var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
  }

  /* Home's badge: what needs you (measure). Highlights' is a plain count, so it stays quiet. The ring
     cuts it out of the glyph. */
  .phone-tabs__badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 4px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--r-round);
    background: var(--color-measure);
    box-shadow: 0 0 0 2px var(--s-float);
    color: var(--color-on-accent);
    font: 600 var(--t-10) / 16px var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
  }
  .phone-tabs__tab[data-sheet] > .phone-tabs__badge { background: var(--s-tint-4); color: var(--color-ink-secondary); }

  /* The middle: the mark itself, the Assistant's status light. No disc, no glow; it lives by its states. */
  .phone-tabs__center { display: grid; place-items: center; height: 100%; }
  .phone-tabs__center > .os-bar__button {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: var(--h-touch);
    height: var(--h-touch);
    border-radius: var(--r-round);
    color: var(--color-ink);
    transition: background var(--d) var(--ease), transform var(--d-fast) var(--ease);
  }
  .phone-tabs__center > .os-bar__button:active { background: var(--s-tint-2); transform: scale(var(--press)); }
  .phone-tabs__center > .os-bar__button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* ---- pointers: where the phone form runs with a mouse (a narrow window), rows light up --------- */
  @media (hover: hover) {
    :is(button.ph-row, .ph-find__row, .ph-tabcard__open):hover { background: var(--s-spot), var(--s-tint-2); }
    :is(.ph-tank, .ph-link, .phone-tabs__tab, .phone-tabs__center > .os-bar__button):hover { background: var(--s-spot), var(--s-tint-2); }
    .ph-link:hover, .phone-tabs__tab:hover, .ph-tabcard__close:hover { color: var(--color-ink); }
    .ph-place-tile:hover, .ph-btn:not(.is-primary):hover { background: var(--s-spot), var(--s-glass-strong); }
    .ph-btn.is-primary:hover { background: var(--s-spot-lit), var(--color-accent-fill); }
  }

  /* ---- the composer as a phone holds it: + in the field, no tray, Send only with words in it ------ */
  :root[data-form="phone"] .assistant-composer { gap: 0; padding: 4px; }
  :root[data-form="phone"] .assistant-composer > .chat__tray { display: none; }
  :root[data-form="phone"] .assistant-composer > .chat { align-items: flex-end; gap: 2px; min-height: var(--h-md); }
  :root[data-form="phone"] .assistant-composer > .chat > :is(.chat__attach--field, .chat__mark--field, .chat__mic--field) { display: inline-grid; }
  :root[data-form="phone"] .assistant-composer > .chat > .chat__input {
    align-self: stretch;
    min-height: var(--h-md);
    max-height: calc(22px * 5 + 14px);
    padding: 7px 4px;
    font-size: 16px; /* iOS zooms into anything smaller */
    line-height: 22px;
  }
  :root[data-form="phone"] .assistant-composer > .chat > :is(.chat__attach, .chat__mark, .chat__mic, .chat__send) {
    width: var(--h-md);
    height: var(--h-md);
    margin: 0;
    border-radius: var(--r-lg);
  }
  :root[data-form="phone"] .assistant-composer > .chat > :is(.chat__attach, .chat__mark, .chat__mic) svg { width: 18px; height: 18px; }
  :root[data-form="phone"] .assistant-composer > .chat > .chat__send svg { width: 16px; height: 16px; }
  :root[data-form="phone"] .assistant-composer > .chat > .chat__attach { background: var(--s-tint-2); color: var(--color-ink); }
  :root[data-form="phone"] .assistant-composer > .chat:not(.has-draft) > .chat__send,
  :root[data-form="phone"] .assistant-composer > .chat.has-draft > .chat__mic { display: none; }
  :root[data-form="phone"] .assistant-composer > .chat__pictures { margin: 2px 2px 6px; }
}
