:root {
  --ink: #0c1f24;
  --foam: #e8f4f2;
  --sea: #0d6e6e;
  --sea-deep: #084848;
  --accent: #d97706;
  --mist: rgba(12, 31, 36, 0.08);
  --ok: #157a4b;
  --bad: #b42318;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-tagline: "Space Grotesk", sans-serif;
  /* 90% transparent surfaces (10% opaque) */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-ink: rgba(12, 31, 36, 0.1);
  --glass-sea: rgba(13, 110, 110, 0.1);
  --glass-sea-deep: rgba(8, 72, 72, 0.1);
  --glass-accent: rgba(217, 119, 6, 0.1);
  --glass-ok: rgba(21, 122, 75, 0.1);
  --glass-bad: rgba(180, 35, 24, 0.1);
  --glass-away: rgba(107, 114, 128, 0.1);
  --glass-incoming: rgba(194, 65, 12, 0.1);
  --glass-connecting: rgba(91, 124, 138, 0.1);
  --chat-vh: 100dvh;
  --chat-vv-offset: 0px;
  --chat-bar-h: 3.15rem;
}

* { box-sizing: border-box; }
html {
  height: 100%;
  max-width: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #fff;
  background-image: none;
  line-height: 1.5;
}

.bg-grid {
  display: none;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #fff;
  overflow: visible;
}
.site-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800 !important;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
/* Marketing / guest chrome: landing-size wordmark everywhere except admin UI */
.site-header .brand:not(.brand-profile) {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
body:has(.admin) .site-header .brand:not(.brand-profile) {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.brand span { color: var(--sea); }
.brand-profile {
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: min(36rem, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-mark {
  font-family: var(--font-display);
  /*font-weight: 800;*/
  letter-spacing: -0.03em;
  color: var(--ink);
  font-size: 2.4rem;
}
.brand-mark > span { color: var(--sea); }
.site-header nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.site-header a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header a.btn {
  color: #fff;
}
.site-header a.btn:hover {
  color: #fff;
}
.inline { display: inline; margin: 0; }
.linkish {
  background: none; border: none; font: inherit; color: inherit;
  cursor: pointer; padding: 0; font-weight: 500;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0 1.25rem;
  box-sizing: border-box;
}

.hero {
  min-height: 0;
  padding: 2rem 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: rise 0.7s ease both;
}
.brand-hero {
  margin: 2rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-hero > span { color: var(--sea); }
.brand-hero.compact { font-size: 1.5rem; margin-bottom: 0.6rem; }
.site-header-nav-only .site-shell {
  justify-content: flex-end;
}
.site-header-nav-only nav {
  margin-left: 0;
}
.hero .hero-sub,
.hero-sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(12, 31, 36, 0.72);
}
.hero .profile-on .brand {
  display: inline;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  vertical-align: baseline;
}
.logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: rgba(255,255,255,0.9);
}
.lede {
  font-size: 1.05rem;
  color: rgba(12, 31, 36, 0.78);
  line-height: 2rem;
  margin: 3rem 0;
}
.cta-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
  margin: 2rem 0;
}
.cta-row .cta-short { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.55rem;
  border: none;
  background: var(--sea);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--sea-deep); transform: translateY(-1px); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(12, 31, 36, 0.22);
}
.btn-ghost:hover { background: var(--foam); }
.oauth-stack { display: grid; gap: 0.65rem; margin: 0 0 0.25rem; }
.btn-oauth {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(12, 31, 36, 0.18);
  font-weight: 600;
}
.btn-oauth:hover { transform: translateY(-1px); }
.btn-google:hover { background: #f8fafc; }
.btn-facebook {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}
.btn-facebook:hover { background: #0f5fcf; color: #fff; }
.btn-x {
  background: #000;
  color: #fff;
  border-color: #000;
}
.btn-x:hover { background: #171717; color: #fff; }
.btn-danger {
  background: var(--bad);
  color: #fff;
}
.btn-danger:hover { background: #8f1c14; }
.danger-zone {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(180, 35, 24, 0.25);
}
.danger-zone h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--bad);
}
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: rgba(12, 31, 36, 0.45);
  font-size: 0.85rem;
}
.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(12, 31, 36, 0.12);
}
.oauth-divider span { text-transform: lowercase; }

/* Auth pages: login, signup, password reset, verify */
body.auth-page main.auth-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}
body.auth-page main.auth-main > section {
  max-width: min(28rem, 100%);
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: auto;
}
body.auth-page main.auth-main > section h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
body.auth-page main.auth-main > section .lede,
body.auth-page main.auth-main > section .signup-lede {
  margin: 0 0 1.25rem;
  line-height: 1.55;
  font-size: 1rem;
}
body.auth-page main.auth-main > section .hint a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
body.auth-page main.auth-main > section .hint a:hover {
  color: var(--sea-deep);
}
body.auth-page main.auth-main > section .stack .btn,
body.auth-page main.auth-main > section > .btn {
  width: 100%;
}
body.auth-page .oauth-stack .btn-oauth {
  border-color: rgba(12, 31, 36, 0.16);
}
body.auth-page input,
body.auth-page textarea,
body.auth-page select {
  background: #fff;
  border-color: rgba(12, 31, 36, 0.16);
}
body.auth-page input:focus,
body.auth-page textarea:focus,
body.auth-page select:focus {
  outline: 2px solid rgba(13, 110, 110, 0.35);
  outline-offset: 1px;
  border-color: var(--sea);
}
.password-field {
  position: relative;
  min-width: 0;
}
.password-field input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--sea-deep, #0c1f24);
  cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(12, 31, 36, 0.06);
}

.call-btn {
  background: var(--sea);
  animation: pulse 2.4s ease-in-out infinite;
}
.call-btn:hover {
  background: var(--accent);
}
.call-btn.is-attention,
.card-action-btn.is-attention {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  animation: pulse 1.1s ease-in-out infinite;
}
.card-actions-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0.75rem 0 0.5rem;
  max-width: 100%;
  width: fit-content;
}
.card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  width: max-content;
  max-width: 100%;
}
.card-status {
  margin: 0 !important;
  /* Match button-row width; don't let long text widen the wrap */
  width: 0;
  min-width: 100%;
  min-height: 3rem;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(12, 31, 36, 0.08);
  border-radius: 0.55rem;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(12, 31, 36, 0.65);
  padding: 0.55rem 0.75rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.card-status.is-available {
  color: #206846;
  text-shadow: none;
  font-weight: 600;
}
.card-status.is-away {
  color: rgba(12, 31, 36, 0.45);
}
.card-status.is-busy {
  color: var(--sea-deep);
}
.card-actions .card-action-btn.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  animation: pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(13, 110, 110, 0.35);
}
.card-actions .card-action-btn.btn.is-locked,
.card-actions .card-action-btn.btn:disabled {
  background: rgba(12, 31, 36, 0.28);
  animation: none;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}
.card-actions .card-action-btn.btn.is-locked:hover,
.card-actions .card-action-btn.btn:disabled:hover {
  transform: none;
  background: rgba(12, 31, 36, 0.28);
  box-shadow: none;
  animation: none;
  cursor: not-allowed;
}
.card-actions .card-action-btn.btn:hover {
  color: #fff;
  animation: pulse-accent 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.28), 0 0 22px rgba(217, 119, 6, 0.45);
  background: var(--sea-deep);
  transform: translateY(-1px);
  cursor: pointer;
}
.card-actions .card-action-btn .bi {
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
}

.how {
  margin: 0 0 2.5rem;
  animation: rise 0.9s ease both;
}
.how h2 { font-family: var(--font-body); margin: 0 0 0.4rem; }
.how-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(12, 31, 36, 0.78);
}
.how-steps li { padding-left: 0.15rem; }

.welcome-body {
  margin: 0.25rem 0 2.5rem;
  animation: rise 0.85s ease both;
}
.welcome-body h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.55rem;
}
.welcome-body p {
  margin: 0 0 0.9rem;
  color: rgba(12, 31, 36, 0.82);
}
.welcome-points {
  list-style: none;
  padding-left: 0;
  gap: 0.7rem;
}
.welcome-points li {
  padding-left: 0;
  color: rgba(12, 31, 36, 0.82);
}
.welcome-points strong {
  color: var(--ink);
  font-family: var(--font-display);
}
.benefit-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.benefit-list li {
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.5);
  border-radius: 0.75rem;
  border: 1px solid rgba(12, 31, 36, 0.08);
}
.benefit-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.narrow {
  max-width: min(24rem, 100%);
  width: 100%;
  box-sizing: border-box;
}
.admin > div {
  max-width: none;
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
main > article {
  max-width: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
article .home-split {
  margin: 1.25rem 0 1.75rem;
}
article .home-split > div:first-child > :first-child {
  margin-top: 0;
}
.stack { display: grid; gap: 1rem; min-width: 0; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; min-width: 0; }
input, textarea, select {
  font: inherit;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(12, 31, 36, 0.18);
  background: rgba(255,255,255,0.85);
  box-sizing: border-box;
}
.phone-fields {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}
.phone-fields legend {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0;
  margin: 0 0 0.35rem;
}
.phone-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) minmax(0, 1.1fr);
  gap: 0.65rem;
  min-width: 0;
}
.phone-fields .hint { margin: 0.35rem 0 0; }
@media (max-width: 560px) {
  .phone-row { grid-template-columns: 1fr; }
}
.sub-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border: 1px solid rgba(12, 31, 36, 0.16);
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}
.sub-input input {
  border: none;
  background: transparent;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.sub-input span {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(12, 31, 36, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hint { font-weight: 400; color: rgba(12,31,36,0.65); font-size: 0.88rem; overflow-wrap: anywhere; }
.hint.small { font-size: 0.78rem; }
.hint.ok { color: var(--ok); }
.hint.bad, .hint.warn { color: #8a4b12; }
.flash {
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  margin: 0 0 1rem;
}
.flash-error { background: #fde8e6; color: var(--bad); }
.flash-ok { background: #e3f6ec; color: var(--ok); }

.msg-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mist);
}
.msg-heading {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.msg-item {
  padding: 0.6rem 0.7rem;
  background: rgba(255,255,255,0.55);
  /*border-radius: 0.75rem;*/
  border: 1px solid rgba(12, 31, 36, 0.08);
}
.msg-item.is-unread {
  border-color: rgba(13, 110, 110, 0.35);
  background: rgba(13, 110, 110, 0.08);
}
.msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.msg-time { color: rgba(12,31,36,0.55); font-size: 0.85rem; }
.msg-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  color: var(--sea-deep, #0f766e);
  background: rgba(15, 118, 110, 0.12);
}
.msg-body { margin: 0 0 0.5rem; white-space: pre-wrap; word-break: break-word; }
.msg-link { display: block; text-decoration: none; color: inherit; }
.msg-link:hover .msg-body { color: var(--sea-deep); }
.msg-actions { margin: 0.35rem 0 0; }
.widget-chat-view { max-width: 40rem; }
.widget-chat-head { margin-bottom: 1rem; }
.widget-chat-head h1 { margin-bottom: 0.35rem; }
.widget-chat-meta { margin: 0 0 0.35rem; font-size: 0.95rem; }
.widget-chat-from { margin: 0 0 0.5rem; word-break: break-all; }
.widget-chat-summary {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.8rem;
  background: rgba(13, 110, 110, 0.08);
  border: 1px solid rgba(13, 110, 110, 0.2);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}
.widget-chat-thread {
  max-height: none;
  margin-top: 0.5rem;
}
.wide-thread { max-width: 100%; }
.thread {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  max-height: 50vh;
  overflow: auto;
  padding: 0.25rem;
}
.thread-bubble {
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(12, 31, 36, 0.08);
  max-width: 90%;
}
.thread-bubble.is-mine {
  justify-self: end;
  background: rgba(13, 110, 110, 0.12);
  border-color: rgba(13, 110, 110, 0.25);
}
/* Admin website chat — visitor vs secretary vs you (matches live data-role attrs) */
#widget-chat-thread .thread-bubble[data-role="user"] {
  justify-self: start;
  background: #eee !important;
  border: 1px solid rgba(12, 31, 36, 0.12) !important;
  color: #1a1a1a !important;
}
#widget-chat-thread .thread-bubble[data-role="user"] .thread-meta {
  color: rgba(12, 31, 36, 0.55) !important;
}
#widget-chat-thread .thread-bubble[data-role="model"] {
  justify-self: start;
  background: #fff !important;
  border: 1px solid rgba(12, 31, 36, 0.12) !important;
  color: #1a1a1a !important;
}
#widget-chat-thread .thread-bubble[data-role="model"] .thread-meta {
  color: rgba(12, 31, 36, 0.55) !important;
}
#widget-chat-thread .thread-bubble[data-role="agent"],
#widget-chat-thread .thread-bubble.is-mine {
  justify-self: end;
  background: #fef3c7 !important;
  border: 1px solid #f59e0b !important;
  color: #78350f !important;
}
#widget-chat-thread .thread-bubble[data-role="agent"] .thread-meta,
#widget-chat-thread .thread-bubble.is-mine .thread-meta {
  color: rgba(120, 53, 15, 0.7) !important;
}
.thread-bubble p { margin: 0.25rem 0 0; white-space: pre-wrap; word-break: break-word; }
.thread-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(12,31,36,0.55);
}
.thread-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.msg-ticks {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(12, 31, 36, 0.4);
}
.msg-ticks.is-delivered {
  color: rgba(12, 31, 36, 0.55);
}
.msg-ticks.is-read {
  color: var(--sea);
}
.thread-bubble.is-mine .msg-ticks.is-read {
  color: var(--sea-deep);
}
.typing-indicator {
  min-height: 1.25rem;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(12, 31, 36, 0.55);
}
.typing-indicator.hidden {
  display: none;
}

body.call-mode-chat,
body.gr-chat-open {
  overflow: hidden;
}
body:has(.admin-chat) {
  overflow: hidden;
  height: var(--chat-vh, 100dvh);
  max-height: var(--chat-vh, 100dvh);
}
body:has(.admin-chat) main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: none;
}
.admin.admin-chat {
  flex: 1;
  min-height: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
}
.admin.admin-chat .admin-nav {
  flex: 0 0 auto;
  display: block;
  z-index: 2;
}
.chat-shell-inbox {
  flex: 1;
  min-height: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  animation: none;
  border-radius: 0;
}
.chat-shell-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-height: var(--chat-bar-h, 3.25rem);
  padding: 0.35rem 0.55rem;
  padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(12, 31, 36, 0.1);
  box-sizing: border-box;
}
.chat-shell-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.chat-shell-id-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.chat-shell-mode {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(12, 31, 36, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-shell-bar[data-gr-chat-variant="live"] .chat-shell-mode {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c1f24;
}
.chat-shell-peer {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0c1f24;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-shell-bar[data-gr-chat-variant="live"] .chat-shell-peer {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(12, 31, 36, 0.65);
}
.chat-shell-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
h1.chat-shell-title {
  margin: 0;
  font-size: 1.05rem;
}
.chat-shell-bar[data-gr-chat-variant="live"] {
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(12, 31, 36, 0.1);
  min-height: 3.25rem;
  padding-top: max(0.4rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.4rem;
}
.chat-shell-bar[data-gr-chat-variant="live"] .chat-shell-close {
  flex: 0 0 auto;
  background: transparent;
  border-radius: 0.5rem;
}
.live-chat-file.is-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: min(14rem, 72%);
}
.live-chat-file.is-image.is-mine {
  align-items: flex-end;
}
.live-chat-thumb {
  display: block;
  width: 100%;
  max-width: 12rem;
  max-height: 12rem;
  border-radius: 0.75rem;
  object-fit: cover;
  background: rgba(12, 31, 36, 0.08);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.live-chat-file.is-image .live-chat-file-open {
  font-size: 0.8rem;
}
.chat-shell-inbox .call-actions {
  flex-shrink: 0;
}
.chat-shell-inbox .flash {
  margin: 0.35rem 0.75rem 0;
  flex-shrink: 0;
}
.chat-shell-inbox .thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  align-content: start;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.chat-shell-inbox .thread-bubble {
  flex: 0 0 auto;
  align-self: flex-start;
  width: fit-content;
  max-width: 82%;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}
.chat-shell-inbox .thread-bubble.is-mine {
  align-self: flex-end;
  justify-self: auto;
  background: rgba(13, 110, 110, 0.16);
}
.chat-shell-inbox .typing-indicator {
  flex-shrink: 0;
  margin: 0;
  padding: 0 0.85rem 0.2rem;
}
.chat-shell-composer {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(12, 31, 36, 0.1);
  box-sizing: border-box;
  align-items: flex-end;
  gap: 0.45rem;
}
.chat-shell-composer input[type="hidden"] {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.chat-shell-inbox .chat-shell-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.55rem;
  max-height: 8rem;
  resize: none;
  line-height: 1.35;
  padding: 0.55rem 0.7rem;
  box-sizing: border-box;
}
/* Quick chat: clip + Send. Inbox: Send. Same height as the field. */
.live-chat.chat-shell .chat-shell-composer input[type="text"] {
  height: 2.55rem;
  min-height: 2.55rem;
  box-sizing: border-box;
}
.live-chat.chat-shell .chat-shell-composer .chat-attach,
.live-chat.chat-shell .chat-shell-composer > .btn,
.chat-shell-inbox .chat-shell-composer > .btn {
  box-sizing: border-box;
  height: 2.55rem;
  min-height: 2.55rem;
  max-height: 2.55rem;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.live-chat.chat-shell .chat-shell-composer .chat-attach {
  width: 2.55rem;
  min-width: 2.55rem;
  padding-left: 0;
  padding-right: 0;
}

.admin {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}
.admin-nav {
  display: block;
  padding: 0;
  background: rgba(255,255,255,0.45);
  border-radius: 0;
}
.admin-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  box-shadow: 0 12px 32px rgba(12, 31, 36, 0.08);
  border: 1px solid rgba(12, 31, 36, 0.08);
}
.admin-nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}
.admin-nav-icon .bi {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.95;
}
.admin-nav-icon.active,
.admin-nav-icon:hover {
  background: rgba(13, 110, 110, 0.12);
}
.admin-nav-logout {
  display: inline-flex;
  margin: 0 0 0 auto;
}
.admin-nav-logout .admin-nav-icon {
  font: inherit;
  border-radius: 0;
}
.admin-nav a.admin-nav-icon {
  justify-content: center;
}
.nav-bubble {
  position: absolute;
  top: 0.1rem;
  right: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.admin-url { display: none; }
.admin-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0;
}
.admin-heading-row .admin-heading-meta {
  margin: 0;
  margin-left: auto;
  text-align: right;
}
h1:not(.namecard-name),
h2,
h3 {
  font-family: var(--font-body);
}
h1:not(.namecard-name) {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.75rem 0;
  line-height: 1.25;
}
.contact-requests {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(194, 65, 12, 0.28);
  border-radius: 0.75rem;
  background: rgba(194, 65, 12, 0.06);
}
.contact-requests .msg-heading { margin-top: 0; }
.contact-requests .msg-list { margin-bottom: 0; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.15rem 0;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.toggle-row .toggle-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.toggle-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.toggle-row .switch {
  position: relative;
  flex: 0 0 auto;
  width: 2.85rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(12, 31, 36, 0.22);
  border: 1px solid rgba(12, 31, 36, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.toggle-row .switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.65rem - 6px);
  height: calc(1.65rem - 6px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(12, 31, 36, 0.28);
  transition: transform 0.18s ease;
}
.toggle-row input:checked + .switch {
  background: var(--sea);
  border-color: var(--sea-deep);
}
.toggle-row input:checked + .switch::after {
  transform: translateX(1.2rem);
}
.toggle-row input:focus-visible + .switch {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}
.toggle-row input:disabled + .switch {
  opacity: 0.45;
}
@media (prefers-reduced-motion: reduce) {
  .toggle-row .switch,
  .toggle-row .switch::after {
    transition: none;
  }
}
.section-title {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.notify-block .section-title { margin-top: 0.35rem; }
.notify-prefs {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  margin: 0 0 0.35rem;
  border: 1px solid rgba(12, 31, 36, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
}
.notify-prefs .hint { margin: 0 0 0.65rem; }
.notify-prefs .hint:last-child { margin-bottom: 0; }

.status-picker {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  min-width: 0;
  max-width: 100%;
}
.status-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(12, 31, 36, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.status-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.status-option-dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(12, 31, 36, 0.25);
}
.status-option.is-available .status-option-dot {
  background: #1a9b6c;
}
.status-option.is-busy .status-option-dot {
  background: #c45c26;
}
.status-option.is-away .status-option-dot {
  background: rgba(12, 31, 36, 0.35);
}
.status-option-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}
.status-option-text strong {
  font-size: 1rem;
  color: var(--ink);
}
.status-option-text small {
  color: rgba(12, 31, 36, 0.55);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.status-option:has(input:checked) {
  border-color: rgba(13, 110, 110, 0.5);
  background: rgba(13, 110, 110, 0.08);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 110, 0.14);
}
.status-option:focus-within {
  outline: 2px solid rgba(13, 110, 110, 0.35);
  outline-offset: 2px;
}

.logo-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 0.75rem; }
.logo-current { display: grid; gap: 0.65rem; justify-items: start; }

.qr-card {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(12, 31, 36, 0.1);
  border-radius: 0.85rem;
  background: #fff;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  width: 100%;
  max-width: min(24rem, 100%);
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(12, 31, 36, 0.08);
}
.qr-card .section-title { margin: 0; font-size: 1.05rem; }
.qr-card .hint { margin: 0; }
.qr-card-public {
  margin: 0.75rem 0 1rem;
}

/* Public profile — single digital name card (matches product screenshot) */
.namecard-hero {
  align-items: stretch;
  width: 100%;
  gap: 0.85rem;
  padding-top: 1.25rem;
}
.namecard {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
  width: 100%;
  margin: 0;
  padding: 2rem 2rem 1rem;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(12, 31, 36, 0.08);
  border-radius: 0.95rem;
  box-shadow: 0 12px 32px rgba(12, 31, 36, 0.08);
}
.admin .namecard-hero {
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}
.namecard-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 5.5vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.namecard-name .presence-dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.15em;
  flex: 0 0 auto;
}
.namecard-name a {
  color: inherit;
  text-decoration: none;
}
.namecard-name a:hover { color: var(--sea); }
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sea);
  font-size: 0.55em;
  line-height: 1;
  flex: 0 0 auto;
  vertical-align: middle;
}
.verified-badge .bi {
  display: block;
}
.temp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
}
.temp-badge-tryout {
  background: rgba(13, 110, 110, 0.14);
  color: var(--sea-deep);
}
.temp-badge-door {
  background: rgba(12, 31, 36, 0.08);
  color: var(--ink);
}
.namecard .device-check.is-compact {
  width: 100%;
  margin: 0;
}
.namecard .device-check.is-compact .pwa-install-row {
  margin: 0 0 0.35rem;
}
.namecard .device-check.is-compact .hint {
  margin: 0.15rem 0 0;
}
.namecard-prep {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  justify-items: stretch;
}
.namecard-prep .section-title {
  font-size: 0.95rem;
  margin: 0;
}
.namecard-prep-box {
  padding: 1rem;
  border: 1px solid rgba(12, 31, 36, 0.08);
  border-radius: 0.55rem;
  box-sizing: border-box;
}
html.tryout-prep-open {
  overflow: hidden;
}
.tryout-prep-overlay,
.line-prep-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.line-prep-overlay { z-index: 118; }
.tryout-prep-overlay[hidden],
.line-prep-overlay[hidden],
.gr-connect-overlay[hidden] { display: none !important; }
html.gr-connect-open {
  overflow: hidden;
}
.tryout-prep-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 36, 0.42);
  pointer-events: none;
}
.tryout-prep-panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(12, 31, 36, 0.12);
  box-shadow: 0 16px 48px rgba(12, 31, 36, 0.18);
  box-sizing: border-box;
}
.tryout-prep-panel .section-title {
  margin: 0;
  font-size: 1.15rem;
  outline: none;
}
.tryout-prep-panel .hint {
  margin: 0;
}
.tryout-prep-panel .pwa-install-row {
  margin: 0 0 0.35rem;
}
.tryout-prep-panel .device-check.is-compact .hint {
  margin: 0.15rem 0 0;
}
@media (min-width: 520px) {
  .tryout-prep-panel .pwa-install-row {
    flex-wrap: nowrap;
  }
}
.tryout-prep-actions {
  margin: 0.25rem 0 0;
}
.tryout-prep-warn {
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(138, 75, 18, 0.25);
  background: rgba(255, 186, 73, 0.18);
  border-radius: 0.5rem;
  color: #8a4b12;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
}
.tryout-prep-reopen {
  display: inline;
  margin: 0.15rem 0 0 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}
.line-prep-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 116;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}
.line-prep-banner[hidden],
.line-prep-banner.hidden { display: none !important; }
.line-prep-banner.is-sound {
  background: #fde8c8;
  color: #8a4b12;
  border-bottom: 1px solid rgba(138, 75, 18, 0.28);
}
.line-prep-banner.is-mic {
  background: #f8d4d8;
  color: #8a2036;
  border-bottom: 1px solid rgba(180, 35, 24, 0.28);
}
.line-prep-banner p {
  margin: 0;
  flex: 1 1 12rem;
}
.line-prep-banner .line-prep-open {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
  white-space: nowrap;
}
.line-prep-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}
.line-prep-dismiss:hover,
.line-prep-dismiss:focus-visible {
  background: rgba(12, 31, 36, 0.08);
}
html.line-prep-banner-on .site-header {
  margin-top: 2.7rem;
}
.namecard-your-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.15rem 0 0;
  color: rgba(12, 31, 36, 0.62);
  font-size: 0.9rem;
  font-weight: 500;
}
.namecard-your-status .hint {
  margin: 0;
}
.namecard-your-status .presence-dot {
  width: 0.55rem;
  height: 0.55rem;
}
.namecard-your-status.is-available {
  color: #206846;
}
.namecard-body {
  display: grid;
  gap: 1rem 1.5rem;
  align-items: start;
  width: 100%;
}
.namecard-qr,
.namecard-side {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  min-width: 0;
}
.namecard-host-stay {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}
.namecard-hint {
  margin: 0;
  font-weight: 400;
  color: rgba(12, 31, 36, 0.62);
  font-size: 0.88rem;
}
.namecard-assistant {
  margin: 0.2rem 0 0;
}
.namecard-assistant-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sea);
  cursor: pointer;
  text-align: left;
}
.namecard-assistant-btn:hover {
  text-decoration: underline;
}
.namecard .qr-frame-lg {
  width: min(16.5rem, 100%);
  margin: 0.15rem 0;
  justify-self: start;
}
.namecard-contact {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.namecard-contact a {
  color: var(--sea);
  text-decoration: none;
}
.namecard-contact a:hover {
  color: var(--sea-deep);
  text-decoration: underline;
}
.namecard-actions {
  margin: 0.15rem 0;
  width: 100%;
  max-width: 100%;
}
.namecard-actions .card-actions {
  gap: 0.5rem;
}
.namecard-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.namecard-tools .btn {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 50%;
}
.namecard-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.namecard-share-sheet[hidden] {
  display: none !important;
}
.namecard-share-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 32, 0.45);
  cursor: pointer;
}
.namecard-share-panel {
  position: relative;
  z-index: 1;
  width: min(24rem, calc(100vw - 1.5rem));
  background: var(--paper, #fff);
  color: var(--ink, #14212b);
  border: 1px solid var(--line, #d5dde3);
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 12px 40px rgba(15, 23, 32, 0.18);
}
.namecard-share-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.namecard-share-url {
  margin: 0 0 0.85rem;
  word-break: break-all;
}
.namecard-share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.namecard-share-actions .btn {
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
}
.namecard-share-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.namecard-share-wechat {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line, #d5dde3);
  text-align: center;
}
.namecard-share-wechat-qr {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.namecard-share-wechat-qr svg {
  width: 11rem;
  height: 11rem;
  max-width: 100%;
  background: #fff;
}
@media (min-width: 701px) {
  .namecard-share-sheet {
    align-items: center;
  }
}
.namecard .card-status .presence-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  vertical-align: 0.05em;
}
.namecard .card-status {
  /* Prose status line — must NOT be flex (flex collapses spaces around <a> in Firefox). */
  display: block;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  margin-top: 0.15rem !important;
  text-align: left;
  border-radius: 0.65rem;
  border-color: rgba(12, 31, 36, 0.12);
  color: rgba(12, 31, 36, 0.42);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  line-height: 1.45;
}
.namecard .card-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  margin: 0 0.15em;
}
.namecard .card-status.is-available {
  color: #206846;
}
.namecard .card-status.is-away {
  color: rgba(12, 31, 36, 0.42);
}
.namecard-hero .namecard {
  position: relative;
}
.namecard-hero .namecard .profile-on {
  margin-left: 0;
  margin-right: auto;
  justify-self: start;
  text-align: left;
}
.namecard.has-card-widget .profile-on {
  padding-right: 5.25rem;
  min-height: 4.75rem;
  display: flex;
  align-items: flex-end;
}
.namecard .profile-on {
  margin: 0.15rem 0 0;
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(12, 31, 36, 0.55);
}
.namecard .profile-on .brand {
  display: inline;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  vertical-align: baseline;
}
.namecard-bio {
  margin-top: 1.25rem;
}

.namecard-demo {
  margin: 0.35rem 0 1.1rem;
  /*max-width: 60rem;*/
  width: 100%;
  align-self: stretch;
}
.namecard-demo .namecard-tools .btn,
.namecard-demo .card-actions .btn {
  cursor: pointer;
  pointer-events: auto;
}
.home-demo-login {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.home-demo-login[hidden] {
  display: none !important;
}
.home-demo-login-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 32, 0.45);
  cursor: pointer;
}
.home-demo-login-panel {
  position: relative;
  z-index: 1;
  width: min(24rem, calc(100vw - 1.5rem));
  background: var(--paper, #fff);
  color: var(--ink, #14212b);
  border: 1px solid var(--line, #d5dde3);
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 12px 40px rgba(15, 23, 32, 0.18);
}
.home-demo-login-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.home-demo-login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.home-demo-login-actions .btn {
  width: 100%;
  justify-content: center;
  border-radius: 0;
}
@media (min-width: 701px) {
  .home-demo-login {
    align-items: center;
  }
}
.namecard-demo .qr-url {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(12, 31, 36, 0.5);
  word-break: break-all;
}
.home-guest .home-demo-lede {
  margin: 1rem 0 1rem;
}
.home-guest .brand-hero {
  margin-top: 0.5rem;
}
.home-guest-features-title {
  margin: 0.75rem 0 0.35rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
}
.home-guest-features {
  margin: 0 0 0.75rem;
}
.home-guest .home-guest-tagline {
  margin-top: 0.85rem;
}
.home-guest-cta-media {
  display: grid;
  gap: 1rem 1.5rem;
  align-items: center;
  width: 100%;
  margin: 0.35rem 0 0.5rem;
}
.home-guest-cta-col {
  min-width: 0;
}
.home-guest-cta-col .cta-row {
  margin: 0;
}
.home-guest-media-col {
  min-width: 0;
  justify-self: stretch;
}
.home-intro-video {
  position: relative;
  width: 100%;
  max-width: min(40rem, 100%);
  margin-left: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1f24;
  border: 1px solid rgba(12, 31, 36, 0.08);
  box-shadow: 0 18px 40px rgba(12, 31, 36, 0.18);
}
@media (min-width: 801px) {
  .home-guest-cta-media {
    grid-template-columns: minmax(0, 14rem) minmax(22rem, 1fr);
    align-items: center;
  }
  .namecard-body.has-qr .namecard-side {
    padding-top: 1.35rem;
  }
}
@media (max-width: 800px) {
  .home-intro-video {
    max-width: none;
    margin-left: 0;
  }
}
.home-intro-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c1f24;
}
.home-intro-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 31, 36, 0.28);
  cursor: pointer;
  color: #fff;
}
.home-intro-play .bi {
  font-size: clamp(3.2rem, 12vw, 4.5rem);
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}
.home-intro-play:hover,
.home-intro-play:focus-visible {
  background: rgba(12, 31, 36, 0.4);
  outline: none;
}
.home-intro-video.is-playing .home-intro-play {
  display: none;
}
.home-intro-error {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bad, #b42318);
  font-size: 0.8rem;
}

/* Landing: full-bleed Relume bands end-to-end (header → footer) */
body.home-landing {
  background-color: #fff;
  background-image: none;
  color: var(--ink);
}
body.home-landing .bg-grid { display: none; }
body.home-landing .site-header {
  background: #fff;
  padding: 0 1.5rem;
}
body.home-landing .site-header .site-shell {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  padding-left: 0;
  padding-right: 0;
  align-items: center;
}
body.home-landing .site-header .gr-lang-open {
  margin: 0;
  flex-shrink: 0;
}
body.home-landing main.home-landing-main {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  padding: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
body.home-landing .home-hero-minimal {
  padding: 0.15rem 1.5rem 0.55rem;
}
body.home-landing .home-cta-band {
  flex: 1 0 auto;
  margin-bottom: 0;
}
body.home-landing .home-hero-minimal .home-hero-tagline,
body.home-landing #card .home-card-intro .home-hero-tagline,
body.home-landing .home-example-try-lead {
  margin: 0 0 1rem 0;
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
body.home-landing .home-example-try-lead {
  margin-bottom: 1.5rem;
}
body.home-landing #mission .home-mission-media {
  background: #0c1f24;
  overflow: hidden;
}
body.home-landing #mission .home-photo-frame.home-mission-media {
  position: relative;
}
body.home-landing #mission .home-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}
body.home-landing #mission .home-intro-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.home-landing #mission .home-intro-play {
  z-index: 3;
}
.home-band {
  padding: 4rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}
.home-band-inner {
  max-width: 1100px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}
.home-band.is-tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }
/* Wordmark + name-card title stay Syne; other landing titles use DM Sans */
body.home-landing .brand-hero,
body.home-landing .brand,
body.home-landing .namecard-name {
  font-family: var(--font-display);
}
body.home-landing .home-h,
body.home-landing .hero-sub,
body.home-landing .home-step h3,
body.home-landing .home-card-body h3,
body.home-landing .home-eyebrow,
body.home-landing .home-lede,
body.home-landing .home-checks,
body.home-landing .home-more,
body.home-landing .btn,
body.home-landing h1:not(.namecard-name),
body.home-landing h2,
body.home-landing h3 {
  font-family: var(--font-body);
}

.home-band.is-white { background: #fff; color: var(--ink); }
.home-band.is-foam { background: var(--foam); color: var(--ink); }
.home-band.is-mist { background: rgba(13, 110, 110, 0.08); color: var(--ink); }
.home-band.is-ink {
  background: var(--ink);
  color: #d7eeeb;
}
.home-band.is-sea {
  background: var(--sea-deep);
  color: #e8f4f2;
}
.home-band.is-ink .home-h,
.home-band.is-sea .home-h { color: #fff; }
.home-band.is-ink .home-lede,
.home-band.is-sea .home-lede { color: rgba(232, 244, 242, 0.82); }
.home-band.is-ink .home-checks li,
.home-band.is-sea .home-checks li { color: rgba(232, 244, 242, 0.88); }
.home-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}
.home-band.is-ink .home-eyebrow { color: #7ecfc9; }
.home-band.is-sea .home-eyebrow { color: #b7e4df; }
.home-h {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  color: var(--ink);
}
.home-lede {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(12, 31, 36, 0.78);
  max-width: 40rem;
}
.home-link-list {
  margin: -0.35rem 0 1.25rem;
  padding-left: 1.25rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(12, 31, 36, 0.78);
}
.home-link-list li + li {
  margin-top: 0.25rem;
}
.home-band.is-ink .home-link-list,
.home-band.is-sea .home-link-list {
  color: rgba(232, 244, 242, 0.82);
}
.home-hero {
  text-align: left;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.home-hero-grid {
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: center;
}
.home-hero-copy { min-width: 0; }
.home-hero .brand-hero {
  margin: 0 0 0.55rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
.home-hero .hero-sub {
  max-width: 28rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.home-hero .home-lede {
  margin: 0 0 1.25rem;
  max-width: 28rem;
}
.home-hero .cta-row {
  justify-content: flex-start;
  margin: 0 0 1rem;
}
.home-hero-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.home-hero-media {
  min-width: 0;
  width: 100%;
}
.home-hero .home-intro-video {
  margin: 0;
  max-width: none;
  width: 100%;
  border-radius: 0.55rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(12, 31, 36, 0.14);
}
@media (min-width: 801px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  }
}
.home-photo-bleed {
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 28rem;
  overflow: hidden;
  background: #0c1f24;
}
.home-photo-bleed img,
.home-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-photo-frame {
  overflow: hidden;
  border-radius: 0.55rem;
  aspect-ratio: 4 / 3;
  background: #0c1f24;
  min-height: 14rem;
}
.home-center { text-align: center; }
.home-center .home-lede,
.home-center .home-h { margin-left: auto; margin-right: auto; }
.home-center .cta-row { justify-content: center; }
.home-cta-band {
  padding-bottom: 3.25rem;
}
.home-cta-photo {
  max-width: 48rem;
  margin: 2rem auto 0;
}
.home-steps {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
}
.home-step {
  min-width: 0;
  text-align: center;
}
.home-step-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: rgba(13, 110, 110, 0.12);
  color: var(--sea-deep);
  font-size: 2.15rem;
  line-height: 1;
}
.home-step-icon .bi {
  font-size: inherit;
  line-height: 1;
}
.home-step h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
}
.home-step p { margin: 0; color: rgba(12, 31, 36, 0.72); line-height: 1.5; }
.home-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.home-checks {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.home-checks li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.45;
}
.home-checks i {
  color: var(--sea);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.home-band.is-ink .home-checks i,
.home-band.is-sea .home-checks i { color: #7ecfc9; }
.home-tryout-form {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
  margin-top: 1.25rem;
}
.home-example-try {
  align-items: stretch;
}
.home-example-try-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
}
.home-band-inner.home-example-try-wrap {
  max-width: 1180px;
}
.home-example-col,
.home-try-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-example-try .home-eyebrow {
  margin-bottom: 0.65rem;
  flex: 0 0 auto;
}
.home-try-panel {
  background: #fff;
  border: 1px solid rgba(12, 31, 36, 0.08);
  border-radius: 0.95rem;
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 18px 48px rgba(12, 31, 36, 0.12);
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.home-try-col .home-h {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.home-try-col .home-lede {
  max-width: none;
  margin-bottom: 0.85rem;
}
.home-try-col .home-tryout-form {
  max-width: none;
  margin-top: 0.85rem;
}
.home-tryout-form .btn {
  width: 100%;
  justify-content: center;
}
.home-try-col .hint {
  margin: 0.85rem 0 0;
  margin-top: auto;
  padding-top: 0.85rem;
}
.home-example-try .namecard-demo {
  margin-bottom: 0;
  flex: 1 1 auto;
}
.home-tryout-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.home-tryout-kinds {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.home-tryout-kinds legend {
  float: none;
  width: 100%;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0;
  margin: 0 0 0.4rem;
}
.home-tryout-kind-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}
.home-tryout-kind-row label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.home-tryout-form input,
.home-tryout-form select {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(12, 31, 36, 0.16);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
}
.home-feature-grid,
.home-card-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
  text-align: left;
}
.home-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: 0.55rem;
  color: #e8f4f2;
}
.home-band.is-foam .home-card,
.home-band.is-mist .home-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(12, 31, 36, 0.08);
  color: var(--ink);
}
.home-band.is-sea .home-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8f4f2;
}
.home-band.is-sea .home-more { color: #b7e4df; }
.home-card-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0c1f24;
}
.home-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-card-body { padding: 1rem 1rem 1.15rem; }
.home-card-body h3 {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}
.home-card-body p {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: inherit;
  opacity: 0.82;
}
.home-more {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.home-more:hover { text-decoration: underline; }
.home-band.is-ink .home-more { color: #7ecfc9; }
.home-band.is-foam .home-more,
.home-band.is-mist .home-more { color: var(--sea-deep); }
.home-band.is-ink .home-more .bi,
.home-band.is-sea .home-more .bi { font-size: 0.95em; }
.home-cta-band .home-lede { max-width: 32rem; }
.home-demo-wrap { margin-top: 0.5rem; }
.home-band .btn,
main > article .cta-row .btn {
  border-radius: 0.4rem;
}
.home-band.is-ink .btn-ghost,
.home-band.is-sea .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
}
.home-band.is-ink .btn-ghost:hover,
.home-band.is-sea .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.home-band.is-white .btn-ghost,
.home-band.is-foam .btn-ghost {
  background: #fff;
  border-color: rgba(12, 31, 36, 0.16);
  color: var(--ink);
}
.home-band.is-white .btn-ghost:hover,
.home-band.is-foam .btn-ghost:hover {
  background: rgba(12, 31, 36, 0.04);
  color: var(--ink);
}
@media (min-width: 701px) {
  .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3rem; }
  .home-example-try {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 0;
    align-items: stretch;
  }
  .home-example-try .home-example-col {
    padding-right: 2.25rem;
  }
  .home-example-try .home-try-col {
    padding-left: 2.25rem;
    border-left: 1px solid rgba(12, 31, 36, 0.12);
  }
  .home-split.is-flip { direction: rtl; }
  .home-split.is-flip > * { direction: ltr; }
  .home-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1001px) {
  .home-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-band { padding: 5rem 1.5rem; }
  .home-band.is-tight { padding-top: 3rem; padding-bottom: 3rem; }
}
@media (max-width: 700px) {
  .home-band { padding: 2.75rem 1.25rem; }
  .home-photo-bleed { aspect-ratio: 16 / 10; max-height: 16rem; }

  /* Smaller header wordmark so person + globe stay fully visible */
  .site-header .brand:not(.brand-profile) {
    font-size: clamp(1.15rem, 5.4vw, 1.5rem);
    letter-spacing: -0.03em;
  }

  body.home-landing .home-hero-minimal {
    padding: 0.05rem 1.25rem 0.4rem;
  }

  /* Content that used to be .panel — side + vertical breathing room */
  main:not(.home-landing-main) {
    padding: 0.75rem 1rem 1.5rem;
    min-width: 0;
    max-width: 100%;
  }
  body.auth-page main.auth-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  main:not(.home-landing-main) > section,
  main:not(.home-landing-main) > article,
  .admin > div,
  .legal,
  .narrow {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }
  body.home-landing .home-band {
    margin: 0;
  }

  /* CTA buttons wrap instead of forcing page wider than the viewport */
  body.home-landing .cta-row {
    flex-wrap: wrap;
  }

  /* Tagline: one full line — scale down so the last words are not clipped */
  body.home-landing .home-hero-minimal .home-hero-tagline,
  body.home-landing #card .home-card-intro .home-hero-tagline {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 1rem 0;
    font-size: clamp(0.52rem, 2.55vw, 0.72rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}


@media (min-width: 801px) {
  .namecard-body.has-qr {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
  }
  .namecard-body.has-qr.has-prep {
    grid-template-columns: minmax(13.5rem, 16.5rem) minmax(0, 1fr) minmax(22rem, 28rem);
  }
  .namecard-body.has-prep:not(.has-qr) {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
  }
  .namecard-prep-box .pwa-install-row {
    flex-wrap: nowrap;
  }
  .namecard-body.has-qr .namecard-side {
    padding-top: 1.35rem; /* align under QR hint row */
    align-content: start;
  }
}
.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(12, 31, 36, 0.08);
  border-radius: 0.55rem;
  padding: 0.45rem;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
}
.qr-frame svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.qr-frame-lg {
  width: min(18rem, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
}
.qr-frame-sm {
  width: min(7.5rem, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
}
.qr-frame.has-photo {
  cursor: pointer;
}
.qr-frame .profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.qr-frame.has-photo:hover .profile-photo,
.qr-frame.has-photo:focus-within .profile-photo,
.qr-frame.has-photo.is-photo-shown .profile-photo {
  opacity: 1;
}
.qr-frame.has-photo:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}
.qr-url {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sea-deep);
  word-break: break-all;
}
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-self: start;
}
.qr-actions .btn {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
}
.qr-actions .btn .bi {
  font-size: 1.1rem;
  line-height: 1;
}
.owner-desk { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--mist); }
.profile-account-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}
.profile-account-links + .profile-account-links {
  margin-top: 0.35rem;
}
.settings-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.settings-heading .bi {
  font-size: 0.9em;
  line-height: 1;
  color: var(--sea-deep);
}
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.25rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.25rem;
  border-radius: 0.65rem;
  background: rgba(12, 31, 36, 0.05);
  border: 1px solid rgba(12, 31, 36, 0.08);
}
.settings-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 4.25rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(12, 31, 36, 0.62);
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.settings-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.settings-tab.is-active {
  color: var(--sea-deep);
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 31, 36, 0.08);
}
.settings-tab:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}
.settings-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
  background: rgba(12, 31, 36, 0.05);
  border: 1px solid rgba(12, 31, 36, 0.08);
}
.settings-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(12, 31, 36, 0.62);
  text-decoration: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.settings-subtab i {
  font-size: 1rem;
  line-height: 1;
}
.settings-subtab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.settings-subtab.is-active {
  color: var(--sea-deep);
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 31, 36, 0.08);
}
.settings-subtab:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}
.settings-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--sea-deep);
  font-size: 0.75rem;
  font-weight: 700;
}
@media (max-width: 520px) {
  .settings-tab {
    padding: 0.5rem 0.45rem;
    min-width: 3.5rem;
    font-size: 0.82rem;
  }
  .settings-subtab span:not(.settings-subtab-count) {
    /* Keep icon+label readable on narrow screens */
  }
}

.profile-account-links .icon-btn {
  position: relative;
}
.profile-account-links .icon-btn,
.admin-account .icon-btn {
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.profile-account-links .icon-btn .bi,
.admin-account .icon-btn .bi {
  font-size: 1.25rem;
  line-height: 1;
}
.admin-account .icon-btn.active,
.profile-account-links .icon-btn.active {
  color: var(--sea-deep);
}
.incoming { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.hidden { display: none !important; }
/* Signup honeypot — off-screen, not display:none (bots often skip those). */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.profile-page {
  max-width: 36rem;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0 0.5rem;
  animation: rise 0.65s ease both;
}
.profile-copy {
  width: 100%;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.profile-on {
  margin: 0 0 1.25rem;
  /*font-size: clamp(1.15rem, 3.5vw, 1.45rem);*/
  color: rgba(12, 31, 36, 0.62);
}
.profile-handle {
  margin: 0.25rem 0 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.profile-copy .lede { max-width: 32rem; }
.meta { list-style: none; padding: 0; margin: 0 0 1.5rem; color: rgba(12,31,36,0.7); }
.meta a { color: var(--sea-deep); }
.ops-log {
  margin: 0;
  padding: 0.85rem 1rem;
  max-height: 28rem;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(12, 31, 36, 0.06);
  border: 1px solid rgba(12, 31, 36, 0.12);
  border-radius: 0.55rem;
}
.call-status {
  margin: 0.65rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(12, 31, 36, 0.55);
}
.call-status.is-available {
  color: #206846;
  text-shadow: 0 0 18px rgba(18, 183, 106, 0.35);
  font-weight: 200;
}
.call-status.is-away { color: rgba(12, 31, 36, 0.45); }
.call-status.is-busy { color: var(--sea-deep); }

.voicemail-panel {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(12, 31, 36, 0.1);
  max-width: 28rem;
}
.voicemail-panel .hint { margin: 0 0 0.65rem; }
.voicemail-panel .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.vm-player {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-top: 0.35rem;
  height: 2.25rem;
}

.live-chat {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.live-chat-log {
  min-height: 7rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(12, 31, 36, 0.12);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
}
.live-chat-line {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}
.live-chat-line:last-child { margin-bottom: 0; }
.live-chat-line.is-mine {
  color: var(--sea-deep);
  font-weight: 600;
  text-align: right;
}
.live-chat-line.is-theirs {
  color: rgba(12, 31, 36, 0.85);
}
.live-chat-form {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.live-chat-form input[type="text"] {
  flex: 1;
  min-width: 0;
}
.live-chat-form .chat-attach {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.55rem;
  min-width: 2.4rem;
  margin: 0;
  cursor: pointer;
}
.live-chat-form .chat-attach i {
  font-size: 1.1rem;
  pointer-events: none;
}
/* Guests: hide paperclip unless live voice beside (P2P files) or temp invite. */
html:not([data-authed]):not([data-temp-route]) body:not(.gr-beside-call) .chat-attach,
html:not([data-authed]):not([data-temp-route]) body:not(.gr-beside-call) #live-chat-file {
  display: none !important;
}
.chat-shell-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
}
.live-chat-file-status {
  margin: 0;
  font-size: 0.85rem;
}
.live-chat-file a,
.live-chat-file .live-chat-file-open {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}
.live-chat-file .bi-paperclip {
  opacity: 0.75;
}
.gr-chat-file-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 31, 36, 0.55);
  box-sizing: border-box;
}
.gr-chat-file-viewer.hidden { display: none !important; }
.gr-chat-file-viewer-panel {
  width: min(40rem, 100%);
  max-height: min(88dvh, 40rem);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem 1rem;
  box-shadow: 0 16px 40px rgba(12, 31, 36, 0.28);
  box-sizing: border-box;
}
.gr-chat-file-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.gr-chat-file-viewer-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gr-chat-file-viewer-body {
  min-height: 6rem;
  display: grid;
  place-items: center;
}
.gr-chat-file-viewer-body img,
.gr-chat-file-viewer-body video {
  max-width: 100%;
  max-height: min(60dvh, 28rem);
  border-radius: 0.4rem;
}
.gr-chat-file-viewer-body iframe {
  width: 100%;
  min-height: min(55dvh, 24rem);
  border: 1px solid rgba(12, 31, 36, 0.12);
  border-radius: 0.4rem;
}
.gr-chat-file-viewer-body audio { width: 100%; }
.gr-chat-file-viewer-text {
  width: 100%;
  max-height: min(50dvh, 22rem);
  overflow: auto;
  margin: 0;
  padding: 0.65rem;
  background: rgba(12, 31, 36, 0.04);
  border-radius: 0.4rem;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.gr-chat-file-viewer-hint { margin: 0.65rem 0 0; }
.gr-chat-file-viewer-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.owner-call-widget .live-chat {
  margin-top: 0.65rem;
  max-width: none;
}

.call-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}
.contact-list {
  gap: 0.45rem;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 0.25rem;
}
.pager [aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.contact-list .contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.contact-list .contact-item .msg-meta {
  margin-bottom: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}
.contact-list .contact-item .msg-meta strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex-wrap: wrap;
}
.contact-list .contact-item .msg-meta strong a,
.msg-item .msg-meta strong a {
  color: inherit;
  text-decoration: none;
}
.contact-list .contact-item .msg-meta strong a:hover,
.msg-item .msg-meta strong a:hover {
  text-decoration: underline;
}
.presence-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #9ca3af;
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.25);
}
.presence-dot.is-available {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.28);
}
.presence-dot.is-busy {
  background: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.28);
}
.presence-dot.is-away {
  background: #9ca3af;
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.22);
}
.presence-label {
  font-size: 0.8rem;
  text-transform: lowercase;
}
.contact-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  justify-self: start;
  max-width: 100%;
}
.contact-remove {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  justify-self: end;
}
@media (max-width: 700px) {
  .contact-list .contact-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.45rem;
    column-gap: 0.5rem;
  }
  .contact-list .contact-item .msg-meta {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .contact-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .contact-remove {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  /*margin-right: 1.5rem;*/
  border-radius: 0;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--sea-deep);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
  font: inherit;
}
.contact-actions .icon-btn:last-child {
  margin-right: 0;
}
.contact-remove .icon-btn {
  margin-right: 0;
  border: none;
}
.icon-btn:hover {
  background: transparent;
  color: var(--sea);
  transform: translateY(-1px);
}
.icon-btn-danger {
  color: rgba(12, 31, 36, 0.4);
  border: none;
}
.icon-btn-danger:hover {
  background: transparent;
  color: #b91c1c;
  border: none;
}
.icon-btn.is-muted {
  color: #8a4b12;
}
.icon-btn.is-muted:hover {
  color: #6b3a0e;
}
.contact-actions form.inline {
  display: inline-flex;
  margin: 0;
}
.video-stage {
  position: relative;
  margin: 1rem 0;
  width: min(100%, 36rem);
  aspect-ratio: 16 / 10;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0c1f24;
  border: 1px solid rgba(12, 31, 36, 0.12);
}
.video-remote {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c1f24;
  display: block;
}
.video-local {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: min(28%, 9rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #123;
  transform: scaleX(-1);
}
.video-stage-owner {
  width: min(100%, 18rem);
  aspect-ratio: 4 / 3;
  margin-top: 0.65rem;
}
.call-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}
/* Live chat End sits in the chat-shell top bar (not over the composer). */
body.call-active.call-mode-chat .call-end-actions.call-ui-safe,
body.call-active:has(#live-chat:not(.hidden)) .call-end-actions.call-ui-safe,
body.gr-chat-open.call-role-visitor .call-end-actions.call-ui-safe {
  top: var(--chat-vv-offset, 0px);
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: var(--chat-bar-h);
  margin: 0;
  padding: 0 0.45rem;
  justify-content: flex-end;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none;
  z-index: 84;
  pointer-events: none;
}
body.call-active.call-mode-chat .call-end-actions.call-ui-safe .btn,
body.call-active:has(#live-chat:not(.hidden)) .call-end-actions.call-ui-safe .btn,
body.gr-chat-open.call-role-visitor .call-end-actions.call-ui-safe .btn {
  pointer-events: auto;
}
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming) .call-end-actions,
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) .call-end-actions {
  display: flex;
  width: auto;
  margin: 0;
  position: static;
  transform: none;
  justify-content: flex-end;
}
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming) #owner-hangup,
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) #owner-hangup {
  flex: 0 0 auto;
}
/*
 * Speaker/earpiece is native-app only (WhatsApp web is mute-only too).
 * Video calls always use loudspeaker — no earpiece toggle.
 */
html.gr-video-call #speaker-btn,
html.gr-video-call #owner-speaker-btn,
html.gr-video-call [data-gr-cc-speaker-wrap] {
  display: none !important;
}
html:not(.gr-android-app) #speaker-btn,
html:not(.gr-android-app) #owner-speaker-btn,
html:not(.gr-android-app) [data-gr-cc-speaker-wrap] {
  display: none !important;
}
.call-nav-shield {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem 1rem 6.5rem;
  box-sizing: border-box;
  background: rgba(8, 12, 14, 0.72);
  backdrop-filter: blur(2px);
  cursor: default;
  /* Clicks go through to Hang up / live chat; JS still blocks nav links. */
  pointer-events: none;
}
.call-nav-shield.hidden {
  display: none;
}
.call-nav-shield-msg {
  margin: 0;
  max-width: 22rem;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: rgba(12, 31, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
/* Flatten page stacking so fixed call UI can sit above the shield. */
body.call-active .site-header,
body.call-active main,
body.call-active .site-footer {
  z-index: auto;
}
body.call-active .owner-call-widget {
  z-index: 50;
  pointer-events: auto;
}
body.gr-call-card-open .owner-call-widget {
  display: none !important;
}
/* Visitor session on a name card: only the white fixed bar — hide owner Hang up/Mute. */
body.call-active.call-role-visitor .owner-call-widget .call-end-actions {
  display: none !important;
}
body.call-active.call-role-visitor .owner-call-widget #owner-video-stage {
  display: none !important;
}
body.call-active.call-role-visitor #owner-live-chat {
  display: none !important;
}
/*
 * Name-card sessions use the white fixed bar. Hide the floating status chip
 * during those calls — but NOT while it shows Incoming / message toast
 * (Accept & Decline live on this widget).
 * Keep :has() in a separate rule so old WebViews don't drop call-role-visitor.
 */
body.call-active.call-role-visitor .owner-call-widget:not(.is-incoming) {
  display: none !important;
}
/* Even if status classes flip to busy/connecting mid-dial, hide the chip for visitors. */
body.call-active.call-role-visitor .owner-call-widget.is-busy:not(.is-incoming),
body.call-active.call-role-visitor .owner-call-widget.is-connecting:not(.is-incoming),
body.call-active.call-role-visitor .owner-call-widget.is-available:not(.is-incoming),
body.call-active.call-role-visitor .owner-call-widget.is-away:not(.is-incoming) {
  display: none !important;
}
body.call-active:has(#hangup:not(.hidden)) .owner-call-widget:not(.is-incoming) {
  display: none !important;
}
/* Incoming Accept/Decline chip. Never with beside/minimized/chat — that doubled Answer. */
body.gr-beside-call .owner-call-widget.is-incoming,
body.gr-call-minimized .owner-call-widget.is-incoming,
body.gr-chat-open .owner-call-widget.is-incoming {
  display: none !important;
  pointer-events: none !important;
}
/* Incoming Accept/Decline chip. Hidden while the full-screen call card is up. */
body.call-active:not(.gr-call-card-open):not(.gr-beside-call):not(.gr-call-minimized):not(.gr-chat-open)
  .owner-call-widget.is-incoming,
body.call-active.call-role-visitor:not(.gr-call-card-open):not(.gr-beside-call):not(.gr-call-minimized):not(.gr-chat-open)
  .owner-call-widget.is-incoming {
  display: block !important;
  top: auto;
  left: 50%;
  right: auto;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(22rem, calc(100vw - 1.5rem));
  max-width: min(22rem, calc(100vw - 1.5rem));
  z-index: 95;
  pointer-events: auto;
  box-sizing: border-box;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
@media (max-width: 700px) {
  body.call-active:not(.gr-call-card-open):not(.gr-beside-call):not(.gr-call-minimized):not(.gr-chat-open)
    .owner-call-widget.is-incoming,
  body.call-active.call-role-visitor:not(.gr-call-card-open):not(.gr-beside-call):not(.gr-call-minimized):not(.gr-chat-open)
    .owner-call-widget.is-incoming {
    width: min(22rem, calc(100vw - 1rem));
    max-width: min(22rem, calc(100vw - 1rem));
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }
}
/* Owner live chat is page-level (sibling of the widget). Hide the chip entirely —
 * a transparent full-width bar at z-index 84 sat over the shell X and ate clicks
 * (especially desktop). Shell header owns End. */
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming),
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) {
  display: none !important;
  pointer-events: none !important;
}
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming) #owner-status,
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming) #owner-incoming,
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming) #owner-msg-toast,
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming) #owner-video-stage,
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming) #owner-call-bg-hint,
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) #owner-status,
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) #owner-incoming,
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) #owner-msg-toast,
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) #owner-video-stage,
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) #owner-call-bg-hint {
  display: none !important;
}
.more {
  float: right;
}
/* Guest / visitor call controls — must sit above owner status chip on mobile */
body.call-active .call-end-actions.call-ui-safe {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  width: min(28rem, calc(100vw - 1.5rem));
  margin: 0 auto;
  transform: none;
  z-index: 90;
  padding: 0.65rem 0.85rem;
  gap: 0.65rem;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(12, 31, 36, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(12, 31, 36, 0.18);
  pointer-events: auto;
}
body.call-active .call-end-actions.call-ui-safe .btn {
  pointer-events: auto;
  touch-action: manipulation;
}
body.call-active .card-actions-wrap.call-ui-safe {
  position: fixed;
  left: 0;
  right: 0;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  width: min(28rem, calc(100vw - 1.5rem));
  margin: 0 auto;
  transform: none;
  z-index: 60;
  box-sizing: border-box;
  pointer-events: auto;
}
body.call-active .video-stage.call-ui-safe:not(.hidden) {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  z-index: 55;
  width: min(28rem, calc(100vw - 1.5rem));
  margin: 0 auto;
  box-sizing: border-box;
  pointer-events: auto;
}
body.call-active .call-bg-hint.call-ui-safe:not(.hidden) {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  width: min(22rem, calc(100vw - 1.5rem));
  margin: 0 auto;
  transform: none;
  z-index: 60;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  pointer-events: auto;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden),
body.gr-chat-open .live-chat.chat-shell:not(.hidden),
body.call-active .live-chat.chat-shell.call-ui-safe:not(.hidden) {
  position: fixed;
  top: var(--chat-shell-top, var(--chat-vv-offset, 0px));
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  max-width: none;
  height: var(--chat-shell-h, var(--chat-vh, 100dvh));
  max-height: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Above .gr-call-card (10100) so incoming chat is visible during voice. */
  z-index: 10200;
  box-sizing: border-box;
  background: #e8f2f0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
  overflow: hidden;
}
/* While chat is open, park the voice card underneath so it cannot eat taps. */
body.gr-chat-open .gr-call-card:not(.hidden):not([hidden]) {
  z-index: 10050;
  pointer-events: none !important;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .chat-shell-bar,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .chat-shell-bar {
  padding-right: 0.35rem;
  position: relative;
  z-index: 2;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .chat-shell-close,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .chat-shell-close {
  position: relative;
  z-index: 3;
  pointer-events: auto !important;
}
/* Live chat: no admin icon row — full-bleed shell with End (X) only. */
body.gr-chat-open:has(aside.admin-nav) aside.admin-nav {
  display: none !important;
}
body.gr-chat-open .gtranslate_wrapper,
body.gr-chat-open .gt_float_switcher,
body.gr-chat-open [class*="gt_switcher"],
body:has(.admin-chat) .gtranslate_wrapper,
body:has(.admin-chat) .gt_float_switcher {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-log,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-log {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-line,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-line {
  max-width: 82%;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.45rem;
  font-weight: 500;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-line.is-mine,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-line.is-mine {
  margin-left: auto;
  text-align: left;
  color: var(--ink);
  background: rgba(13, 110, 110, 0.16);
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-line.is-theirs,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-line.is-theirs {
  color: var(--ink);
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-file-status,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-file-status {
  padding: 0 0.85rem 0.25rem;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-form,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-form {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-form input,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-form input {
  min-width: 0;
  flex: 1 1 auto;
  background: #fff;
  color: var(--ink);
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-form .btn,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-form .btn {
  flex: 0 0 auto;
}
body.call-mode-chat .call-nav-shield,
body.gr-chat-open .call-nav-shield {
  background: transparent;
  backdrop-filter: none;
}
/* Live chat: only the shell X — hide legacy hangup / end-action duplicates. */
body.gr-chat-open #owner-hangup,
body.gr-chat-open #hangup,
body.gr-chat-open .call-end-actions,
body.gr-chat-open .owner-call-widget .call-end-actions,
body.call-mode-chat #owner-hangup,
body.call-mode-chat #hangup,
body.call-mode-chat .call-end-actions {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.gr-chat-open .site-header,
body.gr-chat-open .site-footer {
  display: none !important;
}

@media (max-width: 700px) {
  body.call-active .owner-call-widget,
  body.call-active.call-role-owner .owner-call-widget {
    left: 50%;
    right: auto;
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    max-height: min(70dvh, calc(100dvh - 1rem));
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }
  body.call-active:not(.call-mode-chat):not(.gr-chat-open) .call-end-actions.call-ui-safe {
    z-index: 90;
    width: calc(100vw - 1rem);
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
}
.call-bg-hint {
  margin: 0.5rem 0 0;
  color: #8a4b12;
  background: rgba(255, 186, 73, 0.18);
  border: 1px solid rgba(138, 75, 18, 0.25);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
}
.pwa-install-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1rem;
}
.pwa-install-row .hint {
  margin: 0;
  flex: 1 1 12rem;
}
.sound-test-ask .pwa-install-row {
  margin-bottom: 0.35rem;
}
#sound-test-status.warn,
#mic-test-status.warn {
  font-weight: 600;
}
/* Logged-in home: account links under hero text (all viewports) */
.home-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin: 0 0 1rem;
}
.home-user-actions a,
.home-user-actions .linkish {
  color: var(--sea-deep);
  font-weight: 600;
  text-decoration: none;
}
.home-user-actions a:hover,
.home-user-actions .linkish:hover {
  color: var(--sea);
}
.file-share {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.owner-call-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  border: none;
  outline: none;
  box-shadow: none;
  backdrop-filter: blur(8px);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
  display: none !important;
}
.owner-call-widget.is-idle {
  display: none !important;
}
.owner-call-widget.is-incoming {
  display: block !important;
}
body.call-active:not(.gr-call-card-open) .owner-call-widget.is-busy {
  display: block !important;
}
#owner-status { display: none !important; }
.owner-call-widget #owner-status {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
}
.owner-call-widget.is-available {
  background: var(--sea);
  border-color: var(--sea-deep);
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 110, 110, 0.35);
}
.owner-call-widget.is-connecting {
  background: #5b7c8a;
  border-color: #3d5a66;
  color: #fff;
}
.owner-call-widget.is-away {
  background: #6b7280;
  border-color: #4b5563;
  color: #fff;
}
.owner-call-widget.is-busy {
  background: #fff;
  border-color: rgba(12, 31, 36, 0.12);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(12, 31, 36, 0.14);
}
.owner-call-widget.is-incoming {
  background: rgba(255, 255, 255, 0.78);
  border: none;
  border-radius: 0;
  outline: none;
  color: var(--ink);
  box-shadow: none;
}
.owner-call-widget.is-incoming .call-end-actions {
  display: none !important;
}
.owner-call-widget.is-available .hint,
.owner-call-widget.is-connecting .hint,
.owner-call-widget.is-away .hint,
.owner-call-widget.is-available #owner-status,
.owner-call-widget.is-connecting #owner-status,
.owner-call-widget.is-away #owner-status {
  color: #fff;
}
.owner-call-widget.is-incoming .hint,
.owner-call-widget.is-incoming #owner-status {
  color: var(--ink);
}
.owner-call-widget.is-busy .hint,
.owner-call-widget.is-busy #owner-status {
  color: var(--ink);
}
.owner-call-widget.is-available .btn-ghost,
.owner-call-widget.is-connecting .btn-ghost,
.owner-call-widget.is-away .btn-ghost,
.owner-call-widget.is-incoming .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}
.owner-call-widget.is-busy .btn-ghost {
  color: var(--ink);
  border-color: rgba(12, 31, 36, 0.22);
  background: #fff;
}
.owner-call-widget.is-available .btn-ghost:hover,
.owner-call-widget.is-connecting .btn-ghost:hover,
.owner-call-widget.is-away .btn-ghost:hover,
.owner-call-widget.is-incoming .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.owner-call-widget.is-busy .btn-ghost:hover {
  background: rgba(12, 31, 36, 0.06);
}
.owner-call-widget.is-available .btn:not(.btn-ghost) {
  background: #fff;
  color: var(--sea-deep);
}
.owner-call-widget.is-busy .btn:not(.btn-ghost) {
  background: var(--sea);
  color: #fff;
}
.owner-call-widget.is-incoming #owner-accept-call {
  background: var(--ok);
  color: #fff;
  border: none;
}
.owner-call-widget.is-incoming #owner-reject-call {
  background: var(--bad);
  color: #fff;
  border: none;
}
.owner-call-widget.is-busy #owner-hangup {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Owner call UI: center the white panel (not bottom-right teal chip). */
body.call-active.call-role-owner .owner-call-widget {
  left: 50%;
  right: auto;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(28rem, calc(100vw - 2rem));
  max-width: min(28rem, calc(100vw - 2rem));
  z-index: 95;
}
body.call-active.call-role-owner .call-nav-shield-msg {
  display: none;
}
body.call-active.call-role-owner .owner-call-widget .video-stage-owner {
  width: 100%;
  max-width: none;
}
.owner-call-widget .incoming { margin-top: 0.5rem; }
.owner-call-widget .btn,
.owner-call-widget .btn.btn-sm,
.owner-call-widget a.btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  min-height: 2.45rem;
  line-height: 1.2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.owner-call-widget .call-end-actions .btn,
body.call-active .call-end-actions.call-ui-safe .btn {
  flex: 0 0 auto;
  min-width: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 0;
  font-size: 1.2rem;
}
/* Accept / Decline: round icon buttons in one row (label is on #owner-status). */
.owner-call-widget .incoming {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.owner-call-widget .incoming > p {
  flex: 0 0 100%;
  margin: 0;
  width: 100%;
  text-align: center;
}
.owner-call-widget.is-incoming #owner-incoming-label {
  display: none;
}
.owner-call-widget .incoming .btn {
  flex: none;
  width: 3.35rem;
  min-width: 3.35rem;
  height: 3.35rem;
  min-height: 3.35rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.25rem;
}
.owner-call-widget .incoming .btn .bi,
.owner-call-widget .call-end-actions .btn .bi,
body.call-active .call-end-actions.call-ui-safe .btn .bi {
  display: block;
  line-height: 1;
}
.owner-call-widget .live-chat-form .btn,
.owner-call-widget .live-chat-form .chat-attach {
  flex: 0 0 auto;
  min-width: 2.45rem;
  width: auto;
  height: auto;
}
.owner-call-widget .live-chat.chat-shell .live-chat-form .btn,
.owner-call-widget .live-chat.chat-shell .live-chat-form .chat-attach,
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-form .btn,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-form .btn,
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-form .chat-attach,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-form .chat-attach {
  height: 2.55rem;
  min-height: 2.55rem;
  max-height: 2.55rem;
  box-sizing: border-box;
}
.owner-call-widget .live-chat.chat-shell .live-chat-form .chat-attach,
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-form .chat-attach,
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-form .chat-attach {
  width: 2.55rem;
  min-width: 2.55rem;
}

/*
 * Mobile: white connecting/away/available chips + keep busy white.
 * Incoming stays orange.
 */
@media (max-width: 900px) {
  body .owner-call-widget.is-available,
  body .owner-call-widget.is-connecting,
  body .owner-call-widget.is-away {
    background: #fff !important;
    border-color: rgba(12, 31, 36, 0.12) !important;
    color: var(--ink) !important;
    box-shadow: 0 10px 28px rgba(12, 31, 36, 0.14);
  }
  body .owner-call-widget.is-available .hint,
  body .owner-call-widget.is-connecting .hint,
  body .owner-call-widget.is-away .hint,
  body .owner-call-widget.is-available #owner-status,
  body .owner-call-widget.is-connecting #owner-status,
  body .owner-call-widget.is-away #owner-status {
    color: var(--ink) !important;
  }
  body .owner-call-widget.is-available .btn-ghost,
  body .owner-call-widget.is-connecting .btn-ghost,
  body .owner-call-widget.is-away .btn-ghost {
    color: var(--ink) !important;
    border-color: rgba(12, 31, 36, 0.22) !important;
    background: #fff !important;
  }
}

.call-event-line {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.92rem;
}
.call-event-outcome {
  font-weight: 600;
  color: var(--ink);
}
.call-event-outcome.is-missed { color: #b45309; }
.call-event-outcome.is-rejected,
.call-event-outcome.is-busy { color: #9a3412; }
.call-event-outcome.is-canceled { color: rgba(12, 31, 36, 0.55); }
.call-event-outcome.is-answered { color: var(--sea-deep); }
.call-event-mode { color: rgba(12, 31, 36, 0.55); }
.msg-item form.call-event-delete { margin-top: 0.5rem; }
.msg-list-compact { margin: 0.5rem 0; }
.msg-list-compact .msg-item { padding: 0.55rem 0.7rem; }
.temp-route-list { margin-top: 1.5rem; }
.temp-route-item.is-spent { opacity: 0.72; }
.temp-route-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.temp-route-qr {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.2rem;
}
.temp-route-qr svg { display: block; width: 100%; height: auto; }
.temp-route-body { flex: 1 1 auto; min-width: 0; }
.temp-route-url { display: block; margin: 0.4rem 0 0.15rem; }
.temp-route-url input {
  width: 100%;
  font-size: 0.85rem;
}
.temp-route-meta { margin: 0.2rem 0 0.45rem; }
.temp-route-actions { margin: 0; gap: 0.5rem; align-items: center; }
.temp-route-actions form.inline {
  display: inline-flex;
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}
.super-temp-list { margin-top: 0.75rem; }
.super-temp-summary { margin: 0 0 1rem; }
@media (max-width: 800px) {
  .super-temp-filters,
  .temp-route-actions {
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
  }
  .super-temp-filters .btn,
  .temp-route-actions .btn {
    padding: 0.22rem 0.42rem;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}
.super-temp-list .temp-badge {
  margin: 0 0.4rem 0 0.25rem;
  vertical-align: middle;
}
.temp-route-item.is-hot {
  outline: 1px solid rgba(176, 48, 48, 0.4);
  background: rgba(176, 48, 48, 0.06);
}
.recent-calls-strip { margin-bottom: 1.25rem; }
.password-zone {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(12, 31, 36, 0.12);
}
.password-zone h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.totp-qr {
  width: 180px;
  max-width: 100%;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid rgba(12, 31, 36, 0.12);
  border-radius: 0.4rem;
}
.totp-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.totp-secret-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.totp-secret-row input {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  flex: 1 1 12rem;
}
.totp-backup-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.totp-backup-codes code {
  font-size: 0.95rem;
}
.owner-call-widget.is-attention:not(.is-incoming) {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}
.owner-call-widget.is-incoming.is-attention {
  outline: none;
}

.site-footer {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  background: #fff;
  border-top: none;
  color: rgba(12, 31, 36, 0.5);
  font-size: 0.88rem;
  flex-shrink: 0;
  box-sizing: border-box;
}
.site-footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 1rem 0 1.5rem;
}
.site-footer-slogan {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(12, 31, 36, 0.48);
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.55rem;
  margin: 0;
}
.site-footer-nav a {
  color: rgba(12, 31, 36, 0.58);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 400;
}
.site-footer-nav a:hover {
  color: var(--sea-deep);
}
.site-footer-sep {
  color: rgba(12, 31, 36, 0.28);
  user-select: none;
}
body.home-landing .site-footer {
  background: var(--ink);
  color: rgba(232, 244, 242, 0.55);
}
body.home-landing .site-footer-slogan {
  color: rgba(232, 244, 242, 0.5);
}
body.home-landing .site-footer-nav a {
  color: rgba(232, 244, 242, 0.62);
}
body.home-landing .site-footer-nav a:hover {
  color: #b7e4df;
}
body.home-landing .site-footer-sep {
  color: rgba(232, 244, 242, 0.28);
}
body.home-landing #card .home-demo-wrap {
  width: 100%;
}
body.home-landing #card .home-card-intro {
  margin: 0 0 1.35rem;
  text-align: left;
}
body.home-landing #card .home-card-intro .home-eyebrow {
  margin-bottom: 0.45rem;
}
body.home-landing #card .namecard-demo {
  width: 100%;
  max-width: none;
  background: #fff;
  color: var(--ink);
  border-radius: 0.95rem;
  padding: 1.25rem 1.35rem 1rem;
  box-shadow: 0 18px 48px rgba(12, 31, 36, 0.12);
  border: 1px solid rgba(12, 31, 36, 0.08);
  box-sizing: border-box;
}
body.home-landing .home-band .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border-width: 1px;
  border-style: solid;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}
body.home-landing .home-band.is-white .btn-ghost,
body.home-landing .home-band.is-foam .btn-ghost {
  background: #fff;
  border-color: rgba(12, 31, 36, 0.22);
  color: var(--ink);
}
body.home-landing .home-band.is-ink .btn-ghost,
body.home-landing .home-band.is-sea .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
body.home-landing .home-more-btn {
  margin-top: 0.15rem;
}
@media (max-width: 800px) {
  .site-header {
    padding: 0 1.25rem;
  }
  .site-shell {
    padding: 0.85rem 0;
  }
  body.home-landing .site-header {
    padding: 0 1.25rem;
  }
  body.home-landing .site-header .site-shell {
    padding: 0.7rem 0 0.1rem;
  }
  body.home-landing .home-hero-minimal {
    padding: 0 1.25rem 0.35rem;
  }
  .site-footer {
    padding: 0 1.25rem;
  }
  .site-footer-shell {
    padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
    justify-content: center;
  }
  .site-footer-slogan {
    display: none;
  }
  .site-footer-nav {
    justify-content: center;
  }
}
.gr-gt-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.gr-lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.gr-lang-overlay[hidden] { display: none !important; }
.gr-lang-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(12, 31, 36, 0.45);
  cursor: pointer;
}
.gr-lang-panel {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  max-height: min(80vh, 40rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(12, 31, 36, 0.12);
  box-shadow: 0 16px 48px rgba(12, 31, 36, 0.18);
}
.gr-lang-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
}
.gr-lang-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
}
.gr-lang-head .hint {
  grid-column: 1 / -1;
  margin: 0;
}
.gr-lang-head #gr-lang-close {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  border-radius: 0.45rem;
}
.gr-lang-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.35rem;
  overflow: auto;
  padding-right: 0.15rem;
}
.gr-lang-option {
  appearance: none;
  font: inherit;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(12, 31, 36, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
}
.gr-lang-option:hover {
  background: rgba(13, 110, 110, 0.1);
  border-color: rgba(13, 110, 110, 0.28);
}
.gr-lang-option.is-active {
  background: rgba(13, 110, 110, 0.14);
  border-color: rgba(13, 110, 110, 0.4);
  font-weight: 600;
}
html.gr-lang-overlay-visible { overflow: hidden; }

.ga-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(12, 31, 36, 0.14);
  color: rgba(12, 31, 36, 0.75);
  font-size: 0.88rem;
  box-shadow: 0 -4px 24px rgba(12, 31, 36, 0.06);
}
.ga-consent[hidden] { display: none !important; }
/* Native Capacitor app — never show the browser cookie banner */
html.gr-android-app .ga-consent { display: none !important; }
.ga-consent p { margin: 0; max-width: 42rem; line-height: 1.4; }
.ga-consent a { color: var(--sea-deep); }
.ga-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.legal {
  max-width: 100%;
  flex: 1;
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 0.75rem;
  box-sizing: border-box;
}
.legal h1 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}
.legal-meta .hint { margin: 0; }
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.legal-nav a,
.legal-nav .linkish {
  color: var(--sea-deep);
  font-weight: 600;
  text-decoration: none;
}
.legal-nav a:hover,
.legal-nav .linkish:hover {
  color: var(--sea);
}
.legal h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin: 1rem 0 0;
}
.legal h3.table-heading,
.table-heading {
  font-family: var(--font-body);
  font-size: 1.02rem;
  margin: 1.15rem 0 0.55rem;
  color: var(--ink);
}
.legal p, .legal li { color: rgba(12, 31, 36, 0.82); }
.legal ul { margin: 0; padding-left: 1.2rem; }
.legal a { color: var(--sea-deep); }
.legal code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
  background: rgba(13, 110, 110, 0.08);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(12, 31, 36, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}
.table-scroll:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}
.data-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.35;
}
.data-table thead th {
  text-align: left;
  vertical-align: bottom;
  padding: 0.9rem 1rem;
  background: rgba(13, 110, 110, 0.1);
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid rgba(12, 31, 36, 0.1);
}
.data-table tbody th,
.data-table tbody td {
  text-align: left;
  vertical-align: top;
  padding: 1rem;
  border-bottom: 1px solid rgba(12, 31, 36, 0.08);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody th {
  font-weight: 700;
  color: var(--ink);
  background: rgba(12, 31, 36, 0.03);
  white-space: nowrap;
}
.data-table .th-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(12, 31, 36, 0.55);
  line-height: 1.3;
}
.support-pill {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}
.support-pill.is-full {
  background: rgba(26, 155, 108, 0.14);
  color: #146b4a;
}
.support-pill.is-partial {
  background: rgba(196, 92, 38, 0.14);
  color: #8a4b12;
}
.support-pill + .th-sub {
  margin-top: 0.35rem;
}
@media (max-width: 640px) {
  .data-table { min-width: 32rem; font-size: 0.88rem; }
  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td { padding: 0.75rem 0.7rem; }
}

.terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}
.terms-agree input {
  position: static;
  opacity: 1;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  pointer-events: auto;
  accent-color: var(--sea);
}
.terms-agree span { min-width: 0; }
.terms-agree a { color: var(--sea-deep); }
.terms-agree-warn {
  outline: 2px solid #c45c26;
  outline-offset: 4px;
  border-radius: 0.4rem;
}
.terms-agree-btnwrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: default;
  user-select: none;
}
.terms-agree-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  border: 2px solid rgba(12, 31, 36, 0.22);
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-weight: 600;
  color: #0c1f24;
  cursor: pointer;
}
.terms-agree-btnwrap.is-agreed .terms-agree-btn {
  border-color: #0d6e6e;
  background: rgba(13, 110, 110, 0.08);
}
.terms-agree-mark {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(12, 31, 36, 0.35);
  border-radius: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 0.05rem;
  background: #fff;
  color: #0d6e6e;
}
.terms-agree-btnwrap.is-agreed .terms-agree-mark {
  border-color: #0d6e6e;
  background: #0d6e6e;
  color: #fff;
}
.terms-agree-label { min-width: 0; flex: 1; }
.terms-agree-read { margin: 0; }
.signup-lede { margin: 0 0 1.5rem; }
.oauth-terms-hint { margin: 0.65rem 0 0.85rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 110, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(13, 110, 110, 0); }
}
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
}

@media (max-width: 800px) {
  .admin-nav { padding: 0; }
  .admin-nav-icon { width: 2.35rem; height: 2.35rem; }
  .hero { padding: 1.25rem 0 0.75rem; }
  .namecard-hero { padding-top: 0.85rem; }
  .namecard {
    padding: 1.1rem 1rem 1rem;
  }
  .namecard .qr-frame-lg {
    width: min(13.5rem, calc(100vw - 4rem));
  }
  .qr-card {
    padding: 0.85rem;
    margin-left: 0;
    margin-right: 0;
  }
  .qr-frame-lg {
    width: min(14rem, calc(100vw - 3.5rem));
  }
  .hero .hero-sub {
    font-size: clamp(0.98rem, 3.8vw, 1.25rem);
  }
  .hero .cta-row {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .hero .cta-row .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
    white-space: nowrap;
    flex: 0 1 auto;
  }
  .hero .cta-row .cta-long { display: none; }
  .hero .cta-row .cta-short { display: inline; }
  .sub-input {
    flex-wrap: wrap;
    padding: 0.35rem 0.55rem 0.55rem;
  }
  .sub-input input {
    flex: 1 1 100%;
    padding: 0.55rem 0.25rem;
  }
  .sub-input span {
    flex: 1 1 100%;
    white-space: normal;
    word-break: break-all;
    font-size: 0.8rem;
    padding-left: 0.25rem;
  }
}

.site-settings-reserved {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(12, 31, 36, 0.1);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

/* —— Glass chrome: square buttons / status; no button borders —— */
.btn,
.btn-sm {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.btn-oauth {
  border: 1px solid rgba(12, 31, 36, 0.22);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: var(--ink);
}
.card-actions .card-action-btn.btn,
.namecard-tools .btn,
.qr-actions .btn {
  border: none;
  border-radius: 50%;
  box-shadow: none;
}
.btn-ghost {
  background: var(--glass-sea);
  color: var(--sea-deep);
  border: none;
}
.btn-ghost:hover {
  background: rgba(13, 110, 110, 0.2);
  color: var(--sea-deep);
}
.btn-danger {
  background: var(--glass-bad);
  color: var(--bad);
  border: none;
}
.btn-danger:hover {
  background: rgba(180, 35, 24, 0.2);
  color: var(--bad);
}
.btn-facebook {
  background: rgba(24, 119, 242, 0.1);
  color: #0f5fcf;
  border: none;
}
.btn-facebook:hover {
  background: rgba(24, 119, 242, 0.2);
  color: #0f5fcf;
}
.btn-x {
  background: var(--glass-ink);
  color: var(--ink);
  border: none;
}
.btn-x:hover {
  background: rgba(12, 31, 36, 0.18);
  color: var(--ink);
}
.site-header a.btn,
.site-header a.btn:hover {
  color: var(--sea-deep);
}

.flash,
.flash-error,
.flash-ok {
  background: var(--glass);
  border: 1px solid rgba(12, 31, 36, 0.15);
  border-radius: 0.55rem;
}
.flash-error {
  background: var(--glass-bad);
  color: var(--bad);
}
.flash-ok {
  background: var(--glass-ok);
  color: var(--ok);
}

.card-status,
.namecard .card-status,
.call-status {
  background: var(--glass);
  border: none;
  padding: 0.35rem 0.65rem;
}
.card-status,
.table-scroll,
.namecard .card-status,
.call-status,
.btn,
input,
textarea,
select,
.admin-nav a,
.admin-nav-icon,
button.admin-nav-icon,
.status-option,
.owner-call-widget {
  border-radius: 0;
}
.card-status.is-available,
.namecard .card-status.is-available,
.call-status.is-available {
  background: var(--glass-ok);
}
.card-status.is-busy,
.namecard .card-status.is-busy,
.call-status.is-busy {
  background: var(--glass-sea);
}
.card-status.is-away,
.namecard .card-status.is-away,
.call-status.is-away {
  background: var(--glass-away);
}

.call-nav-shield-msg,
.call-bg-hint,
body.call-active .call-bg-hint.call-ui-safe:not(.hidden) {
  background: var(--glass) !important;
  border: 1px solid rgba(12, 31, 36, 0.15);
  box-shadow: none;
  color: var(--ink);
  text-shadow: none;
}

body.call-active .call-end-actions.call-ui-safe,
body.call-active .live-chat.call-ui-safe:not(.hidden):not(.chat-shell),
.owner-call-widget {
  background: rgba(255, 255, 255, 0.72) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(6px);
  color: var(--ink);
  border-radius: 0;
}
.owner-call-widget.is-available {
  background: var(--glass-sea) !important;
  border: none;
  color: var(--sea-deep);
  box-shadow: none;
}
.owner-call-widget.is-connecting {
  background: var(--glass-connecting) !important;
  border: none;
  color: var(--ink);
  box-shadow: none;
}
.owner-call-widget.is-away {
  background: var(--glass-away) !important;
  border: none;
  color: var(--ink);
  box-shadow: none;
}
.owner-call-widget.is-incoming {
  background: rgba(255, 255, 255, 0.78) !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.owner-call-widget.is-incoming .call-end-actions {
  display: none !important;
}
.owner-call-widget.is-available .hint,
.owner-call-widget.is-connecting .hint,
.owner-call-widget.is-away .hint,
.owner-call-widget.is-available #owner-status,
.owner-call-widget.is-connecting #owner-status,
.owner-call-widget.is-away #owner-status,
.owner-call-widget.is-busy .hint,
.owner-call-widget.is-busy #owner-status {
  color: inherit;
}
.owner-call-widget.is-incoming .hint,
.owner-call-widget.is-incoming #owner-status {
  color: var(--ink) !important;
}
.owner-call-widget.is-available .btn-ghost,
.owner-call-widget.is-connecting .btn-ghost,
.owner-call-widget.is-away .btn-ghost,
.owner-call-widget.is-busy .btn-ghost {
  color: var(--sea-deep);
  border: none;
  background: var(--glass-sea);
}
.owner-call-widget.is-incoming #owner-accept-call {
  background: var(--ok) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
}
.owner-call-widget.is-incoming #owner-reject-call {
  background: var(--bad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
}
.owner-call-widget.is-available .btn:not(.btn-ghost),
.owner-call-widget.is-busy .btn:not(.btn-ghost) {
  border: none;
  border-radius: 0;
}
.owner-call-widget.is-busy #owner-hangup,
body.call-active.call-mode-chat .call-end-actions.call-ui-safe #hangup,
body.call-active:has(#live-chat:not(.hidden)) .call-end-actions.call-ui-safe #hangup,
body.call-active.call-mode-chat.call-role-owner #owner-hangup,
body.gr-chat-open.call-role-owner #owner-hangup {
  background: var(--glass-bad);
  color: var(--bad);
  border: none;
  border-radius: 0;
}

body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden),
body.gr-chat-open .live-chat.chat-shell:not(.hidden) {
  background: #e8f2f0 !important;
  backdrop-filter: none;
}
body.call-active.call-mode-chat.call-role-owner .owner-call-widget:not(.is-incoming),
body.gr-chat-open.call-role-owner .owner-call-widget:not(.is-incoming) {
  display: none !important;
  pointer-events: none !important;
}
body.call-active.call-mode-chat .live-chat.chat-shell:not(.hidden) .live-chat-form input[type="text"],
body.gr-chat-open .live-chat.chat-shell:not(.hidden) .live-chat-form input[type="text"] {
  background: #fff;
}

/* Logout confirm. In-page so it shows in the browser and both app WebViews. */
.gr-logout-confirm {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.gr-logout-confirm[hidden] { display: none !important; }
.gr-logout-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(20, 24, 32, 0.45);
}
.gr-logout-panel {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  padding: 1.25rem 1.35rem 1.1rem;
  background: #fff;
  color: var(--ink, #0c1f24);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.gr-logout-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.gr-logout-panel p {
  margin: 0 0 1rem;
  line-height: 1.45;
}
.gr-logout-actions {
  display: flex;
  gap: 0.6rem;
}
.gr-logout-actions .btn { flex: 1; }

/* Call deny / cooldown dialog (rate limit, kill switch, flood) */
.gr-dial-deny {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.gr-dial-deny.hidden { display: none !important; }
.gr-dial-deny-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 32, 0.45);
}
.gr-dial-deny-panel {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  padding: 1.25rem 1.35rem 1.1rem;
  background: var(--panel, #fff);
  color: var(--text, #1a1a1a);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.gr-dial-deny-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 650;
}
.gr-dial-deny-msg {
  margin: 0 0 1rem;
  line-height: 1.45;
}
.gr-dial-deny-ok {
  width: 100%;
}

/* Quick chat → Inbox offer (contacts only) */
.gr-inbox-offer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.gr-inbox-offer.hidden { display: none !important; }
.gr-inbox-offer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 32, 0.45);
}
.gr-inbox-offer-panel {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  padding: 1.25rem 1.35rem 1.1rem;
  background: var(--panel, #fff);
  color: var(--text, #1a1a1a);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.gr-inbox-offer-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 650;
}
.gr-inbox-offer-msg {
  margin: 0 0 1rem;
  line-height: 1.45;
}
.gr-inbox-offer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gr-inbox-offer-form {
  margin: 0;
}
.gr-inbox-offer-form.hidden { display: none !important; }
.gr-inbox-offer-input {
  width: 100%;
  margin: 0 0 0.5rem;
  resize: vertical;
  min-height: 5rem;
}
.gr-inbox-offer-hint {
  margin: 0 0 0.75rem;
}
.gr-inbox-offer-error {
  margin: 0 0 0.5rem;
}
.gr-inbox-offer-error.hidden { display: none !important; }

/* —— Voice CallCard overlay (matches native IncomingCallActivity) —— */
.gr-call-card {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: auto;
}
.gr-call-card.hidden,
.gr-call-card[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.gr-call-card:not(.hidden):not([hidden]) {
  pointer-events: auto !important;
}
.gr-call-card-panel,
.gr-call-card-btn,
.gr-call-card-action,
.gr-call-card-actions {
  pointer-events: auto !important;
}
.gr-call-card-scrim {
  position: absolute;
  inset: 0;
  background: #0c1f24;
  pointer-events: none;
}
.gr-call-card-scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 28%, rgba(42, 48, 52, 0.55), transparent 70%);
  pointer-events: none;
}
.gr-call-card-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 28rem;
  min-height: 100%;
  min-height: 100dvh;
  padding: max(3.5rem, env(safe-area-inset-top, 0px)) 1.75rem max(2.5rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  color: #fff;
  text-align: center;
}
@media (max-width: 700px) {
  .gr-call-card-panel {
    width: 100%;
    max-width: none;
  }
}
.gr-call-card-brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.gr-call-card-kind {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #b8c4c8;
}
.gr-call-card-avatar-wrap {
  position: relative;
  width: 10rem;
  height: 10rem;
  margin-top: 2.75rem;
  border-radius: 1.15rem;
  overflow: visible;
  background: #1a3338;
  flex-shrink: 0;
}
.gr-call-card-avatar-wrap .gr-call-card-avatar,
.gr-call-card-avatar-wrap .gr-call-card-initial {
  border-radius: 1.15rem;
}
.gr-call-card-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gr-call-card-avatar.hidden {
  display: none !important;
}
.gr-call-card-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.gr-call-card-avatar-wrap.hidden {
  display: none !important;
}
.gr-call-card-avatar-wrap:has(.gr-call-card-avatar:not(.hidden)) .gr-call-card-initial {
  display: none;
}
.gr-call-card-mode-badge {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1aa36a;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 0 0 2px #0c1f24;
  pointer-events: none;
}
.gr-call-card-mode-badge.hidden {
  display: none !important;
}
.gr-call-card-stage {
  position: relative;
  width: min(100%, 16.5rem);
  aspect-ratio: 3 / 4;
  max-height: min(46dvh, 22rem);
  flex: 0 0 auto;
  min-height: 0;
  margin-top: 1.5rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #061014;
}
.gr-call-card-stage.hidden {
  display: none !important;
}
.gr-call-card-fs-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 16, 20, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.gr-call-card-fs-btn.hidden {
  display: none !important;
}
.gr-call-card-fs-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.gr-call-card.gr-call-card--fs .gr-call-card-panel {
  max-width: none;
  padding: 0;
  justify-content: flex-end;
}
.gr-call-card.gr-call-card--fs .gr-call-card-brand,
.gr-call-card.gr-call-card--fs .gr-call-card-kind,
.gr-call-card.gr-call-card--fs .gr-call-card-from,
.gr-call-card.gr-call-card--fs .gr-call-card-avatar-wrap {
  display: none !important;
}
.gr-call-card.gr-call-card--fs .gr-call-card-status {
  display: flex !important;
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 4;
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.gr-call-card.gr-call-card--fs .gr-call-card-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  z-index: 0;
}
.gr-call-card.gr-call-card--fs .gr-call-card-actions {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 1rem 1rem max(1.5rem, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(6, 16, 20, 0.75), transparent);
}
.gr-call-card-stage .video-remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  display: block;
  background: #061014;
}
.gr-call-card-stage .video-local {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: min(28%, 7.5rem);
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #123;
  transform: scaleX(-1);
}
.gr-call-card-from {
  margin: 1.6rem 0 0;
  width: 100%;
  flex: 0 0 auto;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  word-break: break-word;
}
.gr-call-card-status {
  margin: 0.5rem 0 0;
  min-height: 1.25rem;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: #b8c4c8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.gr-cc-spinner {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(184, 196, 200, 0.35);
  border-top-color: #7fd4d4;
  border-radius: 50%;
  animation: gr-cc-spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes gr-cc-spin {
  to {
    transform: rotate(360deg);
  }
}
.gr-call-card--chat-loading [data-gr-cc-phase='active'] .gr-call-card-action.hidden {
  display: none !important;
}
.gr-call-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}
.gr-call-card-actions--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}
.gr-call-card-actions-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
.gr-call-card--with-bt [data-gr-cc-phase='active'] {
  gap: 0.85rem;
}
.gr-call-card--with-bt [data-gr-cc-phase='active'] .gr-call-card-action {
  max-width: 6.5rem;
}
.gr-call-card--with-bt [data-gr-cc-phase='active'] .gr-call-card-btn {
  width: 4.1rem;
  height: 4.1rem;
  font-size: 1.35rem;
}
.gr-call-card--with-bt [data-gr-cc-phase='active'] .gr-call-card-action-label {
  font-size: 0.72rem;
}
.gr-call-card-actions.hidden {
  display: none !important;
}
.gr-call-card-action {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 7.5rem;
}
.gr-call-card-action-label {
  font-size: 0.8rem;
  color: #b8c4c8;
}
.gr-call-card-btn {
  width: 4.75rem;
  height: 4.75rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.55rem;
  padding: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.gr-call-card-btn-decline {
  background: #b42318;
}
.gr-call-card-btn-answer {
  background: #157a4b;
}
.gr-call-card-btn-hangup {
  background: #b42318;
}
.gr-call-card-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
}
.gr-call-card-btn-ghost[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.32);
}
.gr-call-card-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
body.gr-call-card-open {
  overflow: hidden;
}
body.gr-call-card-open .call-end-actions,
body.gr-call-card-open #owner-incoming,
body.gr-call-card-open #incoming,
body.gr-call-card-open #call-status,
body.gr-call-card-open #call-nav-shield,
body.gr-call-card-open .call-bg-hint,
body.gr-call-card-open .video-stage {
  display: none !important;
}
/*
 * Owner chip stays position:fixed at z-index 95 with a frosted white panel.
 * Hiding only its buttons left a leftover "on the line" bar over Mute / Hang up.
 * Beat display:block !important on .is-incoming.
 */
html body.gr-call-card-open .owner-call-widget,
html body.gr-call-card-open.call-active .owner-call-widget,
html body.gr-call-card-open.call-active.call-role-owner .owner-call-widget,
html body.gr-call-card-open.call-active.call-role-visitor .owner-call-widget,
html body.gr-call-card-open.call-active .owner-call-widget.is-incoming,
html body.gr-call-card-open.call-active.call-role-owner .owner-call-widget.is-incoming,
html body.gr-call-card-open.call-active.call-role-visitor .owner-call-widget.is-incoming {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


.widget-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.widget-chat-compose {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.85rem;
  max-width: 40rem;
}
.widget-chat-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.6rem;
  resize: vertical;
}
.widget-chat-thread {
  max-height: min(60vh, 28rem);
  overflow: auto;
}
/* Distinct roles in admin website chat */
#widget-chat-thread .thread-bubble[data-role="user"],
#widget-chat-thread .thread-bubble.is-role-user {
  justify-self: start;
  background: #eee;
  border: 1px solid rgba(12, 31, 36, 0.12);
  color: #1a1a1a;
}
#widget-chat-thread .thread-bubble[data-role="user"] .thread-meta,
#widget-chat-thread .thread-bubble.is-role-user .thread-meta {
  color: rgba(12, 31, 36, 0.55);
}
#widget-chat-thread .thread-bubble[data-role="model"],
#widget-chat-thread .thread-bubble.is-role-model {
  justify-self: start;
  background: #fff;
  border: 1px solid rgba(12, 31, 36, 0.12);
  color: #1a1a1a;
}
#widget-chat-thread .thread-bubble[data-role="model"] .thread-meta,
#widget-chat-thread .thread-bubble.is-role-model .thread-meta {
  color: rgba(12, 31, 36, 0.55);
}
#widget-chat-thread .thread-bubble[data-role="agent"],
#widget-chat-thread .thread-bubble.is-role-agent {
  justify-self: end;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
}
#widget-chat-thread .thread-bubble[data-role="agent"] .thread-meta,
#widget-chat-thread .thread-bubble.is-role-agent .thread-meta {
  color: rgba(120, 53, 15, 0.7);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(12, 31, 36, 0.18);
  color: inherit;
}

#owner-call-widget[hidden] { display: none !important; }

/* Last rule in the file. The owner chip must never sit on the call card. */
html body.gr-call-card-open #owner-call-widget,
html body.gr-call-card-open .owner-call-widget,
html body:has(#gr-call-card:not(.hidden):not([hidden])) #owner-call-widget,
html body:has(#gr-call-card:not(.hidden):not([hidden])) .owner-call-widget {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Socket Connecting / Reconnecting / Available is not a status. Keep the
   corner chip closed unless a real incoming ring or live call is up. */
html body:not(.call-active) .owner-call-widget:not(.is-incoming) {
  display: none !important;
}

/* The small Accept strip is a second answer control. The call card is the one. */
html body #owner-incoming {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Desktop call tab: card is the page. */
body.gr-call-tab {
  overflow: hidden;
}
body.gr-call-tab .site-header,
body.gr-call-tab .site-footer,
body.gr-call-tab aside.admin-nav,
body.gr-call-tab .admin-nav,
body.gr-call-tab .settings-heading,
body.gr-call-tab .admin > div > h1 {
  display: none !important;
}
body.gr-call-tab #gr-call-card:not(.hidden) {
  z-index: 200;
}

/* WhatsApp-style: no Chat chip. Ongoing call = full-width green top bar. */
.gr-beside-chat {
  display: none !important;
}
.gr-return-call {
  display: none;
}
body.gr-call-minimized.call-active:not(.gr-call-card-open) .gr-return-call,
body.gr-beside-call:not(.gr-call-card-open) .gr-return-call {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: calc(2.75rem + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 1rem 0.55rem;
  border: 0;
  border-radius: 0;
  background: #128c7e;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
body.gr-call-minimized.call-active:not(.gr-call-card-open) .gr-return-call::before,
body.gr-beside-call:not(.gr-call-card-open) .gr-return-call::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
/* Keep page content below the green ongoing-call bar. */
body.gr-call-minimized.call-active:not(.gr-call-card-open),
body.gr-beside-call:not(.gr-call-card-open) {
  padding-top: calc(2.75rem + env(safe-area-inset-top, 0px));
}
/* Beside-call chat sits under the green bar (bar is z 120). */
body.gr-beside-call.gr-chat-open .live-chat.chat-shell:not(.hidden),
body.gr-call-minimized.gr-chat-open .live-chat.chat-shell:not(.hidden) {
  top: calc(2.75rem + env(safe-area-inset-top, 0px)) !important;
  height: calc(100dvh - 2.75rem - env(safe-area-inset-top, 0px)) !important;
  z-index: 115 !important;
}
/* File Accept/Deny — always on top so web never only sees a dead green bar. */
.gr-file-ask-banner {
  display: none;
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(3.25rem + env(safe-area-inset-top, 0px));
  z-index: 130;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: #fff;
  color: #0c1f24;
  box-shadow: 0 10px 28px rgba(12, 31, 36, 0.22);
}
.gr-file-ask-banner:not([hidden]) {
  display: flex;
}
body.gr-file-ask-up .gr-file-ask-banner:not([hidden]) {
  display: flex;
}
.gr-file-ask-banner-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.gr-file-ask-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.live-chat-file-ask {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.live-chat-file-ask .btn {
  margin: 0;
}
