/* Jigsaw, the fixed core. Same look as Jigsaw Hosting: paper with a dot grid, Bricolage Grotesque,
   cobalt for actions, and the pieces in marigold, mint and rose. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/font.woff2) format("woff2-variations"); }
:root {
  --paper: #ECEDEF; --card: #FFFFFF; --ink: #14161A; --graphite: #6B7078; --line: #DCDEE2;
  --cobalt: #2B50E0; --cobalt-dark: #2242BF; --marigold: #F6C445; --mint: #9ADBBE; --rose: #F3A6AD; --sky: #9DB2F5;
  --tint: #E8EEFD;
  --lift: 0 1px 2px rgba(20, 22, 26, .06), 0 12px 32px -8px rgba(20, 22, 26, .18);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
/* An app, not a page: a double tap never zooms. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 15px/1.5 "Bricolage Grotesque", system-ui, -apple-system, sans-serif; color: var(--ink);
  background: var(--paper) radial-gradient(rgba(20, 22, 26, .13) 1px, transparent 1px) 0 0 / 18px 18px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
[hidden] { display: none !important; }
.boot { text-align: center; color: var(--graphite); margin-top: 30vh; }
#app { height: 100%; }

.btn { font-weight: 600; font-size: .9375rem; border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.btn.primary { background: var(--cobalt); color: #fff; }
.btn.primary:hover { background: var(--cobalt-dark); }
.btn.primary:disabled { opacity: .55; cursor: default; }
.btn.quiet { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.btn.quiet:hover { box-shadow: 0 0 0 1px var(--ink); }
.btn.text { background: none; color: var(--graphite); padding: .5rem .55rem; }
.btn.text:hover { color: var(--ink); }
.btn.small { font-size: .8125rem; padding: .35rem .8rem; }
.btn.danger { background: #FBE3E1; color: #8E1C14; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { box-shadow: 0 0 0 1px var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { background: var(--ink); color: #fff; box-shadow: none; }
.field { font-size: .9375rem; background: #F5F6F7; border: 0; border-radius: 10px; padding: .6rem .8rem; min-width: 0; width: 100%; }
.field:focus-visible { outline-offset: 0; background: #fff; }
textarea.field { resize: vertical; min-height: 5rem; }
.hint { color: #B3261E; font-size: .875rem; margin: .4rem 0 0; min-height: 1.2em; }
.ok { color: #1E6B45; font-size: .875rem; }
.muted { color: var(--graphite); }
.small { font-size: .8125rem; }
.row { display: flex; align-items: center; gap: .6rem; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: .7rem; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; }
.glyph { width: 22px; height: 22px; flex: none; }
.face { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--tone, var(--ink)); color: var(--ink); font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; flex: none; position: relative; }
.face.dark { background: var(--ink); color: #fff; }
.face .dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #2FA866; box-shadow: 0 0 0 2px var(--card); }
.faces { display: flex; }
.faces .face { width: 24px; height: 24px; font-size: .6875rem; margin-right: -6px; box-shadow: 0 0 0 2px var(--paper); }
.role { font-size: .75rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: #EEF0F3; white-space: nowrap; }
.role.admin { background: var(--ink); color: #fff; }
.role.guest { background: #FFF1C2; color: #5C4300; }
.sheet-card, .card { background: var(--card); border-radius: 18px; box-shadow: var(--lift); }

/* The piece: Jigsaw's signature shape, tabs sticking out. */
.piece { position: relative; filter: drop-shadow(0 1px 1px rgba(20, 22, 26, .08)) drop-shadow(0 12px 16px rgba(20, 22, 26, .14)); }
.piece .body { border-radius: 14px; background: var(--tone, var(--card)); padding: .8rem 1rem; }
.piece .k { position: absolute; width: 24px; height: 24px; margin: -12px; border-radius: 50%; background: var(--tone, var(--card)); }
.k.top { top: -5px; } .k.left { left: -5px; } .k.right { right: -5px; }

/* Signing in: a sheet floating among pieces */
.door { min-height: 100%; display: grid; place-items: center; padding: 2rem 1rem; position: relative; overflow: hidden; }
.door .sheet-card { width: min(100%, 25rem); padding: 1.6rem 1.5rem 1.4rem; position: relative; z-index: 1; }
.door h1 { font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; margin: .9rem 0 .4rem; }
.door p.lede { color: var(--graphite); margin: 0 0 1.2rem; }
.door .devcode { background: #FFF6D6; border-radius: 10px; padding: .55rem .8rem; font-size: .875rem; }
.door .devcode b { letter-spacing: .15em; font-size: 1.05rem; }
.float { position: absolute; width: 10rem; font-size: .8125rem; animation: settle .7s cubic-bezier(.2, .8, .2, 1) both; }
.float b { display: block; font-size: .9375rem; }
.float span { color: rgba(20, 22, 26, .65); }
.float.a { --tone: var(--marigold); left: 8%; top: 14%; rotate: -7deg; }
.float.b { --tone: var(--mint); right: 9%; top: 18%; rotate: 6deg; animation-delay: .08s; }
.float.c { --tone: var(--rose); left: 11%; bottom: 14%; rotate: 5deg; animation-delay: .16s; }
.float.d { --tone: var(--sky); right: 10%; bottom: 16%; rotate: -5deg; animation-delay: .24s; }
@keyframes settle { from { opacity: 0; translate: 0 14px; } }
@media (max-width: 52rem) { .float { display: none; } }

/* The layout: chats on the left, the open group on the right. One at a time on a phone. */
.shell { height: 100%; display: grid; grid-template-columns: 22rem minmax(0, 1fr); }
.side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: rgba(236, 237, 239, .7); backdrop-filter: blur(6px); }
.side header { display: flex; align-items: center; gap: .5rem; padding: 1rem 1rem .6rem; }
.chats { flex: 1; overflow-y: auto; padding: .2rem .6rem 1rem; }
.chat-row { display: flex; gap: .7rem; align-items: center; padding: .6rem .6rem; border-radius: 14px; text-decoration: none; cursor: pointer; }
.chat-row:hover { background: rgba(255, 255, 255, .6); }
.chat-row[aria-current] { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.chat-row .name { font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row .last { color: var(--graphite); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row .badge { background: var(--cobalt); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 700; min-width: 1.4rem; height: 1.4rem; display: grid; place-items: center; padding: 0 .4rem; }
.chat-row .glyph { width: 34px; height: 34px; }
.side .foot { padding: .7rem 1rem; display: flex; gap: .4rem; align-items: center; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--graphite); }
.main { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.welcome { margin: auto; text-align: center; max-width: 26rem; padding: 2rem; }
.welcome h2 { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; margin: 1rem 0 .5rem; }
.welcome .glyph { width: 64px; height: 64px; }
@media (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; }
  .shell.in-group .side { display: none; }
  .shell:not(.in-group) .main { display: none; }
}

/* An open group */
.top { display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: rgba(236, 237, 239, .85); backdrop-filter: blur(6px); z-index: 2; }
.top .title { min-width: 0; flex: 1; }
.top h1 { font-size: 1.05rem; margin: 0; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .sub { font-size: .75rem; color: var(--graphite); display: flex; gap: .4rem; align-items: center; }
.top .sub, .group-btn .title { white-space: nowrap; overflow: hidden; min-width: 0; }
@media (max-width: 52rem) { .top .sub .faces { display: none; } }
.top .back { display: none; }
@media (max-width: 52rem) { .top .back { display: inline-grid; } .top .wide { display: none; } }
.stage { flex: 1; position: relative; min-height: 0; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.banner { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; font-size: .875rem; flex-wrap: wrap; }
.banner.preview { background: var(--tint); border-bottom: 1px solid #CFDAFA; flex-wrap: nowrap; padding: .4rem .9rem; }
.banner.preview > .glyph { width: 18px; height: 18px; flex: none; }
.one-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner.safe { background: var(--ink); color: #fff; }
.banner.safe .btn.quiet { color: var(--ink); }
.toasts { position: fixed; left: 50%; bottom: 6.5rem; translate: -50% 0; z-index: 40; display: grid; gap: .4rem; justify-items: center; width: max-content; max-width: 90vw; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: 999px; font-size: .875rem; box-shadow: var(--lift); animation: settle .3s ease-out; }

/* Cards: the core's own, in the agent's sheet. Approvals and offers can never be drawn by group code. */
.agent-sheet .piece { margin-left: 8px; }
.agent-sheet .piece .body { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.agent-sheet .piece .text { flex: 1; min-width: 12rem; display: grid; gap: .2rem; }
.agent-sheet .piece b { display: block; font-size: .9375rem; letter-spacing: -.01em; }
.agent-sheet .acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-start; width: 100%; }
.agent-sheet .votes { font-size: .75rem; font-weight: 600; }
.agent-sheet .perm { font-size: .8125rem; margin-top: .25rem; }
.agent-sheet .perm code { background: rgba(255, 255, 255, .55); border-radius: 6px; padding: .05rem .35rem; }
.agent-sheet .row { display: flex; align-items: center; gap: .5rem; }
.agent-sheet .center { text-align: center; margin: .3rem 0; }
.agent-ask { display: flex; align-items: center; gap: .7rem; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--card); border: 1px solid #CFDAFA; border-radius: 16px; padding: .75rem .85rem; }
.agent-ask:hover { border-color: var(--cobalt); }
.agent-ask .grow { display: grid; gap: .1rem; }
.agent-ask > svg, .list-row > svg { width: 16px; height: 16px; color: var(--graphite); flex: none; }
.agent-list { display: grid; }
.list-row { display: flex; align-items: center; gap: .6rem; border: 0; border-top: 1px solid var(--line); background: none; padding: .85rem .1rem; font: inherit; font-weight: 500; color: inherit; cursor: pointer; text-align: left; }
.list-row:hover { color: var(--cobalt); }
.building .body { --tone: var(--card); }
/* The empty slot: where the new piece will click in. */
.slot { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 2px dashed var(--graphite); position: relative; animation: breathe 1.6s ease-in-out infinite; }
.slot::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2px dashed var(--graphite); top: -8px; left: 9px; background: var(--card); }
@keyframes breathe { 50% { opacity: .45; } }
@keyframes clickin { 0% { transform: translate(14px, -18px) rotate(3deg); opacity: 0; } 70% { transform: translate(0, 2px) rotate(-.5deg); opacity: 1; } 100% { transform: none; } }
.clickin { animation: clickin .6s cubic-bezier(.2, .9, .3, 1.2) both; }
@media (prefers-reduced-motion: reduce) { .float, .clickin, .slot { animation: none; } }

/* Sheets: People, History, Pieces, Settings, Ask */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(20, 22, 26, .38); display: flex; justify-content: flex-end; }
.overlay .sheet-card { width: min(100%, 30rem); height: 100%; border-radius: 0; display: flex; flex-direction: column; animation: slidein .22s ease-out; background: var(--paper); }
@keyframes slidein { from { translate: 30px 0; opacity: 0; } }
.overlay header { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem .5rem; }
.overlay header h2 { flex: 1; margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.overlay .content { overflow-y: auto; padding: .3rem 1.2rem 2rem; display: grid; gap: 1rem; align-content: start; }
.overlay h3 { font-size: .8125rem; color: var(--graphite); font-weight: 600; margin: .4rem 0 0; text-transform: none; }
.panel { background: var(--card); border-radius: 16px; box-shadow: var(--lift); padding: .9rem 1rem; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; flex-wrap: wrap; }
.people li + li { border-top: 1px solid var(--line); }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { padding: .7rem 0; display: grid; gap: .3rem; }
.versions li + li { border-top: 1px solid var(--line); }
.status { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .12rem .5rem; border-radius: 999px; background: #EEF0F3; }
.status.live { background: var(--mint); }
.status.preview { background: var(--tint); }
.status.building { background: var(--sky); }
.status.failed, .status.rejected { background: var(--rose); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .8rem; }
.tile { background: var(--card); border-radius: 16px; box-shadow: var(--lift); padding: .9rem; display: grid; gap: .5rem; align-content: start; }
.tile .head { display: flex; gap: .5rem; align-items: center; }
.tile b { letter-spacing: -.01em; }
.tile p { margin: 0; font-size: .8125rem; color: var(--graphite); }
.tile .acts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.switch { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.switch input { margin-top: .3rem; accent-color: var(--cobalt); }
.meter { height: 8px; border-radius: 999px; background: #EEF0F3; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cobalt); }
.copyline { display: flex; gap: .4rem; }
.copyline input { flex: 1; }
.report { border-top: 1px solid var(--line); padding: .7rem 0; display: grid; gap: .35rem; }

/* Group pictures: a photo, an emoji, or initials on the group's colour. */
.gav { --size: 46px; width: var(--size); height: var(--size); flex: none; border-radius: 16px; display: inline-grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tone, var(--sky)) 70%, #fff), var(--tone, var(--sky)));
  color: var(--ink); font-weight: 800; font-size: calc(var(--size) * .36); letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .06); }
.gav.emoji { font-size: calc(var(--size) * .52); }
.gav.photo img { width: 100%; height: 100%; object-fit: cover; }
.gav.small { --size: 36px; border-radius: 12px; }
.gav.large { --size: 72px; border-radius: 22px; }
.face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.group-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; border: 0; background: none; padding: .2rem .4rem .2rem .2rem; margin: -.2rem 0; cursor: pointer; border-radius: 14px; text-align: left; font: inherit; color: inherit; }
.group-btn:hover { background: rgba(20, 22, 26, .05); }
.group-btn h1 { display: flex; align-items: center; gap: .15rem; }
.group-btn h1 svg { flex: none; width: 16px; height: 16px; color: var(--graphite); }
.info-head { display: grid; justify-items: center; gap: .35rem; text-align: center; padding: .25rem 0 .5rem; }
.info-head h3 { margin: .2rem 0 0; }
h4.section { margin: .6rem .2rem -.1rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.group-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.group-head .face { width: 64px; height: 64px; font-size: 1.4rem; }
h3.big { font-size: 1.2rem; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr)); gap: .35rem; }
.emoji-grid button { font-size: 1.35rem; height: 2.6rem; border: 0; border-radius: 12px; background: #F2F3F5; cursor: pointer; }
.emoji-grid button:hover, .emoji-grid button.on { background: var(--card); box-shadow: 0 0 0 2px var(--cobalt); }
.at { font-weight: 800; color: var(--graphite); }
.link-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; text-decoration: none; border-top: 1px solid var(--line); font-weight: 500; }
.panel b + .link-row { border-top: 0; }
.btn.danger svg, .btn svg { width: 16px; height: 16px; }

/* The profile button at the foot of the chat list. */
.profile { display: flex; align-items: center; gap: .7rem; margin: .5rem .6rem .8rem; padding: .55rem .7rem; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .55); cursor: pointer; text-align: left; }
.profile:hover { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.profile .grow { display: grid; line-height: 1.25; }
.profile svg { width: 20px; height: 20px; color: var(--graphite); }
.side .foot { display: none; }
.chat-row { padding: .65rem .7rem; }
.chats { padding: .2rem .7rem 1rem; }

/* The agent: one button in the header. A pill that says what it is doing when it is busy. */
.top { position: relative; }
.agent-mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.agent-mark .glyph { width: 32px; height: 32px; }
.agent-btn.busy .agent-mark .glyph { width: 26px; height: 26px; }
.agent-btn { flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink); border-radius: 999px; }
.agent-btn:not(.busy) .label { padding-right: .7rem; }
/* With room for its label it is a pill; on a phone it is the mark alone. */
@media (min-width: 52.01rem) { .agent-btn:not(.busy) { background: var(--card); box-shadow: 0 0 0 1px var(--line); } .agent-btn:not(.busy):hover { box-shadow: 0 0 0 1px var(--cobalt); } }
.agent-btn.busy { background: var(--tint); box-shadow: 0 0 0 1px #CFDAFA; color: var(--cobalt); padding: 0 .75rem 0 .2rem; font-weight: 700; }
.agent-btn.busy .agent-mark { width: 30px; height: 30px; }
.agent-btn .slot { width: 22px; height: 22px; border-radius: 7px; margin: 0 .25rem 0 .3rem; border-color: var(--cobalt); }
.agent-btn .slot::before { width: 8px; height: 8px; top: -6px; left: 5px; border-color: var(--cobalt); background: var(--tint); }
.agent-btn .count { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 .3rem; background: var(--cobalt); color: #fff; font-size: .6875rem; display: grid; place-items: center; }
@media (max-width: 52rem) { .agent-btn .label.wide { display: none; } }
.working-text { color: var(--cobalt) !important; font-weight: 600; }
/* While it builds: a thin line running along the bottom of the header. */
.working { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; background: var(--tint); }
.working::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; border-radius: 1px; background: var(--cobalt); animation: working 1.4s ease-in-out infinite; }
@keyframes working { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .working::after { animation: none; left: 0; width: 100%; opacity: .5; } }
.btn.admin { background: var(--cobalt); color: #fff; }
.btn.admin:hover { background: var(--cobalt-dark); }

/* Safe mode's plain chat, drawn by the core. */
.plain { position: absolute; inset: 0; display: flex; flex-direction: column; }
.plain-list { flex: 1; overflow-y: auto; padding: 1rem 1rem .5rem; display: flex; flex-direction: column; gap: .55rem; }
.p-row { display: flex; gap: .5rem; align-items: flex-end; }
.p-row.mine { flex-direction: row-reverse; }
.p-row .face { width: 28px; height: 28px; }
.p-bubble { max-width: min(78%, 34rem); background: var(--card); border-radius: 18px; padding: .5rem .8rem .4rem; box-shadow: var(--lift); display: grid; gap: .15rem; overflow-wrap: anywhere; }
.p-row.mine .p-bubble { background: var(--cobalt); color: #fff; }
.p-row.agent .p-bubble { background: #EEF2FE; box-shadow: inset 0 0 0 1px rgba(43, 80, 224, .16), var(--lift); }
.face.agent { background: none; }
.face.agent .glyph { width: 100%; height: 100%; }
.p-bubble b { font-size: .75rem; }
.p-bubble img { max-width: 100%; max-height: 280px; border-radius: 12px; }
.p-body { white-space: pre-wrap; }
.p-time { font-size: .6875rem; opacity: .6; justify-self: end; }
.p-sys { align-self: center; font-size: .8125rem; color: var(--graphite); }
.glyph.mini { width: 16px; height: 16px; }

/* The composer: one floating capsule, never touching the edges. */
.capsule-wrap { padding: .5rem 1rem calc(.8rem + env(safe-area-inset-bottom)); }
.capsule { display: flex; align-items: flex-end; gap: .35rem; background: var(--card); border-radius: 26px; padding: .35rem; box-shadow: 0 0 0 1px var(--line), 0 10px 26px -14px rgba(20, 22, 26, .35); }
.capsule:focus-within { box-shadow: 0 0 0 2px var(--cobalt), 0 10px 26px -14px rgba(20, 22, 26, .35); }
.capsule textarea { flex: 1; border: 0; outline: 0; resize: none; background: none; padding: .55rem .3rem; max-height: 8.75rem; line-height: 1.35; font-size: 1rem; }
.cap-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: #F2F3F5; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.cap-btn svg { width: 22px; height: 22px; }
.round-send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.round-send:active { transform: scale(.92); }
.round-send.mic { background: var(--ink); }
.round-send svg { width: 20px; height: 20px; }

/* Recording a voice note. */
.recorder { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: flex; justify-content: center; background: linear-gradient(transparent, rgba(20, 22, 26, .25)); }
.rec-card { display: flex; align-items: center; gap: .7rem; background: var(--card); border-radius: 999px; padding: .45rem .5rem .45rem 1rem; box-shadow: var(--lift); width: min(100%, 34rem); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: breathe 1s ease-in-out infinite; }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 2.6rem; }
.levels { flex: 1; display: flex; align-items: center; gap: 3px; height: 36px; overflow: hidden; }
.levels i { flex: 1; min-width: 2px; height: 8px; border-radius: 2px; background: var(--cobalt); transition: height .08s; }

/* A voice note. */
.voice { display: flex; align-items: center; gap: .55rem; min-width: 12rem; }
.vplay { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(20, 22, 26, .08); color: inherit; cursor: pointer; font-size: .8rem; flex: none; }
.p-row.mine .vplay { background: rgba(255, 255, 255, .22); }
.vbar { flex: 1; height: 4px; border-radius: 2px; background: rgba(20, 22, 26, .15); overflow: hidden; }
.vbar i { display: block; height: 100%; width: 0; background: currentColor; }
.vtime { font-size: .75rem; font-variant-numeric: tabular-nums; opacity: .7; }

/* A group whose layout is dark at the top gets a header to match. */
.main.dark-chrome .top { background: var(--chrome); color: #F2F4F7; border-color: rgba(255, 255, 255, .08); }
.main.dark-chrome .top .sub, .main.dark-chrome .group-btn h1 svg { color: rgba(242, 244, 247, .62); }
.main.dark-chrome .top .icon-btn { background: rgba(255, 255, 255, .08); box-shadow: none; color: #F2F4F7; }
.main.dark-chrome .group-btn:hover { background: rgba(255, 255, 255, .06); }
.main.dark-chrome .agent-mark .glyph { color: #7D96FF !important; }
.main.dark-chrome .agent-btn:not(.busy) { background: rgba(255, 255, 255, .08); box-shadow: none; color: #F2F4F7; }
.main.dark-chrome .agent-btn.busy { background: rgba(125, 150, 255, .16); box-shadow: none; color: #A9B9FF; }

