/* Daily use: keep the tactile materials, bring sending and its result closer. */
.device-shell .app-header {
  height: 66px;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 11px;
}
.device-shell .app-view { min-height: 0; }
.device-shell .app-nav { min-height: 60px; margin-top: 4px; margin-bottom: 6px; padding: 5px; }
.device-shell .app-nav button { min-height: 44px; }
.device-shell .demo-caption { padding-top: 1px; padding-bottom: max(7px, env(safe-area-inset-bottom)); line-height: 1.4; }

.screen.home-screen {
  min-width: 0;
  padding-top: 8px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.home-screen > * { min-width: 0; }
.home-topbar { display: flex; align-items: center; gap: 10px; }
.home-topbar .partner-card {
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 56px;
  padding: 8px 10px;
  gap: 9px;
  border-radius: 20px;
}
.home-topbar .partner-card .avatar { width: 36px; height: 36px; font-size: 14px; border-width: 2px; }
.home-topbar .partner-text { min-width: 0; }
.home-topbar .partner-text strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.home-topbar .partner-text p,
.home-topbar .partner-text small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.home-topbar .partner-card > svg { width: 15px; height: 15px; flex: none; }
.home-topbar > .text-btn,
.home-topbar > .icon-btn { flex: none; min-width: 48px; min-height: 44px; padding: 8px; font-size: 12px; }
.home-topbar > .text-btn svg { width: 17px; height: 17px; }
.home-heading { position: relative; min-width: 0; margin: 10px 0 12px; }
.home-prompt {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 12px 0 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -.02em;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.home-heading .home-prompt { margin: 0; padding-right: 84px; }
.sending-help { min-width: 0; margin-bottom: 12px; }
.sending-help > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.sending-help > summary::-webkit-details-marker { display: none; }
.sending-help > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.sending-help[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.sending-help > summary:hover { background: var(--info-bg); }
.sending-help > summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.home-heading .sending-help { margin: 0; }
.home-heading .sending-help > summary { position: absolute; top: 0; right: 0; }
.sending-help .sling-hint {
  align-items: flex-start;
  flex-wrap: nowrap;
  margin: 3px 0 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  font-size: 11px;
}
.sending-help .sling-hint > div { min-width: 0; }
.sending-help .sling-hint > svg { margin-top: 2px; flex: none; }
.sending-help .sling-hint small { font-size: 10px; line-height: 1.65; }

.home-screen .signals-grid { gap: 15px 12px; padding-bottom: 10px; }
.home-screen .signal-card { --pad-face-height: 130px; min-height: calc(var(--pad-face-height) + 7px); }
.home-screen .signal-face { padding: 13px 14px 27px; }
.home-screen .signal-symbol { width: 42px; height: 42px; border-radius: 15px; }
.home-screen .signal-symbol svg { width: 25px; height: 25px; }
.home-screen .signal-card .signal-label { margin-top: 9px; font-size: 17px; }
.home-screen .signal-card .pull-cue { min-width: 44px; min-height: 44px; }
.signal-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #f7ffed;
  border-radius: 50%;
  background: #e0f2d7;
  color: #27553a;
  box-shadow: 0 2px 0 #52784138;
  pointer-events: none;
}
.signal-check svg { width: 15px; height: 15px; stroke-width: 2.3; }
.signal-card.sent .signal-hint { visibility: hidden; }
.home-screen .setup-coach { margin: 12px 0; }
.setup-coach .setup-first-ping { min-height: 44px; width: 100%; padding: 10px 12px; font-size: 12px; line-height: 1.6; }

/* This region is a flex sibling of the scrolling app-view. */
.send-dock {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-width: 0;
  padding: 6px 16px 2px;
  background: var(--surface);
}
.send-dock[hidden], .send-dock:empty { display: none !important; margin: 0; padding: 0; border: 0; }
.send-dock-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 56px;
  padding: 6px 10px;
  border: 1.5px solid var(--cream-rim);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--card-foot);
}
.send-dock-inner > svg,
.send-dock-inner > .icon { width: 19px; height: 19px; flex: none; color: var(--primary); }
.send-dock-copy { flex: 1; min-width: 0; }
.send-dock-copy strong { display: block; font-size: 12px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.send-dock-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.send-dock-inner > button {
  flex: none;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 9px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.5;
}
.send-dock-inner > .icon-btn { padding: 8px; }
.send-dock-inner > button svg { width: 17px; height: 17px; }
.send-dock-inner[data-status="pending"],
.send-dock-inner[data-status="verifying"] { background: var(--info-bg); }
.send-dock-inner[data-status="success"] { background: var(--success-bg); }
.send-dock-inner[data-status="success"] > svg,
.send-dock-inner[data-status="success"] .send-dock-copy strong { color: var(--success); }
.send-dock-inner[data-status="failure"] { background: var(--error-bg); }
.send-dock-inner[data-status="failure"] > svg,
.send-dock-inner[data-status="failure"] .send-dock-copy strong { color: var(--error); }

.received-card.is-replied { margin-top: 10px; padding: 10px 12px; border-radius: 19px; }
.received-card.is-replied .received-top { padding-right: 30px; font-size: 10px; }
.received-card.is-replied .received-message { margin: 4px 28px 0 0; font-size: 14px; line-height: 1.5; }
.received-card.is-replied .received-message svg { width: 17px; height: 17px; }
.received-card.is-replied .close-received { top: 1px; right: 2px; min-width: 44px; min-height: 44px; }
.reply-confirmation { display: flex; align-items: flex-start; gap: 6px; margin-top: 5px; color: var(--success); font-size: 11px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.reply-confirmation svg { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.reply-confirmation > span { min-width: 0; }
.trial-sound-choice { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--info-bg); color: var(--ink); font-size: 11px; line-height: 1.6; }
.trial-sound-choice > span, .trial-sound-choice > div { min-width: 0; }
.trial-sound-choice button { flex: none; min-width: 44px; min-height: 44px; width: auto; padding: 8px 10px; font-size: 11px; }
.trial-sound-choice svg { width: 18px; height: 18px; flex: none; }
.theme-dark .signal-check { background: #d6eac7; color: #284e31; border-color: #ecf5dc; box-shadow: 0 2px 0 #142d1f66; }

.large-text .home-prompt { font-size: 23px; }
.large-text .home-topbar .partner-text strong { font-size: 18px; }
.large-text .home-topbar .partner-text p,
.large-text .home-topbar .partner-text small { font-size: 12px; }
.large-text .sending-help > summary { font-size: 14px; }
.large-text .home-heading .home-prompt { padding-right: 92px; }
.large-text .sending-help .sling-hint,
.large-text .sending-help .sling-hint small { font-size: 13px; }
.large-text .home-screen .signal-card { --pad-face-height: 150px; }
.large-text .home-screen .signal-card .signal-label { font-size: 21px; }
.large-text .send-dock-copy strong { font-size: 14px; }
.large-text .send-dock-copy small { font-size: 12px; }
.large-text .send-dock-inner > button { font-size: 13px; }
.large-text .reply-confirmation { font-size: 13px; }
.large-text .received-card.is-replied .received-message { font-size: 17px; }
.large-text .setup-coach .setup-first-ping { font-size: 14px; }

@media (max-width: 760px) {
  .device-shell .app-header { height: 64px; min-height: 64px; padding-top: 8px; padding-bottom: 12px; }
  .home-screen .signal-card { --pad-face-height: 128px; }
  .home-screen .home-bottom-note { margin-bottom: 0; }
}
@media (max-width: 360px) {
  .device-shell .app-header { height: 62px; min-height: 62px; padding-top: 7px; padding-bottom: 11px; }
  .home-topbar { gap: 7px; }
  .home-topbar .partner-card { gap: 7px; padding: 8px; }
  .home-topbar > .text-btn { min-width: 44px; padding: 6px; font-size: 11px; gap: 4px; }
  .home-prompt { font-size: 19px; }
  .home-heading { margin-top: 9px; margin-bottom: 10px; }
  .home-screen .signal-card { --pad-face-height: 122px; }
  .home-screen .signal-face { padding: 12px 12px 26px; }
  .home-screen .signal-symbol { width: 40px; height: 40px; }
  .home-screen .signal-card .signal-label { font-size: 16px; }
  .send-dock { padding-right: 13px; padding-left: 13px; }
  .send-dock-inner { gap: 6px; padding: 5px 8px; }
  .send-dock-inner > svg { width: 17px; height: 17px; }
  .send-dock-inner > button { padding: 8px; }
  .large-text .home-screen .signals-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .large-text .home-screen .signal-card { --pad-face-height: 97px; border-radius: 23px; }
  .large-text .home-screen .signal-face {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    padding: 10px 14px 37px;
  }
  .large-text .home-screen .signal-symbol { grid-column: 1; grid-row: 1; width: 44px; height: 44px; }
  .large-text .home-screen .signal-card .signal-label { grid-column: 2; grid-row: 1; width: auto; margin: 0; padding-right: 18px; font-size: 21px; line-height: 1.35; }
  .large-text .home-screen .signal-card .send-caption { grid-column: 2; grid-row: 2; margin: 2px 0 0; font-size: 12px; }
  .large-text .home-screen .signal-hint { display: none; }
  .large-text .home-screen .pull-cue { bottom: 5px; }
  .large-text .home-screen .signal-check { top: 10px; right: 10px; width: 22px; height: 22px; }
  .large-text .home-prompt { font-size: 21px; }
  .large-text .send-dock-inner > button { padding-right: 7px; padding-left: 7px; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .device-shell .app-header { height: 60px; min-height: 60px; padding-top: 6px; padding-bottom: 10px; }
  .home-heading { margin-top: 7px; margin-bottom: 8px; }
  .send-dock { padding-top: 4px; }
  .send-dock-inner { min-height: 54px; }
}

/* The invitation can also be selected and copied manually on a small screen. */
.field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 10.25rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 2px 4px #4748330e, 0 1px 0 var(--cream-rim);
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: auto;
  resize: vertical;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.field textarea:focus { border-color: var(--primary); outline-offset: 2px; }
.invite-share-feedback {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--info-bg);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.large-text .field textarea { min-height: 11.5rem; font-size: 18px; }
.large-text .invite-share-feedback { font-size: 14px; }
