/* Ding Web: a chat, as the app's (round 79; the iPhone is the reference:
   ConversationView's head, DingComposer's chat bar, PersonPage,
   ChatSearchView). Its head: the name in the middle, Search at the right;
   the bar: one glass bar, + on the left, the box to write in with the mic
   its round end, how it rings on the right; on a computer the bar keeps to
   a column in the middle, the mic its biggest thing. Then the chat's
   search and a person's page (chat-search.js, person-page.js), Liquid
   Glass panes grown out of what was clicked. Colours only through the
   shared tokens, so the dark look follows. */

/* ── The head ── */
#chat-open .chat-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
}
#chat-open .chat-head .back { grid-column: 1; grid-row: 1; justify-self: start; }
#chat-open .chat-title {
  grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; min-width: 0;
  max-width: min(560px, 62vw); text-align: center; line-height: 1.2;
}
.chat-who {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0;
  padding: 3px 8px 3px 4px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit;
  cursor: pointer; transition: background 0.15s ease;
}
.chat-who:hover { background: var(--soft); }
.chat-who:active { transform: scale(0.98); }
#view-chats .chat-who .face { width: 30px; height: 30px; flex: none; }
#view-chats .chat-who .face .avatar { font-size: 11px; }
.chat-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.chat-who-more { flex: none; width: 12px; height: 12px; margin-left: -3px; color: var(--steel); stroke-width: 2.6; }
#chat-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; margin-top: 1px; }
/* "End-to-end encrypted" under the name, in the middle as the name is. */
#chat-open .chat-title .chat-e2ee { align-self: center; margin-top: 0; }
.chat-tools { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 8px; }
.chat-tool {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; flex: none; cursor: pointer;
  border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink);
  box-shadow: 0 0 0 0.5px var(--hair); transition: background 0.15s ease, transform 0.15s ease;
}
.chat-tool:hover { background: var(--light); }
.chat-tool:active { transform: scale(0.94); }
.chat-tool svg { width: 18px; height: 18px; stroke-width: 2; }
/* A group's people at a glance, beside Search (a click: its page). */
.chat-faces { display: flex; align-items: center; padding: 0 4px 0 0; border: 0; background: none; cursor: pointer; }
.chat-faces .avatar { width: 28px; height: 28px; font-size: 10px; box-shadow: 0 0 0 2px var(--mist-1); }
.chat-faces .avatar + .avatar { margin-left: -9px; }
.chat-faces:hover .avatar { box-shadow: 0 0 0 2px var(--mist-1), 0 0 0 3px var(--hair); }

/* A computer: as high as Chats' Search row beside it (64), so their
   hairlines meet in one line across, a group's people and "End-to-end
   encrypted" under the name too. */
@media (min-width: 761px) {
  #view-chats .chat-head { height: 64px; min-height: 64px; padding-top: 4px; padding-bottom: 4px; }
  #view-chats .chat-who { padding-top: 1px; padding-bottom: 1px; }
  #view-chats .chat-who .face { width: 28px; height: 28px; }
}

/* A friend's face over what they sent, or their name in a group: their page. */
#messages .msg.in .post-head > .avatar, #messages .msg.in .sender { cursor: pointer; }
#messages .msg.in .sender:hover { color: var(--ink); }

/* ── The message box, every composer's: its scroll bar only once it's as
   tall as it grows, thin, with no arrows (a line's few pixels over its
   height showed the system's scroll bar and its arrow buttons). ── */
.message-field { overflow-y: hidden; }
.message-field.scrolls { overflow-y: auto; }
.message-field::-webkit-scrollbar { width: 6px; }
.message-field::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.message-field::-webkit-scrollbar-track { background: transparent; }
.message-field::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 999px; }
.message-field::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .message-field { scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
}

/* ── A chat's bar (chat-composer.js's chatBarHTML), as the phone's: one
   glass bar, its middles level; the mic the tallest thing on it. ── */
.chat-composer { --mic: 52px; --pill: 44px; --side: 44px; --bulge: calc((var(--mic) - var(--pill)) / 2); }
#view-chats .composer.chat-composer { border-top: 0; padding: 6px var(--chat-pad, 16px) 14px; }
/* On a computer a column in the middle, not the chat's whole width. */
.chat-composer > * { width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; }
.chat-composer > .composer-note { text-align: center; }
.chat-bar {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px;
  border-radius: 40px; border: 1px solid var(--glass-edge);
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: var(--shadow);
}
.chat-bar .bar-circle {
  position: relative; flex: none; width: var(--side); height: var(--side); margin: 0 0 var(--bulge); padding: 0;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer; color: var(--ink);
  border: 1px solid var(--glass-edge); background: var(--glass-strong); box-shadow: 0 0 0 0.5px var(--hair);
  transition: background 0.15s ease, transform 0.15s ease;
}
.chat-bar .bar-circle:hover { background: var(--light); }
.chat-bar .bar-circle:active { transform: scale(0.94); }
.chat-bar .bar-circle svg { width: 20px; height: 20px; stroke-width: 2; }
.chat-bar .plus svg { stroke-width: 2.2; }
/* + rippling while nothing's written or added (the app's PlusWaves): where
   a chat's things come from. */
.chat-composer.bar-idle .chat-bar .plus::before, .chat-composer.bar-idle .chat-bar .plus::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1.5px solid var(--ink); opacity: 0; animation: plus-wave 3.2s ease-out infinite;
}
.chat-composer.bar-idle .chat-bar .plus::after { animation-delay: 1.6s; }
@keyframes plus-wave { 0% { transform: scale(1); opacity: 0.22; } 100% { transform: scale(1.55); opacity: 0; } }

/* The box: "Message" on a light glass pill whose end runs on under the mic. */
.chat-bar .bar-pill { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; }
.chat-bar .bar-pill::before {
  content: ""; position: absolute; left: 0; right: calc(var(--mic) / 2); top: var(--bulge); bottom: var(--bulge);
  border-radius: calc(var(--pill) / 2); border: 1px solid var(--glass-edge); background: var(--glass-strong);
  box-shadow: 0 0 0 0.5px var(--hair); transition: box-shadow 0.15s ease; pointer-events: none;
}
.chat-bar .bar-pill:focus-within::before { box-shadow: 0 0 0 0.5px var(--hair), 0 0 0 3px var(--lens); }
.chat-bar .message-field {
  position: relative; flex: 1; min-width: 0; width: auto; height: var(--pill); min-height: var(--pill); max-height: 140px;
  margin: var(--bulge) 0; padding: 11px 10px 11px 18px; border: 0; border-radius: calc(var(--pill) / 2);
  background: none; box-shadow: none; outline: none; resize: none;
  font-size: 15px; line-height: 22px; color: var(--ink);
}
.chat-bar .message-field::placeholder { color: var(--steel); }
/* With nothing but things added (or words left), a small Send beside the mic. */
.chat-bar .bar-send {
  position: relative; flex: none; height: 32px; margin: 0 10px calc(var(--bulge) + (var(--pill) - 32px) / 2) 0; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; animation: bar-in 0.18s ease;
}
.chat-bar .bar-send:active { transform: scale(0.95); }
@keyframes bar-in { from { opacity: 0; transform: scale(0.85); } }
/* The mic, the pill's round end: Send there with words to send. */
.chat-bar .mic { position: relative; width: var(--mic); height: var(--mic); margin: 0; --halo: 9px; }
.chat-bar .mic svg { width: 24px; height: 24px; stroke-width: 2.1; }
.chat-bar .mic.sends svg { stroke-width: 2.5; }
.chat-bar .mic:hover:not(.recording) { box-shadow: 0 0 0 4px var(--lens); }

/* How it rings: its symbol, ringed in its colour (the app's RingOutline),
   a time's and a reminder's marks on its top right. */
.chat-composer { --ring-tint: var(--ink); }
.chat-composer[data-ring="silent"] { --ring-tint: var(--ring-quiet); }
.chat-composer[data-ring="once"] { --ring-tint: var(--ring-urgent); }
.chat-composer[data-ring="repeat"] { --ring-tint: var(--ring-alarm); }
.chat-bar .ring-circle::after {
  content: ""; position: absolute; inset: -5px; border-radius: 999px; pointer-events: none;
  border: 2.5px solid var(--ring-tint); transition: border-color 0.2s ease;
}
.chat-composer[data-ring="repeat"] .chat-bar .ring-circle::after { border-width: 3px; }
.chat-bar .ring-glyph { display: grid; place-items: center; }
.chat-bar .ring-glyph svg.bold { stroke-width: 2.8; }
.chat-bar .ring-badges { position: absolute; top: -8px; right: -9px; display: flex; pointer-events: none; }
.chat-bar .ring-badge {
  width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 2px var(--mist-1); animation: bar-in 0.18s ease;
}
.chat-bar .ring-badge + .ring-badge { margin-left: -3px; }
.chat-bar .ring-badge svg { width: 11px; height: 11px; stroke-width: 2.4; }

/* A phone: the phone's own sizes (48-point circles and pill, the 56-point mic). */
@media (max-width: 760px) {
  .chat-composer { --mic: 56px; --pill: 48px; --side: 48px; }
  #view-chats .composer.chat-composer { padding: 6px 2px calc(4px + env(safe-area-inset-bottom)); }
  .chat-bar { padding: 12px 10px; gap: 8px; }
  .chat-bar .message-field { padding: 13px 8px 13px 16px; font-size: 16px; }
  #chat-open .chat-title { max-width: 62vw; }
}
@media (max-width: 380px) {
  .chat-composer { --side: 42px; }
  .chat-bar { gap: 6px; padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-composer.bar-idle .chat-bar .plus::before, .chat-composer.bar-idle .chat-bar .plus::after { animation: none; display: none; }
  .chat-bar .bar-send, .chat-bar .ring-badge { animation: none; }
}

/* ── Search in a chat (chat-search.js) ── */
dialog.cs {
  position: fixed; inset: 72px 0 auto; margin: 0 auto; padding: 0; max-width: none; max-height: none;
  width: min(640px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 104px));
  flex-direction: column; overflow: hidden; color: var(--ink);
  border-radius: 28px; border: 1px solid var(--glass-edge);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(30px) saturate(1.7); backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: var(--shadow);
}
dialog.cs[open] { display: flex; }
dialog.cs::backdrop { background: rgba(10, 12, 15, 0.22); }
dialog.cs:focus { outline: none; }
.cs-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.cs-field {
  flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 7px;
  border-radius: 999px; background: var(--soft); border: 1px solid var(--hair); cursor: text;
}
.cs-field:focus-within { box-shadow: 0 0 0 3px var(--lens); }
.cs-face { flex: none; width: 32px; height: 32px; display: grid; place-items: center; color: var(--steel); }
.cs-face > .avatar { width: 32px; height: 32px; font-size: 11px; }
.cs-face svg { width: 18px; height: 18px; }
.cs-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0 4px;
  font: inherit; font-size: 16px; color: var(--ink);
}
.cs-field input::placeholder { color: var(--steel); }
.cs-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cs-clear {
  flex: none; width: 28px; height: 28px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--hair); color: var(--ink);
}
.cs-clear svg { width: 13px; height: 13px; stroke-width: 2.4; }
.cs-done { flex: none; border: 0; background: none; padding: 8px 4px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cs-kinds {
  flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 2px 14px 10px; scrollbar-width: none;
  border-bottom: 1px solid var(--hair);
}
.cs-kinds::-webkit-scrollbar { display: none; }
.cs-kind {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--hair); background: var(--glass); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.cs-kind span { color: var(--steel); font-weight: 500; font-variant-numeric: tabular-nums; }
.cs-kind.on { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.cs-kind.on span { color: inherit; opacity: 0.7; }
.cs-kind:disabled { opacity: 0.38; cursor: default; }
.cs-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 20px; }
.cs-body mark { background: color-mix(in srgb, #FFD60A 46%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.cs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding-top: 8px; }
.cs-tile {
  position: relative; height: 104px; padding: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 20px; border: 1px solid var(--hair); background: var(--glass); color: var(--ink); text-align: left; cursor: pointer;
  font: inherit; transition: transform 0.15s ease;
}
.cs-tile:hover { border-color: var(--steel); }
.cs-tile:active { transform: scale(0.98); }
.cs-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-tile.pictured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55)); }
.cs-tile-mark { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--soft); }
.cs-tile-mark svg { width: 18px; height: 18px; stroke-width: 2; }
.cs-tile-words { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.25; margin-top: auto; }
.cs-tile-words b { font-size: 15px; }
.cs-tile-words span { font-size: 13px; color: var(--steel); font-variant-numeric: tabular-nums; }
.cs-tile.pictured .cs-tile-words { color: #fff; }
.cs-tile.pictured .cs-tile-words span { color: rgba(255, 255, 255, 0.82); }
.cs-group + .cs-group { margin-top: 6px; }
.cs-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 4px 8px; }
.cs-group-head b { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.cs-group-head .link-btn { padding: 0; font-size: 13px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.cs-cell {
  position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--soft); color: var(--steel); display: grid; place-items: center;
}
.cs-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-cell .cs-mark svg { width: 24px; height: 24px; }
.cs-play { position: absolute; left: 8px; bottom: 8px; width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.cs-cell:hover img { opacity: 0.88; }
.cs-cell.active { box-shadow: inset 0 0 0 3px var(--ink); }
.cs-rows { display: flex; flex-direction: column; gap: 2px; }
.cs-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 14px; cursor: pointer;
  background: none; color: inherit; font: inherit; text-align: left; transition: background 0.12s ease;
}
.cs-row:hover { background: var(--soft); }
.cs-row.active { background: var(--lens); }
.cs-pic { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.cs-pic img { width: 100%; height: 100%; object-fit: cover; }
.cs-pic svg { width: 20px; height: 20px; stroke-width: 1.9; }
.cs-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.cs-title { font-size: 14.5px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cs-sub { font-size: 12.5px; color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 72px 28px 24px; text-align: center; }
.cs-empty b { font-size: 19px; letter-spacing: -0.01em; }
.cs-empty span { color: var(--steel); font-size: 14.5px; }
.cs-foot { margin: 18px 8px 4px; text-align: center; font-size: 12.5px; color: var(--steel); }

/* ── A person's page, or a group's (person-page.js) ── */
dialog.pp {
  position: fixed; inset: 0; margin: auto; padding: 0; max-width: none; max-height: none;
  width: min(460px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 48px));
  overflow: hidden; color: var(--ink); border-radius: 30px; border: 1px solid var(--glass-edge);
  background: linear-gradient(180deg, var(--mist-1), var(--mist-2)); box-shadow: var(--shadow);
}
dialog.pp::backdrop { background: rgba(10, 12, 15, 0.3); }
dialog.pp:focus { outline: none; }
.pp-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 28px; scrollbar-width: thin; }
.pp-close {
  position: absolute; top: 14px; left: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); border: 1px solid var(--glass-edge);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--shadow);
}
.pp-close svg { width: 16px; height: 16px; stroke-width: 2.2; }
/* Who they are, big: their photo fading into the page, or their face. */
.pp-poster { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 70px 22px 18px; }
.pp-poster.pictured { min-height: 400px; }
.pp-picture { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 96px; pointer-events: none; }
.pp-picture .avatar { width: 136px; height: 136px; font-size: 46px; box-shadow: var(--shadow); }
.pp-picture.pictured { padding: 0; }
.pp-picture.pictured .avatar {
  width: 100%; height: 100%; border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0, 0, 0, 0.25) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0, 0, 0, 0.25) 80%, transparent 100%);
}
.pp-faces { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 96px; pointer-events: none; }
.pp-faces .avatar { width: 92px; height: 92px; font-size: 30px; box-shadow: 0 0 0 4px var(--mist-1), var(--shadow); }
.pp-faces .avatar + .avatar { margin-left: -26px; }
.pp-words { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pp-name { margin: 0; max-width: 100%; font-size: 34px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; overflow-wrap: anywhere; }
.pp-line { margin: 0; color: var(--steel); font-size: 14px; }
.pp-username {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; max-width: 100%; padding: 0 12px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--glass-edge); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pp-username svg { width: 14px; height: 14px; stroke-width: 2.4; flex: none; }
/* Ding, Reminder, Gift and Search (the app's PersonPageActions): Ding in ink. */
.pp-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 2px; }
.pp-act {
  height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border-radius: 24px; border: 1px solid var(--glass-edge); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 0 0 0.5px var(--hair); transition: transform 0.15s ease, background 0.15s ease;
}
.pp-act:hover { background: var(--light); }
.pp-act:active { transform: scale(0.96); }
.pp-act svg { width: 21px; height: 21px; stroke-width: 2; }
.pp-act.main { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.pp-act.main:hover { opacity: 0.92; }
/* Their settings (friends.js's, as under their row), on the page's glass. */
.pp-settings { padding: 22px 16px 0; }
.pp #pp-settings > .fr-settings { padding: 0; border: 0; background: none; gap: 22px; }
.pp #pp-settings .fr-levels { grid-template-columns: 1fr; gap: 6px; }
.pp #pp-settings .fr-reach { grid-template-columns: 1fr; }
.pp #pp-settings [data-person] { cursor: pointer; transition: background 0.15s ease; }
.pp #pp-settings [data-person]:hover { background: var(--light); }
.pp-wait { text-align: center; padding: 24px 0; margin: 0; }

/* A phone: the search and a person's page have the whole screen. */
@media (max-width: 760px) {
  dialog.cs, dialog.pp {
    inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
  .cs-bar { padding: 10px 12px 8px; }
  .cs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-close { top: calc(12px + env(safe-area-inset-top)); }
  .pp-name { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-tile, .pp-act, .chat-tool, .chat-who { transition: none; }
}
