/* Porcelain: a quiet look, light or dark as the system is set. Every color is one of these tokens; people get theirs from personColor (chatline.js) as --person. */
:root {
  --bg: #f6f6f4; /* pages */
  --stage: #ecece9; /* the call */
  --surface: #fff; /* cards, panels, the bar */
  --soft: #f0f0ed; /* hover, chat bubbles, secondary buttons */
  --hair: #dcddd8; /* borders */
  --bars: var(--hair); /* beside a video that doesn't fill its frame */
  --edge: #8e918a; /* input borders: 3:1 on white */
  --ink: #1b1d21;
  --dim: #5f6269;
  --live: #2f3fce; /* on: mic, camera, screen share, focus */
  --live-tint: #eceefb;
  --leave: #b42318;
  --ink-hover: #33363c; /* primary buttons */
  --chip: #ffffffe6; /* name tags and status over a tile */
  --note: #fdf3dc;
  --scrim: #1b1d2155; /* behind a dialog */
  --nameless: #5f6269; /* a circle before the name is known, both schemes: white initials 6:1 */
  --radius: 6px;
  --shadow: 0 8px 24px #1b1d211a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --barBottom: max(16px, env(safe-area-inset-bottom)); /* the bar's distance from the bottom edge */
  --selfPreviewBottomOffset: 116px; /* above the bar and its device tabs */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) { /* the same look at night: lighter means closer, contrast as in light (text 4.5:1, input borders 3:1) */
  :root {
    --bg: #18191c;
    --stage: #111214;
    --surface: #222327;
    --soft: #2c2e33;
    --hair: #3a3c42;
    --bars: var(--stage); /* no brighter than the stage */
    --edge: #80838b;
    --ink: #ececea;
    --dim: #a4a7ae;
    --live: #8e9bff;
    --live-tint: #2b3060;
    --leave: #ff8b7e;
    --ink-hover: #d4d5d2;
    --chip: #222327e6;
    --note: #3b3322;
    --scrim: #0009;
    --shadow: 0 8px 24px #0008;
    color-scheme: dark;
  }
}

body {
  margin: 0;
  word-break: break-word;
  font: 16px/1.4 var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}

button, input, select {
  font: inherit;
  color: inherit;
}

audio {
  max-width: 100%;
}

.icon { /* from the sprite in index.html: as big and colored as the text around it */
  width: 1.125em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

video {
  background: var(--bars);
  width: 100%;
}

/* primary and secondary buttons, inputs: one shape */
#joinBtn, #newCallBtn, #chatSendBtn, #copyLinkBtn, .knock button, #copyChatBtn, #nameInput, #chatInputText, #shareLink, #lobby select {
  border-radius: var(--radius);
  font-size: 16px; /* below 16px iOS zooms in on focus */
}

#joinBtn, #newCallBtn, #chatSendBtn, #copyLinkBtn, .knock button {
  border: 1px solid transparent; /* as tall as the secondary buttons */
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
}

#joinBtn:hover, #newCallBtn:hover, #chatSendBtn:hover, #copyLinkBtn:hover, .knock button:hover {
  background: var(--ink-hover);
}

#copyChatBtn, .knock button + button, #volumeReset {
  border: 1px solid var(--hair);
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
}

#nameInput, #chatInputText, #shareLink, #lobby select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--edge);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

#nameInput:focus, #chatInputText:focus, #shareLink:focus, #lobby select:focus {
  border-color: var(--live);
  box-shadow: 0 0 0 1px var(--live); /* 2px in all */
}

/* cards and panels */
#chatDiv, #shareDialog, #moreMenu, #lobby, .knock, #endCard, #endChat {
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

#lobby h2, #endCard h2, #endChat h2, #shareDialog h2 {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: -.01em;
}

#lobbyMsg, #intro p, #endCard p, #endChat p, #shareDialog p {
  margin: 0;
  color: var(--dim);
}

#chatText a, #intro a {
  color: var(--live);
}

/* the call */
#mediaDiv { /* tiles in rows: updateUserLayout sets --rows and --cols */
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(var(--barBottom) + 92px) env(safe-area-inset-left); /* names clear of the notch; tiles end above the bar and its device tabs */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* an incomplete last row in the middle */
  background: var(--stage);
}

.videoplaceholder {
  --disc: min(150px, 30vmin); /* the circle; the mute badge and status sit around it. Browsers without container units (Safari < 16) size it by the window */
  --lift: 0px;
  --mid: calc(50% - var(--lift)); /* the circle's centre */
  container-type: size;
  position: relative;
  width: calc(100% / var(--cols));
  height: calc(100% / var(--rows));
}

@supports (width: 1cqmin) {
  .videoplaceholder {
    --disc: min(150px, 65cqmin, 100cqh - 76px); /* smaller in short tiles, with room for the name and status chip under it */
    --lift: 26px; /* circle, name and status chip centred together */
  }
}

@media (max-width: 600px) { /* phone 1:1: the other one's circle, name and chip end above the own card (30% high, see .selfPreview) */
  #mediaDiv:has(> .selfPreview) > .videoplaceholder:not(.selfPreview, :has(> .userCont)) {
    height: calc(100% + var(--barBottom) + 92px - var(--selfPreviewBottomOffset) - env(safe-area-inset-bottom) - 30dvh - 8px);
  }
}

.videoplaceholder.selfPreview { /* own tile in a 1:1 call, over the other one */
  --gap: var(--surface);
  position: absolute;
  left: calc(20px + env(safe-area-inset-left));
  bottom: calc(var(--selfPreviewBottomOffset) + env(safe-area-inset-bottom));
  z-index: 1;
  width: 20%;
  min-width: 126px;
  height: 30%;
}

.videoplaceholder.selfPreview:has(> .userCont) { /* own video: the card is as tall as the video, so it sits right above the bar */
  height: auto;
  container-type: normal;
}

.selfPreview > .userCont {
  position: relative;
}

.selfPreview video, .selfPreview > .userPlaceholderContainer {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.userCont {
  position: absolute;
  inset: 0;
}

.userCont video { /* without container units (Safari < 16): full tile width, at the tile's top */
  display: block;
  max-height: 100%;
}

@supports (width: 1cqmin) { /* after the rules above, so it overrides them */
  .userCont { /* the video frame, in the middle of the tile like a circle, as big as the tile allows: --ar from updateUserLayout */
    margin: auto;
    width: min(100%, 100cqh * var(--ar));
    height: fit-content;
  }

  .userCont video {
    max-height: 100cqh;
  }
}

video.mirror {
  transform: scaleX(-1);
}

.videoplaceholder > .userPlaceholderContainer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--stage);
}

.videoplaceholder.selfPreview > .userPlaceholderContainer {
  background: var(--surface);
}

.videoplaceholder > .userPlaceholderContainer[hidden] {
  display: none;
}

.userPlaceholder { /* a person: their color, their initials, a ring while they speak (--level from setAudioLevel) */
  width: var(--disc);
  height: var(--disc);
  line-height: var(--disc);
  border-radius: 50%;
  background: var(--person, var(--nameless));
  color: #fff;
  font-size: calc(var(--disc) * .37);
  font-weight: 600;
  text-align: center;
  margin-bottom: calc(2 * var(--lift)); /* centred at --mid */
  box-shadow: 0 0 0 4px var(--gap, var(--stage)), 0 0 0 calc(3.5px + var(--level, 0) * 3px) var(--ink); /* quiet: the ink stays under the gap */
  transition: box-shadow .1s;
}

.userName, .peerStatus, .pipBtn, .audioMuted, .volumeSet { /* small chips over a tile */
  position: absolute;
  z-index: 10;
  border-radius: 4px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.userName { /* top left, one line, clear of the PiP button */
  top: 8px;
  left: 8px;
  max-width: calc(100% - 64px);
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.userName::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  color: var(--person, var(--nameless));
  background: currentColor;
}

.discName { /* without video: the name under the circle, one line */
  position: absolute;
  top: calc(var(--mid) + var(--disc) / 2 + 10px);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 16px);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peerStatus { /* under the circle and its name, away from the name tag */
  top: calc(var(--mid) + var(--disc) / 2 + 34px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  white-space: nowrap;
}

.peerStatus:empty {
  display: none;
}

.pipBtn {
  top: 8px;
  right: 8px;
  padding: 4px;
  border: 0;
  line-height: 0;
  cursor: pointer;
}

.pipBtn .icon {
  width: 22px;
  height: 22px;
}

.audioMuted, .volumeSet { /* a badge on the circle's lower right edge */
  background: var(--surface);
  left: calc(50% + var(--disc) * .35 - 14px);
  top: calc(var(--mid) + var(--disc) * .35 - 14px);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gap, var(--stage));
  color: var(--leave);
}

.userCont > .audioMuted { /* with video: under the name tag */
  left: 8px;
  top: 38px;
  border-radius: 4px;
  box-shadow: none;
}

.volumeSet { /* turned down by us: on the lower left edge, the tooltip (title) explains */
  left: calc(50% - var(--disc) * .35 - 14px);
  color: var(--dim);
  cursor: help;
}

.userCont > .volumeSet { /* with video: under the PiP button */
  left: auto;
  right: 8px;
  top: 44px;
  border-radius: 4px;
  box-shadow: none;
}

#volumeMenu { /* at the right-click */
  position: fixed;
  z-index: 50;
  max-width: calc(100vw - 32px);
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 14px;
}

#volumeMenu[hidden] {
  display: none;
}

#volumeMenu label {
  display: grid;
  gap: 8px;
}

#volumeRange {
  accent-color: var(--live);
}

#volumeReset {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 14px;
}

#volumeReset[hidden] {
  display: none;
}

/* the bar: wide equal cells with labels, floating clear of the edges and the safe areas */
#mediaControllContainer {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: var(--barBottom);
}

#mediaControll {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

#mediaControll > * + * {
  border-left: 1px solid var(--soft);
}

.deviceGroup, #moreGroup {
  position: relative;
}

.callBtn {
  display: grid;
  width: 100%;
  border: 0;
  background-color: transparent;
  justify-items: center;
  gap: 4px;
  padding: 10px 0 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.callBtn .icon {
  width: 22px;
  height: 20px;
}

@media (hover: hover) { /* phones: no hover left behind on the last tapped button */
  .callBtn:hover {
    background-color: var(--soft);
  }
}

#micGroup .callBtn {
  border-radius: 11px 0 0 11px;
}

#cancelCallBtn {
  border-radius: 0 11px 11px 0;
  color: var(--leave);
}

.callBtn[aria-pressed=true] { /* mic live, camera or screen shared: a blue tint, blue icon and a short line under the label */
  background-color: var(--live-tint);
  background-image: linear-gradient(var(--live), var(--live));
  background-position: center bottom 3px;
  background-size: 24px 2px;
  background-repeat: no-repeat;
}

.callBtn[aria-pressed=true] .icon {
  color: var(--live);
}

/* keyboard focus on a cell or a device tab (its select is invisible): a --live ring, none for mouse and touch. A clicked select is :focus-visible too: .keyboard from main.js */
.callBtn:focus-visible, .keyboard .selectDeviceBtn:has(:focus-visible) {
  outline: 2px solid var(--live);
  outline-offset: -2px;
}

/* tab on top of the mic/camera/screen button: opens the device list */
.selectDeviceBtn {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 28px;
  line-height: 28px;
  font-size: 14px;
  text-align: center;
  color: var(--dim);
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--hair);
  border-bottom: 0;
  box-sizing: border-box;
  background: var(--surface);
}

.selectDeviceBtn:hover {
  color: var(--ink);
}

/* invisible native select over the icon, so the OS picker opens on click */
.selectDeviceBtn select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#moreMenu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 30;
  padding: 6px;
  font-size: 15px;
  text-align: left;
}

#moreMenu[hidden] {
  display: none;
}

#moreMenu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  gap: 6px;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
}

#moreMenu button:hover {
  background: var(--soft);
}

#moreMenu .icon {
  width: 1.4em;
}

/* unread chat count badge */
#moreBtn {
  position: relative;
}

#moreBtn[data-unread]::after, #addRemoveChatBtn[data-unread]::after {
  content: attr(data-unread);
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--leave);
  color: var(--surface); /* white in light, dark on the lighter red in dark */
  font: 700 12px/20px var(--font);
  text-align: center;
}

#moreBtn[data-unread]::after {
  position: absolute;
  top: -10px;
  right: 6px;
  border: 2px solid var(--surface);
  line-height: 16px;
}

#addRemoveChatBtn[data-unread]::after {
  margin-left: auto;
}

/* chat */
#chatDiv {
  width: 320px;
  height: 420px;
  max-height: calc(100dvh - 150px); /* short desktop windows above the phone breakpoint */
  position: absolute;
  right: 20px;
  bottom: 120px; /* above the bar's device tabs */
  z-index: 20;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#chatDiv[hidden] {
  display: none;
}

#chatHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px 6px 16px;
  border-bottom: 1px solid var(--hair);
  font-weight: 700;
}

#chatDiv #chatCloseBtn, #shareDialog button[value=close] {
  padding: 4px 10px;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 1.6em;
  line-height: 1;
  cursor: pointer;
}

#chatText {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

#chatText:empty::before {
  content: "No messages yet";
  display: block;
  margin-top: 40%;
  text-align: center;
  color: var(--dim);
}

#chatText > div {
  width: fit-content;
  max-width: 85%;
  margin: 6px 0;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--soft);
  line-height: 1.35;
}

.chatName { /* --person: personColor, set by chatLine */
  color: var(--person);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .chatName, .userName::before { /* person colors are deep, for white initials: lighter on a dark bubble or chip */
    color: color-mix(in srgb, var(--person, var(--nameless)), #fff 50%);
  }
}

#chatInputRow {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--hair);
}

#chatInputText {
  padding: 9px 12px;
}

#chatSendBtn {
  width: 42px;
  height: 42px;
}

/* share dialog */
#shareDialog {
  width: min(420px, 90vw);
  box-sizing: border-box;
  padding: 20px;
}

#shareDialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(3px);
}

#shareDialog h2 {
  margin-bottom: 8px;
}

#shareDialog p {
  margin-bottom: 16px;
}

#shareDialog div { /* the link on its own lines, the button below: the room part stays in view on phones */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#shareDialog button[value=close] {
  float: right;
  margin: -10px -8px 0 0;
}

#shareLink {
  padding: 10px;
  font-family: ui-monospace, monospace;
  resize: none;
  field-sizing: content; /* as tall as the link; rows="3" where unsupported */
}

#copyLinkBtn {
  padding: 10px 16px;
  white-space: nowrap;
}

/* notices */
#unsupported, #micError {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 40px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.4em;
  text-align: center;
}

/* TV EFFECT */
div#topDiv, div#bottomDiv {
  animation: tvClose 0.5s forwards;
}

@keyframes tvClose {
  to { height: 50%; opacity: 1; }
}

div#centerDiv {
  animation: tvLine 0.4s forwards;
}

@keyframes tvLine {
  to { width: 0%; left: 50%; }
}

div#topDiv, div#bottomDiv {
  width: 100%;
  height: 0%;
  opacity: 0.9;
  background: black;
  position: absolute;
}
div#topDiv { top: 0%; }
div#bottomDiv { bottom: 0%; }
div#centerDiv {
  position: absolute;
  height: 1px;
  top: 50%;
  width: 100%;
  background: white;
  z-index: 1;
}

@media only screen and (max-width: 600px), only screen and (max-height: 460px) {
  :root {
    --selfPreviewBottomOffset: 108px;
  }

  :root {
    --barBottom: max(10px, env(safe-area-inset-bottom));
  }

  #chatDiv {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    max-height: none;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    border: 0;
    border-radius: 0;
  }

}

/* pre-join screen: own preview, name, mic and camera; the call UI stays hidden until Join */
.inLobby #mediaDiv, .inLobby #mediaControllContainer {
  display: none;
}

#lobby, #endCard, #endChat {
  position: fixed;
  inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  margin: auto;
  width: min(420px, 100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right));
  height: fit-content;
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#lobby > * {
  flex-shrink: 0; /* a short window scrolls the card instead of squashing the preview and the mic check */
}

#lobby[hidden], #endChat[hidden] {
  display: none;
}

#intro {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}

#intro[hidden] {
  display: none;
}

#intro ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

#intro li {
  display: flex;
  gap: 10px;
}

#intro li .icon {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  color: var(--live);
}

#lobbyPreview {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--stage);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lobbyPreview:has(video[hidden])::before {
  content: "Camera is off";
  color: var(--dim);
}

#lobbyVideo {
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror, like the own tile */
}

#lobby label {
  display: flex;
  align-items: center;
  gap: 10px;
}

#lobby label[hidden] {
  display: none;
}

#lobby label .icon {
  width: 1.4em;
}

#lobby select {
  padding: 9px;
}

#lobby input[type=checkbox] {
  accent-color: var(--ink);
}

#micMeter {
  width: 100%;
  height: 8px;
}

#micMeter::-webkit-meter-bar { background: var(--hair); border: 0; border-radius: 4px; }
#micMeter::-webkit-meter-optimum-value, #micMeter::-webkit-meter-suboptimum-value { background: var(--live); border-radius: 4px; }
#micMeter::-moz-meter-bar { background: var(--live); }

#nameInput, #joinBtn, #newCallBtn, #copyChatBtn {
  padding: 10px 14px;
}

#joinBtn, #newCallBtn {
  padding: 13px;
}

#joinBtn:disabled {
  opacity: .5;
  cursor: default;
}

/* end screen (endcall.html): the call in a few lines, the chat to save links from, and a way to start the next one */
#endPage { /* the card and the chat side by side, or one above the other; the page scrolls */
  overflow: auto;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

#endCard, #endChat {
  position: static; /* in the page's flow, not fixed like the lobby */
  max-height: none; /* the page scrolls, not the card */
  margin: 0;
  width: min(420px, 100%);
}

#endChat {
  max-height: min(600px, 100dvh - 32px);
}

#endChat #chatText {
  padding: 0; /* the card has its own */
}

#endChat #chatNote { /* the chat lives only in this tab */
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--note);
  color: var(--ink);
}

#duration {
  font-size: 3em;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

#duration:empty, #with:empty {
  display: none;
}

#nerdStats summary {
  color: var(--dim);
  cursor: pointer;
}

#stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 10px 0 0;
}

#stats dt {
  color: var(--dim);
}

#stats dd {
  margin: 0;
}

#newCallBtn {
  text-align: center;
  text-decoration: none;
}

/* join requests of a locked room, on top for every member */
#knocks {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(420px, 90vw);
}

.knock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.knock span {
  flex: 1;
}

.knock button {
  padding: 8px 12px;
}
