/* Messages (public/messages.js): one-to-one and group conversations, shared yearbook photos, "Send to…".
   Drawn as the preview the owner saw (#/messages-preview, the mp- rules in styles.css), with its own mc- names so
   the preview can go without taking this with it. Colours are the site's tokens, so light, dark and both looks follow. */

.mc-title { margin-bottom: 14px; }
.mc-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--surface); height: 620px; min-height: 0; }

/* The conversations */
.mc-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mc-list-head { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px;
  border-bottom: 1px solid var(--line); background: var(--surface); }
.mc-list-head .mc-search { align-self: stretch; min-width: 0; }
.mc-search { margin: 0; }
.mc-search input { min-width: 0; }
.mc-newg { flex: none; min-height: 0; height: 36px; padding: 0 14px 0 12px !important; white-space: nowrap; }
.mc-newg .icon { width: 18px; height: 18px; }
.mc-conv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); }
@media (hover: hover) { .mc-conv:hover { background: var(--surface-2); text-decoration: none; } }
.mc-conv.on, .mc-conv.on:hover { background: var(--accent-soft); }
.mc-av { width: 40px; height: 40px; }
.mc-av, .mc-mav, .mc-chip-av { border: 0 !important; box-sizing: border-box; }   /* the new look rings .av; these sit flat, as in the preview */
.mc-av i { font-size: 13px; }
.mc-c-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mc-c-main b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; min-width: 0; }
.mc-c-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-c-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-conv.unread .mc-c-main b { font-weight: 800; }
.mc-conv.unread .mc-c-last { color: var(--fg); font-weight: 600; }
.mc-c-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; align-self: flex-start; padding-top: 2px; }
.mc-count { min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff;
  font-size: 12px; font-weight: 700; text-align: center; box-sizing: border-box; }
.mc-conv.is-muted .mc-count { background: var(--surface-2); color: var(--muted); }
.mc-mutedic { display: inline-flex; color: var(--muted); flex: none; }
.mc-mutedic .icon { width: 15px; height: 15px; }
.mc-go { flex: none; font-weight: 700; color: var(--accent); }
.mc-conv.not-member b { color: var(--muted); }
.mc-sec { margin: 0; padding: 14px 14px 6px; font-weight: 700; }
.mc-none { margin: 0; padding: 16px 14px; }

/* A group's faces: three round portraits overlapping in a 40px square */
.mc-stack { display: inline-block; flex: none; width: 40px; height: 40px; position: relative; }
.mc-stack .av { position: absolute; width: 26px; height: 26px; border: 2px solid var(--surface); box-sizing: content-box; }
.mc-stack .av i { font-size: 10px; }
.mc-stack.n1 .av { width: 40px; height: 40px; border: 0; left: 0; top: 0; }
.mc-stack.n2 .av:nth-child(1) { left: 0; top: 0; z-index: 2; }
.mc-stack.n2 .av:nth-child(2) { right: -2px; bottom: -2px; z-index: 1; }
.mc-stack.n3 .av:nth-child(1) { left: -2px; top: -2px; z-index: 3; }
.mc-stack.n3 .av:nth-child(2) { right: -2px; top: 4px; z-index: 2; }
.mc-stack.n3 .av:nth-child(3) { left: 7px; bottom: -2px; z-index: 1; }
.mc-stack-0 { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.mc-conv.on .mc-stack .av, .mc-conv:hover .mc-stack .av { border-color: transparent; }

/* The open conversation */
.mc-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mc-back { display: none; }
.mc-h-av { display: inline-flex; text-decoration: none; }
.mc-h-main { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; gap: 1px; }
.mc-h-main b { display: flex; align-items: center; gap: 6px; font-size: 16px; max-width: 100%; }
.mc-h-main b a { color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-h-main b a:hover { text-decoration: underline; }
.mc-h-main > .small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.mc-people { background: none; border: 0; padding: 0 !important; min-height: 0; font-weight: 400; border-radius: 0; color: var(--muted); max-width: 100%;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 13px; }
button.mc-people:hover { color: var(--fg); text-decoration: underline; }

.mc-menu { position: relative; flex: none; }
.mc-menu > summary { list-style: none; cursor: pointer; }
.mc-menu > summary::-webkit-details-marker { display: none; }
.mc-more { width: 40px; height: 40px; min-height: 0; padding: 0 !important; justify-content: center; font-size: 18px; line-height: 1; }
.mc-menu .more-pop { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; left: auto; min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; display: flex; flex-direction: column; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.mc-menu .more-pop a { padding: 10px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14px; }
@media (hover: hover) { .mc-menu .more-pop a:hover { background: var(--surface-2); } }
.mc-menu .more-pop a[data-mc="leave"], .mc-menu .more-pop a[data-mc="block"] { color: #c4373b; }
:root[data-theme="dark"] .mc-menu .more-pop a[data-mc="leave"], :root[data-theme="dark"] .mc-menu .more-pop a[data-mc="block"] { color: #ff8a8d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mc-menu .more-pop a[data-mc="leave"], :root:not([data-theme="light"]) .mc-menu .more-pop a[data-mc="block"] { color: #ff8a8d; } }

.mc-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg); }
.mc-thread > :first-child { margin-top: auto; }       /* a short conversation sits at the bottom, by the box to write in */
.mc-day { align-self: center; margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.mc-event { align-self: center; margin: 0; text-align: center; max-width: 80%; }
.mc-seen { align-self: flex-end; margin: 0; font-size: 12px; }
.mc-loading { margin: auto; }

.mc-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.mc-msg.mine { align-self: flex-end; }
.mc-msg.cont { margin-top: -6px; }
.mc-msg.hearted { margin-bottom: 8px; }
.mc-mav { width: 28px; height: 28px; flex: none; }
.mc-mav.gap { visibility: hidden; }
.mc-col { display: flex; flex-direction: column; min-width: 0; }
.mc-msg.mine .mc-col { align-items: flex-end; }
.mc-from { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 3px 13px; }
.mc-bw { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.mc-msg.mine .mc-bw { flex-direction: row-reverse; }
.mc-b { position: relative; padding: 9px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; cursor: default; }
.mc-msg.mine .mc-b { background: var(--accent-soft); border-color: transparent; }
.mc-b p { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.mc-b p + p { margin-top: 6px; }
.mc-b.has-photo { padding: 6px; }
.mc-b.has-photo:has(> .mc-photo:not(.none)) { width: 274px; max-width: 100%; box-sizing: border-box; }   /* the photo fills it, 6px all round, whatever the line under it */
.mc-b.has-photo > p { padding: 6px 7px 3px; }
.mc-msg.flash .mc-b { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .3s; }

/* A shared photo: a card that opens the viewer */
.mc-photo { display: block; width: 100%; max-width: 100%; -webkit-appearance: none; appearance: none; padding: 0 !important; margin: 0; border: 0; background: none; text-align: left; min-height: 0; cursor: zoom-in;
  color: inherit; font-weight: 400; border-radius: 12px; }
.mc-ph { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.mc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-ph-cap { display: block; padding: 6px 7px 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.mc-ph-cap b { color: var(--fg); font-weight: 600; }
/* One this reader may not see: a small line, no picture */
.mc-photo.none { cursor: default; display: flex; align-items: center; gap: 10px; width: auto; }
.mc-photo.none .mc-ph { flex: none; display: grid; place-items: center; width: 44px; height: 44px; aspect-ratio: auto; border-radius: 10px; color: var(--muted); }
.mc-photo.none .mc-ph .icon { width: 20px; height: 20px; }
.mc-photo.none .mc-ph-cap { padding: 0 8px 0 0; }

/* The message a reply answers */
.mc-quote { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 260px; margin: 0 0 6px; padding: 5px 8px !important; min-height: 0; text-align: left;
  border: 0; border-left: 3px solid var(--accent); border-radius: 6px !important; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg);
  font-size: 13px; font-weight: 400; cursor: pointer; box-sizing: border-box; }
.mc-b.has-photo .mc-quote { margin: 2px 0 6px; }
.mc-quote > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mc-quote b { font-size: 12px; }
.mc-quote span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mc-q-ph { flex: none; width: 36px; height: 36px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.mc-q-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hearts: the count on the bubble's corner, and the actions beside it */
.mc-hic { display: inline-flex; color: #e5484d; }
.mc-hic svg { width: 14px; height: 14px; }
.mc-hearts { position: absolute; right: 8px; bottom: -12px; display: inline-flex; align-items: center; gap: 3px; height: 22px; min-height: 0; padding: 0 7px !important;
  border-radius: 999px !important; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--fg); cursor: pointer; }
.mc-msg.mine .mc-hearts { right: auto; left: 8px; }
.mc-acts { display: none; align-items: center; gap: 2px; flex: none; }
.mc-acts button { width: 32px; height: 32px; min-height: 0; padding: 0 !important; border-radius: 50% !important; border: 0; background: transparent; color: var(--muted);
  justify-content: center; }
@media (hover: hover) { .mc-acts button:hover { background: var(--surface-2); color: var(--fg); } }
.mc-acts .icon, .mc-acts .mc-hic svg { width: 17px; height: 17px; }
.mc-acts button[aria-pressed="false"] .mc-hic { color: var(--muted); }
.mc-acts time { padding: 0 6px; white-space: nowrap; font-size: 12px; }
@media (hover: hover) {
  .mc-acts { display: flex; position: absolute; top: 50%; transform: translateY(-50%); left: calc(100% + 4px); opacity: 0; pointer-events: none; transition: opacity .12s; }
  .mc-msg.mine .mc-acts { left: auto; right: calc(100% + 4px); flex-direction: row-reverse; }
  .mc-msg:hover .mc-acts, .mc-msg:focus-within .mc-acts, .mc-msg.show .mc-acts { opacity: 1; pointer-events: auto; }
}
@media (hover: none) {
  .mc-bw { flex-direction: column; align-items: flex-start; }
  .mc-msg.mine .mc-bw { flex-direction: column; align-items: flex-end; }
  .mc-msg.show .mc-acts { display: flex; margin-top: 6px; }
  .mc-msg.show.hearted .mc-acts { margin-top: 14px; }
  .mc-msg.mine .mc-acts { flex-direction: row-reverse; }
}

/* The box to write in */
.mc-compose { padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.mc-row { display: flex; align-items: flex-end; gap: 8px; }
.mc-row textarea { flex: 1; min-width: 0; min-height: 44px; height: 44px; max-height: 140px; resize: none; border-radius: 22px !important; padding: 11px 16px !important;
  line-height: 1.35; box-sizing: border-box; overflow-y: hidden; }
.mc-attach { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0 !important; border-radius: 50% !important; justify-content: center; color: var(--muted); }
.mc-attach .icon { width: 22px; height: 22px; }
.mc-attach:hover { color: var(--fg); }
.mc-send { flex: none; height: 44px; min-height: 0; padding: 0 18px !important; }
.mc-pending { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mc-pending[hidden] { display: none; }
.mc-pend { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border-radius: 12px; background: var(--surface-2); }
.mc-pend > .icon { color: var(--muted); flex: none; }
.mc-pend-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-pend-ph .mc-q-ph { width: 44px; height: 44px; border-radius: 8px; }   /* the photo itself, big enough to tell which */
.mc-pend-ph { padding-left: 6px; }
.mc-x { flex: none; width: 32px; height: 32px; min-height: 0; padding: 0 !important; border-radius: 50% !important; border: 0; background: transparent; color: var(--muted); justify-content: center; }
@media (hover: hover) { .mc-x:hover { background: var(--surface); color: var(--fg); } }
.mc-cant { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface); }

/* Nothing open (a computer: the right-hand side before a conversation is chosen) */
.mc-empty { margin: auto; padding: 24px; max-width: 340px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.mc-empty p { margin: 0; }
.mc-empty .btn, .mc-empty button { margin-top: 12px; }
.mc-empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.mc-empty-ic .icon { width: 26px; height: 26px; }
.mc-empty button .icon { width: 18px; height: 18px; }

/* Dialogs: a new group, adding people, sharing, Send to… */
.mc-dialog h2 { margin-top: 0; }
.mc-lbl { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--fg); }
.mc-dialog .mc-search { margin: 8px 0 6px; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.mc-chips[hidden] { display: none; }
.mc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 3px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; font-weight: 600; }
.mc-chip-av { width: 24px; height: 24px; }
.mc-chip button { width: 24px; height: 24px; min-height: 0; padding: 0 !important; border: 0; border-radius: 50% !important; background: transparent; color: var(--muted); justify-content: center; }
.mc-chip button .icon { width: 14px; height: 14px; }
.mc-pick, .mc-plist { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; margin: 0 -6px; }
.mc-prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px !important; min-height: 0; border: 0; border-radius: 10px !important; background: transparent;
  text-align: left; color: var(--fg); text-decoration: none; font-weight: 400; }
@media (hover: hover) { .mc-prow:hover { background: var(--surface-2); text-decoration: none; } }
.mc-prow > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mc-prow b { font-weight: 600; font-size: 15px; }
.mc-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; position: relative; }
.mc-prow.on .mc-tick { background: var(--accent); border-color: var(--accent); }
.mc-prow.on .mc-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--accent-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Square tiles in even rows. The sheet scrolls, not the grid: iPhone Safari squeezed the rows of a grid of
   aspect-ratio tiles to fit the grid's own max-height, so each photo showed as a strip over the next (owner, 18 Oct
   2026). The square is held by the tile's padding, which every browser sizes from its width. */
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-auto-rows: auto; align-items: start; gap: 6px; margin: 10px 0 0; }
.mc-gph { position: relative; height: 0; padding: 0 0 100% !important; min-height: 0; margin: 0; border: 0; border-radius: 8px !important; overflow: hidden;
  background: var(--surface-2); display: block; width: 100%; -webkit-appearance: none; appearance: none; }
.mc-gph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) { .mc-gph:hover { outline: 3px solid var(--accent); outline-offset: -3px; } }
.mc-rep { margin: 10px 0; }
.mc-dialog textarea { min-height: 60px; }

.mc-st-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.mc-st-ph { flex: none; width: 80px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.mc-st-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-st-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
label.mc-to { -webkit-tap-highlight-color: transparent; display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--fg); font-size: 15px; }
label.mc-to:last-child { border-bottom: 0; }
@media (hover: hover) { label.mc-to:hover { background: var(--surface-2); } }   /* on touch a hover stuck after a tap looked ticked */
.mc-to-f { display: inline-flex; flex: none; }
.mc-to-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mc-to-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-to input[type=checkbox] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.mc-st-note { margin: 0; }
/* Send to…'s foot: the line to add, then (two or more people ticked) the choice between sending to each and a new
   group, then the buttons; it stays in view while the list scrolls (styles.css, the sheets). */
.dialog .actions.mc-st-foot { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.mc-st-foot .mc-st-line { width: 100%; box-sizing: border-box; margin: 0; }
.mc-st-alt { margin: 0; line-height: 1.4; }
.mc-st-alt[hidden] { display: none; }
.mc-st-btns { display: flex; justify-content: flex-end; gap: 8px; }
.mc-st-btns > [hidden] { display: none; }
@media (max-width: 640px) {
  .mc-st-btns > button { flex: 1; }
  [data-look="new"] .mc-st-list { max-height: none; overflow: visible; }   /* the sheet scrolls, between its title and its foot */
}

/* "Send to…" in the photo viewer: the same pill as "Something wrong?" */
.viewer .vsend .icon { width: 17px; height: 17px; }

/* Phones: one side at a time, the conversation filling the screen */
@media (max-width: 760px) {
  .mc-page.has-chat .mc-title { display: none; }
  .mc-wrap { grid-template-columns: minmax(0, 1fr); }
  .mc-list { border-right: 0; }
  .mc-wrap.has-chat .mc-list, .mc-wrap:not(.has-chat) .mc-chat { display: none; }
  .mc-back { display: inline-grid; place-items: center; flex: none; width: 36px; height: 40px; margin: 0 -6px 0 -8px; color: var(--fg); border-radius: 10px; }
  .mc-back .icon { width: 22px; height: 22px; }
  .mc-head { padding: 10px 12px; gap: 10px; }
  .mc-thread { padding: 14px 12px; }
  .mc-msg { max-width: 88%; }
  .mc-b.has-photo:has(> .mc-photo:not(.none)) { width: 248px; }
  .mc-compose { padding: 8px 10px; }
  .mc-row { gap: 6px; }
  .mc-menu[open] .more-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; min-width: 0; z-index: 70; border-radius: 20px 20px 0 0;
    padding: 18px 12px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: mcUp .22s ease-out; }
  .mc-menu[open] .more-pop a { padding: 14px 12px; font-size: 16px; }
  .mc-menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 69; background: rgba(0,0,0,.4); }
}
@keyframes mcUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mc-menu[open] .more-pop { animation: none; } .mc-acts { transition: none; } }
.mc-pick .mc-sec { padding: 10px 6px 4px; }
.mc-pick .mc-none { padding: 12px 6px; }

/* Phones, a conversation open (messages.js mcFit sets mc-full and the bottom, the tab bar's height): the whole screen
   above the tab bar, whatever the text size (feedback #32). */
@media (max-width: 760px) {
  .mc-wrap.mc-full { position: fixed; left: 0; right: 0; top: 0; height: auto; z-index: 45; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top); box-sizing: border-box; }
}

/* While the keyboard is up in a conversation (phones; app.js vvSync sets kb-open and --vv-top/--vv-h): the
   conversation fills the part of the screen the keyboard leaves: its heading at the top, the messages scrolling
   under it, the box to write in just above the keyboard. The page's own header, tab bar and tools button are out
   of the way (owner, 18 Oct 2026: the thread disappeared and the tab bar floated mid-screen). */
@media (max-width: 760px) {
  html.kb-open .mc-wrap.has-chat { position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100%) !important; z-index: 45;
    border: 0; border-radius: 0; }
}

/* Edit profile: notifications on this device (public/push.js) */
.push-box .push-test { margin-top: 8px; }
.push-box .switch + .small { margin: 6px 2px 0; }

/* The notifications nudge (push.js pushNudge): a panel at the foot of the screen, above the tab bar. */
.push-nudge { position: fixed; z-index: 69; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto;
  display: flex; gap: 12px; padding: 14px 14px 12px; background: var(--surface); color: var(--fg); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 16px 44px rgba(0,0,0,.28); animation: pnIn .25s ease-out; }
.push-nudge .pn-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bar); color: var(--bar-fg); }
.push-nudge h2 { margin: 1px 0 4px; font: 650 15.5px/1.3 var(--sans); }
.push-nudge p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.push-nudge .pn-acts { display: flex; justify-content: flex-end; gap: 8px; }
.push-nudge .btn { min-height: 40px; padding: 8px 16px; }
@media (min-width: 641px) { .push-nudge { bottom: 24px; } }
@keyframes pnIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .push-nudge { animation: none; } }
/* "Add to Home Screen" (push.js installNudge): the nudge's panel, with the site's mark and the two Safari steps. */
.push-nudge .pn-app { font: 800 12px/1 var(--sans); letter-spacing: .02em; border-radius: 11px; }
.in-steps { margin: 0 0 10px; padding: 0 0 0 20px; font-size: 13.5px; line-height: 1.45; }
.in-steps li { margin: 4px 0; }
.in-steps .in-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); color: #0a84ff; vertical-align: -6px; margin: 0 2px; }   /* Safari's own blue, so they look like the buttons they stand for */
/* The dimmed page behind a nudge (push.js pushScrim), as behind the Tools tip; it takes the taps and stops the page
   scrolling under it. */
.pn-scrim { position: fixed; inset: 0; z-index: 68; background: rgba(8, 12, 10, .62); touch-action: none; animation: pnFade .25s ease-out; }
@keyframes pnFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pn-scrim { animation: none; } }
/* "Send to…" in the photo viewer's line with the heart and save (messages.js viewerHook), drawn as they are. */
[data-look="new"] .viewer .vline .v-send { flex: none; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin: 0 0 0 -8px;
  padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: #f1f4f1; cursor: pointer; }
[data-look="new"] .viewer .vline .v-send svg { width: 24px; height: 24px; }
@media (hover: hover) { [data-look="new"] .viewer .vline .v-send:hover { background: #1e2621; } }
[data-look="new"] .viewer .vline .v-send:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* The same plane on Home's cards (messages.js cardSendHook), sized as the save beside it; 2px more on its left, as the plane is wider than the bookmark: the three are 36px apart, centre to centre. */
[data-look="new"] .pg-line .ab-send { min-width: 0; width: 30px; margin-left: 2px; height: 36px; min-height: 0; padding: 0; justify-content: center; }
[data-look="new"] .pg-line .ab-send svg { width: 20px; height: 20px; }
