: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;
  /* 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);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #e8f2f0;
  /* fixed = viewport-sized; otherwise radials end mid-page on long docs (Privacy stripe). */
  background-image:
    radial-gradient(ellipse 100% 80% at 10% -20%, rgba(13, 110, 110, 0.2), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(217, 119, 6, 0.1), transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.5;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 31, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 31, 36, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0;
  flex-shrink: 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;
}
.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.75rem 1.5rem 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 {
  justify-content: flex-end;
}
.site-header-nav-only nav {
  margin-left: 0;
}
.hero .hero-sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  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: rgba(255,255,255,0.45); }
.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-display);
  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; }
.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: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-display); 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-display);
  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-display);
}

.panel {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(12, 31, 36, 0.08);
  backdrop-filter: blur(8px);
  padding: 1.75rem;
  border-radius: 1rem;
  max-width: min(32rem, 100%);
  width: 100%;
  box-sizing: border-box;
  animation: rise 0.55s ease both;
}
.panel.narrow { max-width: min(24rem, 100%); }
.panel.grow { max-width: none; flex: 1; min-width: 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: rgba(255,255,255,0.85);
  border: 1px solid rgba(12, 31, 36, 0.18);
  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.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-display);
  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-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); }
.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);
}
.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;
}

.admin {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.admin-nav {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  background: rgba(255,255,255,0.45);
  border-radius: 0;
}
.admin-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(12, 31, 36, 0.1);
}
.admin-account .inline {
  display: inline;
  margin: 0;
}
.admin-account .linkish {
  display: inline;
  width: auto;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  font-weight: 500;
}
.admin-account .linkish:hover {
  background: rgba(13, 110, 110, 0.12);
}
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  font-weight: 500;
}
.admin-nav a.active, .admin-nav a:hover { background: rgba(13, 110, 110, 0.12); }
.nav-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.admin-url { font-size: 0.8rem; color: var(--sea-deep); font-weight: 600; margin: 0.15rem 0 0.5rem; word-break: break-all; }
.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-display);
  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: flex-start;
  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);
}
.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;
}
.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-hint {
  margin: 0;
  font-weight: 400;
  color: rgba(12, 31, 36, 0.62);
  font-size: 0.88rem;
}
.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 .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 .profile-on {
  margin: 0.15rem 0 0;
  margin-left: auto;
}
.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: default;
}
.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 {
  max-width: 60rem;
  margin: 1rem 0 1rem;
}
.home-guest .brand-hero {
  margin-top: 0.5rem;
}

@media (min-width: 801px) {
  .namecard-body.has-qr {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
  }
  .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); }
.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;
}
.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: nowrap;
  align-items: center;
  gap: 0;
  justify-self: start;
}
.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;
}
/*
 * Speaker/earpiece toggle is for the phone app (and touch devices).
 * Hide on real desktop pointers — JS shows it whenever mute is shown.
 * Native app (html.gr-android-app) always keeps it.
 */
@media (hover: hover) and (pointer: fine) {
  html:not(.gr-android-app) #speaker-btn,
  html:not(.gr-android-app) #owner-speaker-btn {
    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;
}
/* 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,
body.call-active.call-role-visitor .owner-call-widget #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: compact centered card (not full-bleed on desktop). */
body.call-active .owner-call-widget.is-incoming,
body.call-active.call-role-visitor .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 .owner-call-widget.is-incoming,
  body.call-active.call-role-visitor .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 chat must stay inside the widget (backdrop-filter makes position:fixed
   resolve against the widget, which shoved the panel half off-screen). */
body.call-active .owner-call-widget:has(#owner-live-chat:not(.hidden)) {
  left: 50%;
  right: auto;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(28rem, calc(100vw - 1.5rem));
  max-width: min(28rem, calc(100vw - 1.5rem));
  max-height: min(85dvh, calc(100dvh - 1.5rem));
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
body.call-active .owner-call-widget #owner-live-chat:not(.hidden) {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0.55rem 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  transform: none;
}
body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-log {
  min-height: 4.5rem;
  max-height: min(42dvh, 14rem);
  background: rgba(12, 31, 36, 0.04);
  border-color: rgba(12, 31, 36, 0.1);
  color: var(--ink);
}
body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-line.is-mine {
  color: var(--ink);
}
body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-line.is-theirs {
  color: rgba(12, 31, 36, 0.78);
}
body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-form input[type="text"] {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.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 .live-chat.call-ui-safe:not(.hidden) {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  width: min(28rem, calc(100vw - 1.5rem));
  margin: 0 auto;
  transform: none;
  z-index: 65;
  box-sizing: border-box;
  max-height: min(42dvh, 16rem);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.65rem 0.75rem;
  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 .live-chat.call-ui-safe:not(.hidden) .live-chat-log {
  min-height: 3.5rem;
  max-height: min(28dvh, 9rem);
  flex: 1 1 auto;
}
body.call-active .live-chat.call-ui-safe:not(.hidden) .live-chat-form {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
}
body.call-active .live-chat.call-ui-safe:not(.hidden) .live-chat-form input {
  min-width: 0;
  flex: 1 1 auto;
}
body.call-active .live-chat.call-ui-safe:not(.hidden) .live-chat-form .btn {
  flex: 0 0 auto;
}

@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 .call-end-actions.call-ui-safe {
    z-index: 90;
    width: calc(100vw - 1rem);
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
  body.call-active .owner-call-widget:has(#owner-live-chat:not(.hidden)),
  body.call-active.call-role-owner .owner-call-widget:has(#owner-live-chat:not(.hidden)) {
    left: 50%;
    right: auto;
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    transform: translateX(-50%);
    max-height: min(85dvh, calc(100dvh - 1rem));
  }
  body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-log {
    min-height: 3.5rem;
    max-height: min(36dvh, 11rem);
    background: rgba(12, 31, 36, 0.04);
    border-color: rgba(12, 31, 36, 0.1);
    color: var(--ink);
  }
  body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-line.is-mine,
  body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-line.is-theirs {
    color: var(--ink);
  }
  body.call-active .live-chat.call-ui-safe:not(.hidden) {
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 1rem);
    max-height: min(38dvh, 14rem);
    z-index: 85;
  }
  body.call-active .live-chat.call-ui-safe:not(.hidden) .live-chat-log {
    max-height: min(22dvh, 7.5rem);
  }
}
.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;
}
/* 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;
}
.owner-call-widget.is-idle {
  display: none;
}
.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;
}
.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.65rem;
  font-size: 1.2rem;
}
/* Accept / Decline: equal icon buttons in one row (label is on #owner-status). */
.owner-call-widget .incoming {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: stretch;
  width: 100%;
}
.owner-call-widget .incoming > p {
  grid-column: 1 / -1;
  margin: 0;
  width: 100%;
}
.owner-call-widget.is-incoming #owner-incoming-label {
  display: none;
}
.owner-call-widget .incoming .btn {
  flex: none;
  width: 100%;
  min-width: 0;
  height: 2.85rem;
  min-height: 2.85rem;
  padding: 0;
  border-radius: 0;
  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;
}

/*
 * 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-list-compact { margin: 0.5rem 0; }
.msg-list-compact .msg-item { padding: 0.55rem 0.7rem; }
.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;
}
.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: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  color: rgba(12, 31, 36, 0.55);
  font-size: 0.88rem;
  border-top: 1px solid rgba(12, 31, 36, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  box-sizing: border-box;
}
.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: var(--sea-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 400;
}
.site-footer-nav a:hover {
  color: var(--sea);
}
.site-footer-sep {
  color: rgba(12, 31, 36, 0.32);
  user-select: none;
}
@media (max-width: 800px) {
  .site-footer {
    padding: 0.85rem 1.25rem 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-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.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;
}
.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%;
  display: grid;
  gap: 0.75rem;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.03em;
}
.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-display);
  font-size: 1.15rem;
  margin: 1rem 0 0;
}
.legal h3.table-heading,
.table-heading {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 1.15rem 0 0.55rem;
  letter-spacing: -0.02em;
  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;
}
.signup-lede { margin: 0 0 1.5rem; }
.oauth-terms-hint { margin: -0.35rem 0 0.5rem; }

@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 { grid-template-columns: 1fr; }
  .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; }
  .site-header { padding: 0.85rem 1.25rem; }
  .panel { padding: 1.15rem; }
  .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,
.btn-oauth {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.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,
.panel,
.namecard,
.table-scroll,
.namecard .card-status,
.call-status,
.btn,
input,
textarea,
select,
.admin-nav a,
.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),
.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-busy {
  background: var(--glass) !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: 0;
}
.owner-call-widget.is-incoming #owner-reject-call {
  background: var(--bad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0;
}
.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-end-actions.call-ui-safe #hangup {
  background: var(--glass-bad);
  color: var(--bad);
  border: none;
  border-radius: 0;
}

body.call-active .owner-call-widget #owner-live-chat:not(.hidden) .live-chat-form input[type="text"],
body.call-active .live-chat.call-ui-safe:not(.hidden) .live-chat-form input {
  background: var(--glass);
}
