/* Desktop parchment + wallet picker layout (matches robblade.com) */

.ob-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  animation: 0.2s ease-out backdrop-in;
}
.ob-backdrop--wallet {
  z-index: 320;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ob-panel {
  position: relative;
  width: 460px;
  max-width: 94%;
  padding: 28px;
}
.ob-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.ob-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.ob-step {
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 15%, transparent);
}
.ob-step.is-on { background: var(--accent); }

.ob-title {
  font-size: 24px;
  text-align: center;
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 400;
}
.ob-sub {
  font-size: 12px;
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-weight: 500;
}

.ob-form { display: flex; flex-direction: column; gap: 10px; }
.ob-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ob-or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.ob-or span:first-child,
.ob-or span:last-child {
  height: 1px;
  flex: 1;
  background: rgba(47, 59, 67, 0.18);
}

.ob-label {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ob-email-wrap { position: relative; display: block; }
.ob-email-wrap img {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.ob-input {
  color: #2f3b43;
  background: #f7f0daf0;
  border: 2px solid #e9c46a38;
  border-radius: 8px;
  outline: none;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ob-input:focus {
  border-color: #e9c46a;
  box-shadow: 0 0 0 2px #e9c46a29;
}
.ob-input.is-error { border-color: #e46e66; }
.ob-msg {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  min-height: 14px;
}
.ob-msg.is-err { color: #c0392b; }
.ob-msg.is-ok { color: #1e7a3a; }

.ob-field { display: flex; flex-direction: column; gap: 4px; }
.ob-avatars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.ob-avatar {
  aspect-ratio: 1;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(74, 47, 23, 0.1);
  background: rgba(74, 47, 23, 0.05);
  transition: all 0.1s;
}
.ob-avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.ob-avatar.is-on {
  border-color: var(--accent);
  background: rgba(240, 185, 11, 0.15);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
  transform: scale(1.05);
}
.ob-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ob-name-row .ob-input { flex: 1; height: 48px; padding: 0 16px; font-size: 16px; border-radius: 12px; }
.ob-invite { letter-spacing: 0.16em; text-transform: uppercase; height: 48px; padding: 0 16px; font-size: 16px; border-radius: 12px; margin-bottom: 20px; }

.ob-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ob-chip {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 14px;
  color: var(--ink);
  background: rgba(74, 47, 23, 0.05);
  border-radius: 8px;
  padding: 8px 16px;
  letter-spacing: 0.04em;
}
.ob-link {
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ob-link:hover { color: var(--ink); }

/* Wallet picker */
.ob-wallet {
  position: relative;
  width: 440px;
  max-width: 92%;
  max-height: 92%;
  display: flex;
  flex-direction: column;
  color: #f4ead2;
  --ink: #f4ead2;
  --ink-soft: #a9bccf;
}
.ob-wallet-head {
  flex: none;
  text-align: center;
  padding: 24px 24px 12px;
}
.ob-wallet-logo {
  position: relative;
  margin: 0 auto;
  width: fit-content;
}
.ob-wallet-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(24px);
  opacity: 0.6;
  background: radial-gradient(ellipse at center, rgba(240, 185, 11, 0.45), transparent 70%);
}
.ob-wallet-logo img {
  display: block;
  width: 190px;
  max-width: 55%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}
.ob-wallet-sub {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #a9bccf;
}
.ob-goldline {
  height: 2px;
  flex: none;
  margin: 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(233, 196, 106, 0.55), transparent);
}
.ob-wallet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.ob-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ob-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 12px;
  color: #f4ead2;
  transition: all 0.15s;
}
.ob-tile:hover {
  border-color: rgba(233, 196, 106, 0.45);
  background: rgba(255, 255, 255, 0.11);
}
.ob-tile:active { transform: scale(0.97); }
.ob-tile:disabled { opacity: 0.4; }
.ob-tile.is-busy { opacity: 1; }
.ob-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cf08a;
  box-shadow: 0 0 6px rgba(124, 240, 138, 0.8);
}
.ob-tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.ob-tile-icon img { width: 32px; height: 32px; object-fit: contain; }
.ob-tile-name {
  margin-top: 6px;
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  color: #f4ead2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ob-tile-meta {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #a9bccf;
}
.ob-wallet-foot {
  flex: none;
  padding: 4px 20px 20px;
}
.ob-wallet-foot p {
  margin: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(169, 188, 207, 0.55);
}

.ob-gicon {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.ob-mobile { display: none; }

/* Google account chooser — the connect prompt missing from the silent redirect */
.g-pop-back {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  animation: 0.2s ease-out backdrop-in;
}
.g-pop {
  position: relative;
  width: min(400px, 92vw);
  background: #fff;
  color: #202124;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 22px 22px 16px;
  font-family: "Google Sans", "Segoe UI", Roboto, Arial, sans-serif;
  overflow: hidden;
}
.g-pop__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #3c4043;
}
.g-pop__title {
  margin: 18px 0 4px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.2px;
}
.g-pop__sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: #5f6368;
}
.g-pop__list { display: flex; flex-direction: column; }
.g-pop__acc {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #e8eaed;
  padding: 12px 4px;
  cursor: pointer;
  color: inherit;
}
.g-pop__acc:hover { background: #f8f9fa; }
.g-pop__acc.is-on { background: #e8f0fe; }
.g-pop__acc:disabled { opacity: 0.6; cursor: wait; }
.g-pop__ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.g-pop__ava--plus { background: #e8eaed; color: #5f6368; font-size: 20px; }
.g-pop__meta { display: flex; flex-direction: column; min-width: 0; }
.g-pop__meta strong { font-size: 14px; font-weight: 500; color: #202124; }
.g-pop__meta em { font-style: normal; font-size: 12px; color: #5f6368; }
.g-pop__foot {
  margin: 12px 4px 0;
  font-size: 11px;
  color: #80868b;
  line-height: 1.4;
}
.g-pop__busy {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.g-pop__busy p { margin: 0; font-size: 14px; color: #3c4043; font-weight: 500; }
.g-pop__spin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #e8eaed;
  border-top-color: #1a73e8;
  animation: g-spin 0.7s linear infinite;
}
@keyframes g-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px), (pointer: coarse) and (max-width: 1200px) {
  .ob-desktop { display: none !important; }
  .ob-mobile { display: flex !important; }
}
@media (min-width: 901px) {
  .ob-mobile { display: none !important; }
}
html.force-landscape .ob-desktop { display: none !important; }
html.force-landscape .ob-mobile { display: flex !important; }
