/* Word Catcher — design tokens (legacy upload panels may still reference --wc-* ) */
:root {
  --wc-fig-bg-image: url("/static/img/wc-bg.jpg?v=2");
  --wc-ink: #0c1222;
  --wc-ink-soft: #3d4663;
  --wc-muted: #6b7394;
  --wc-canvas: #fff8f3;
  --wc-canvas-2: #f0fdfa;
  --wc-surface: #ffffff;
  --wc-border: rgba(15, 18, 25, 0.08);
  --wc-ring: rgba(249, 115, 22, 0.45);
  --wc-primary: #f97316;
  --wc-primary-strong: #ea580c;
  --wc-primary-soft: rgba(249, 115, 22, 0.12);
  --wc-teal: #14b8a6;
  --wc-teal-soft: rgba(20, 184, 166, 0.12);
  --wc-brand: #3bd2c7;
  --wc-brand-hover: #33bdb4;
  --wc-shadow: 0 25px 50px -12px rgba(15, 18, 25, 0.12),
    0 12px 24px -8px rgba(15, 18, 25, 0.08);
  --wc-radius-xl: 1.5rem;
  --wc-radius-2xl: 1.75rem;
}

/* Figma frame: full-bleed landscape + floating nav (node 2023-1019) */
.wc-fig-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #c8d4b8;
  background-image: var(--wc-fig-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.wc-fig-fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.wc-fig-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  background: transparent;
}

.wc-fig-nav-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 28px 55px -20px rgba(0, 0, 0, 0.45),
    0 14px 30px -16px rgba(0, 0, 0, 0.32);
}

/* Mobile nav: brand + menu button; expandable panel for links & profile */
.wc-nav-bar-head {
  display: contents;
}

.wc-nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  color: #171717;
  cursor: pointer;
  transition: background 0.15s;
}

.wc-nav-menu-btn:hover {
  background: rgba(59, 210, 199, 0.35);
}

.wc-nav-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 1.15rem;
}

.wc-nav-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 9999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wc-nav-menu-icon--open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.wc-nav-menu-icon--open span:nth-child(2) {
  opacity: 0;
}

.wc-nav-menu-icon--open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.wc-nav-panel {
  display: contents;
}

@media (max-width: 639px) {
  .wc-fig-nav-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-columns: unset;
    border-radius: 1.25rem;
    padding: 0.7rem 0.85rem 0.85rem;
  }

  .wc-nav-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
  }

  .wc-fig-brand {
    justify-content: flex-start;
    min-width: 0;
  }

  .wc-fig-brand-text {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wc-nav-menu-btn {
    display: inline-flex;
  }

  .wc-nav-panel {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .wc-nav-panel--open {
    display: flex;
  }

  .wc-fig-nav-links {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    gap: 0.35rem;
  }

  .wc-fig-nav-link {
    display: block;
    text-align: center;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    white-space: normal;
  }

  .wc-fig-nav-link--active {
    background: rgba(59, 210, 199, 0.22);
  }

  .wc-profile-nav-wrap {
    justify-self: unset;
    width: 100%;
  }

  .wc-fig-nav-profile {
    width: 100%;
    justify-self: unset;
  }

  .wc-profile-dropdown {
    left: 0;
    right: 0;
    min-width: unset;
  }
}

.wc-fig-brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.wc-fig-nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.5rem;
  width: 100%;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.wc-fig-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #525252;
  white-space: nowrap;
  padding: 0.25rem 0.35rem;
  transition: color 0.15s;
}
.wc-fig-nav-link:hover {
  color: #171717;
}
.wc-fig-nav-link--active {
  color: #0a0a0a;
  font-weight: 600;
}

.wc-fig-nav-profile {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #171717;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
  transition: background 0.15s;
}
.wc-fig-nav-profile:hover {
  background: var(--wc-brand);
  color: #111;
}
.wc-fig-nav-profile--active {
  box-shadow: 0 0 0 2px rgba(59, 210, 199, 0.85);
}

.wc-lang-flag-img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.wc-lang-flag-emoji {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.wc-fig-logo-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, #5bd37a, #1e8440 72%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    0 12px 24px -6px rgba(30, 132, 64, 0.55);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
}

.wc-fig-footer-pill {
  background: rgba(24, 24, 24, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}

.wc-fig-content-narrow {
  max-width: 51rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.wc-fig-content-wide {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

html {
  scroll-behavior: smooth;
  background-color: #c8d4b8;
}

body {
  background: transparent;
}

body.wc-body {
  color: var(--wc-ink);
  background-color: var(--wc-canvas);
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgba(249, 115, 22, 0.16), transparent 55%),
    radial-gradient(700px 480px at 95% 0%, rgba(20, 184, 166, 0.14), transparent 50%),
    radial-gradient(600px 400px at 50% 105%, rgba(251, 191, 36, 0.12), transparent 45%);
}

/* Navbar */
.wc-nav {
  background: rgba(255, 248, 243, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wc-border);
}

.wc-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--wc-primary) 0%, #fb923c 45%, var(--wc-teal) 100%);
  box-shadow: 0 12px 30px -8px rgba(249, 115, 22, 0.55);
}

.wc-brand-text {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.02em;
}

.wc-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wc-ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.wc-nav-pill:hover {
  background: rgba(255, 255, 255, 0.65);
}
.wc-nav-pill[data-active='true'] {
  background: rgba(249, 115, 22, 0.15);
  color: var(--wc-primary-strong);
  font-weight: 600;
}

.wc-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--wc-primary-strong), #fb923c);
  color: #fff !important;
  box-shadow: 0 14px 32px -10px rgba(234, 88, 12, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.wc-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -10px rgba(234, 88, 12, 0.6);
}

/* Cards */
.wc-card {
  background: var(--wc-surface);
  border-radius: var(--wc-radius-xl);
  border: 1px solid var(--wc-border);
  box-shadow: var(--wc-shadow);
}

.wc-card-inner {
  border-radius: calc(var(--wc-radius-xl) - 6px);
}

/* Sections */
.wc-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--wc-ink);
}

.wc-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wc-muted);
}

/* Inputs */
.wc-input,
select.wc-input {
  border-radius: 0.85rem !important;
  border: 1px solid rgba(15, 18, 25, 0.1) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding: 0.6rem 0.85rem !important;
  box-shadow: 0 4px 12px -6px rgba(15, 18, 25, 0.12);
}
.wc-input:focus {
  outline: none;
  ring: 2px;
  box-shadow: 0 0 0 3px var(--wc-ring), 0 4px 12px -6px rgba(15, 18, 25, 0.12);
  border-color: rgba(249, 115, 22, 0.45);
}

.wc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Drop zone */
.wc-dropzone {
  border-radius: var(--wc-radius-2xl);
  border: 2px dashed rgba(249, 115, 22, 0.35);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.7)
  );
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.wc-dropzone:hover {
  border-color: rgba(249, 115, 22, 0.55);
  transform: translateY(-1px);
}
.wc-dropzone-active {
  border-color: rgba(249, 115, 22, 0.9) !important;
  background: var(--wc-primary-soft) !important;
}

/* Buttons */
.wc-btn {
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.wc-btn-secondary {
  background: rgba(15, 18, 25, 0.05);
  color: var(--wc-ink-soft);
}
.wc-btn-secondary:hover {
  background: rgba(15, 18, 25, 0.08);
}
.wc-btn-ghost {
  background: transparent;
  color: var(--wc-muted);
}
.wc-btn-primary-solid {
  background: linear-gradient(135deg, var(--wc-primary-strong), #fb923c);
  color: white;
  box-shadow: 0 10px 26px -8px rgba(234, 88, 12, 0.5);
}

/* Modal backdrop */
.wc-modal-backdrop {
  background: rgba(12, 18, 34, 0.55);
  backdrop-filter: blur(6px);
}
.wc-modal-card {
  border-radius: var(--wc-radius-2xl);
  box-shadow: 0 32px 65px -20px rgba(12, 18, 34, 0.45);
}

/* Word cards on upload */
.wc-learn-card {
  border-radius: var(--wc-radius-xl);
  border: 1px solid var(--wc-border);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.98),
    rgba(254, 252, 246, 0.98)
  );
  box-shadow: 0 12px 34px -16px rgba(15, 18, 25, 0.2);
}

/* Footer strip */
.wc-footer {
  color: rgba(61, 70, 99, 0.55);
}

img {
  background-color: #f1f5f9;
}

/* —— Figma components —— */
.wc-fig-page-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0a0a0a;
  text-align: center;
}

.wc-fig-badge-free {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  color: #171717;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.2);
}

.wc-fig-upload-card {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.wc-fig-drop-inner {
  border: 2px dashed rgba(0, 0, 0, 0.18);
  border-radius: 1rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
  background: rgba(250, 250, 250, 0.65);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wc-fig-drop-inner:hover,
.wc-fig-drop-inner.wc-active {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.wc-fig-btn-dark {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  background: #171717;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  transition: background 0.15s;
}
.wc-fig-btn-dark:hover:not(:disabled) {
  background: var(--wc-brand);
  color: #111;
}
.wc-fig-btn-dark:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wc-fig-btn-saved {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  background: var(--wc-brand);
  color: #111;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  cursor: default;
}

.wc-fig-btn-saved:disabled {
  opacity: 1;
}

.wc-fig-btn-saved:hover:not(:disabled) {
  background: var(--wc-brand);
  color: #111;
}

.wc-icon-collected {
  background: rgba(44, 216, 176, 0.18) !important;
  border-color: var(--wc-brand) !important;
  color: #0a7a62 !important;
  cursor: default;
}

.wc-save-wordbook-page {
  max-width: 56rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.wc-save-wordbook-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.wc-save-wordbook-sub {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.72);
}

.wc-save-wordbook-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .wc-save-wordbook-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

.wc-save-wordbook-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wc-save-word-card {
  flex: 1;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.wc-save-word-card-title {
  padding: 1.25rem 1.25rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  text-align: center;
}

.wc-save-word-card-img {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: contain;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
}

.wc-save-word-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  font-size: 3rem;
  padding: 0 1.25rem;
}

.wc-save-word-card-body {
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}

.wc-save-word-card-text b,
.wc-save-word-sentence b {
  font-weight: 700;
}

.wc-save-word-tip {
  margin-top: 0.85rem;
  text-align: left;
}

.wc-save-word-sentence {
  margin-top: 0.85rem;
  text-align: left;
}

.wc-speaker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 1rem auto 0;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.wc-speaker-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wc-speaker-btn svg {
  width: 1.65rem;
  height: 1.65rem;
}

.wc-save-wordbook-btn {
  width: 100%;
  position: relative;
  z-index: 2;
}

.wc-save-wordbook-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Word Book hub gate + detail */
.wc-wordbook-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.wc-wordbook-gate-card {
  max-width: 22rem;
  width: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 28px 55px -20px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.wc-wordbook-gate-back {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #525252;
  text-decoration: underline;
}

.wc-wordbook-action-sub {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.72);
}

.wc-fig-breadcrumb-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wc-fig-crumb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #171717;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: background 0.12s;
}

.wc-fig-crumb-pill:hover {
  background: #fff;
}

.wc-fig-crumb-pill--active {
  cursor: default;
}

.wc-wordbook-remove-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.85rem;
}

/* Global button hover — theme #3BD2C7 */
button:hover:not(:disabled):not(.wc-no-theme-hover),
input[type="submit"]:hover:not(:disabled),
.wc-fig-nav-profile:hover,
.wc-fig-pill-enter:hover,
.wc-fig-footer-pill:hover,
.wc-btn-primary-solid:hover,
.wc-btn-theme:hover {
  background-color: var(--wc-brand) !important;
  border-color: var(--wc-brand) !important;
  color: #111 !important;
}

a.wc-fig-btn-dark:hover,
a.wc-fig-nav-profile:hover {
  background-color: var(--wc-brand) !important;
  color: #111 !important;
}

.wc-fig-book-card {
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.35);
}

.wc-fig-pill-enter {
  border-radius: 9999px;
  background: #171717;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.75rem;
}

.wc-fig-word-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.12s, transform 0.12s;
}
.wc-fig-word-row:hover {
  transform: translateY(-1px);
}
.wc-fig-word-row.wc-selected {
  border-color: #171717;
}

.wc-fig-action-card {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.35);
}
.wc-fig-action-card img.wc-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f5f5f5;
}
.wc-fig-action-card .wc-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
  display: grid;
  place-items: center;
  font-size: 3.5rem;
}

.wc-fig-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.75);
}
.wc-fig-breadcrumb a:hover {
  text-decoration: underline;
}

.wc-fig-profile-panel {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 55px -24px rgba(0, 0, 0, 0.4);
}

.wc-profile-nav-wrap {
  position: relative;
  justify-self: end;
}

.wc-profile-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 15rem;
  padding: 0.45rem 0 0.55rem;
  border-radius: 1rem;
  background: rgba(28, 28, 28, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 48px -14px rgba(0, 0, 0, 0.55);
  z-index: 60;
}

.wc-profile-dropdown-title {
  padding: 0.35rem 1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wc-profile-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  transition: background 0.12s;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.wc-profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.wc-profile-dropdown-item--bold {
  font-weight: 700;
}

.wc-lang-modal-card {
  text-align: left;
}

.wc-fig-profile-shell {
  display: grid;
  grid-template-columns: minmax(9.5rem, 13rem) minmax(0, 1fr);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 28px 55px -24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

@media (max-width: 639px) {
  .wc-fig-profile-shell {
    grid-template-columns: 1fr;
  }
}

.wc-profile-sidebar {
  padding: 1.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.wc-profile-sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #404040;
  margin-bottom: 0.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.wc-profile-sidebar button:hover {
  background: rgba(255, 255, 255, 0.45);
}

.wc-profile-sidebar button.active {
  font-weight: 700;
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.55);
}

.wc-profile-main {
  padding: 1.75rem 1.75rem 2rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .wc-profile-main {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.wc-fig-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.65rem;
}
.wc-fig-lang-tile {
  padding: 0.75rem;
  border-radius: 0.85rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.wc-fig-lang-tile.wc-picked {
  border-color: #171717;
  background: #fff;
}

.wc-fig-action-card--row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 7.5rem;
}
.wc-fig-action-card--row .wc-fig-action-card-media {
  width: 7.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.wc-fig-action-card--row .wc-fig-action-card-media .wc-thumb,
.wc-fig-action-card--row .wc-fig-action-card-media .wc-thumb-placeholder {
  height: 100%;
  min-height: 7.5rem;
  aspect-ratio: auto;
}

.wc-fig-phone-mock {
  width: 14rem;
  padding: 0.65rem;
  border-radius: 2rem;
  background: #171717;
  box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.55);
}
.wc-fig-phone-screen {
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #e8f4fc 0%, #f5f5f5 40%);
  padding: 1rem 0.75rem 1.25rem;
  min-height: 18rem;
}
.wc-fig-phone-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: #404040;
  margin-bottom: 0.75rem;
}
.wc-fig-phone-bubble {
  max-width: 85%;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.75rem;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.35;
}
.wc-fig-phone-bubble--in {
  margin-right: auto;
  background: #fff;
  color: #262626;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.wc-fig-phone-bubble--out {
  margin-left: auto;
  background: #dcf8c6;
  color: #1a3d1a;
}

/* Telegram onboarding page */
.wc-telegram-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 1.25rem;
  row-gap: 1.5rem;
  align-items: center;
  justify-items: center;
  max-width: 52rem;
  margin: 2.75rem auto 0;
  padding: 0 0.5rem;
}

.wc-telegram-phone-img {
  grid-column: 2;
  grid-row: 1 / span 4;
  width: min(100%, 16.5rem);
  height: auto;
  align-self: center;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.28));
  background: transparent;
}

.wc-telegram-bubble {
  max-width: 12.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.24);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
  color: #171717;
  text-align: left;
}

.wc-telegram-step-num {
  font-weight: 700;
}

.wc-telegram-bubble--1 {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.wc-telegram-bubble--2 {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.wc-telegram-bubble--3 {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
}

.wc-telegram-bubble--4 {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
}

.wc-telegram-bubble--5 {
  grid-column: 1;
  grid-row: 3;
  justify-self: end;
  align-self: end;
}

@media (max-width: 767px) {
  .wc-telegram-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 20rem;
  }

  .wc-telegram-phone-img {
    order: -1;
    width: min(100%, 14rem);
  }

  .wc-telegram-bubble {
    max-width: 100%;
    width: 100%;
  }
}

/* Upload page — screenshot-aligned */
.wc-upload-hero-sub {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.wc-fig-drop-inner--hero {
  padding: 2.25rem 1.5rem 2rem;
  border-width: 2px;
  border-style: dashed;
  border-color: rgba(23, 23, 23, 0.55);
  background: rgba(255, 255, 255, 0.55);
}

.wc-upload-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto;
  color: #171717;
}

.wc-browse-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  cursor: pointer;
}
.wc-browse-link:hover {
  color: #000;
}

.wc-fig-drop-inner--hero.wc-has-preview {
  padding: 1.25rem 1rem 1rem;
}

.wc-upload-snippet-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.wc-upload-snippet {
  width: min(72%, 11.5rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.65rem;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.35);
  background: #f5f5f5;
}

.wc-upload-preview {
  margin-top: 0.75rem;
  max-height: 8rem;
  border-radius: 0.75rem;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.wc-upload-progress {
  margin-top: 1rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.wc-upload-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: #171717;
  transition: width 0.15s ease;
}

.wc-upload-progress-bar--active {
  background: linear-gradient(90deg, #171717 0%, var(--wc-brand) 45%, #171717 90%);
  background-size: 220% 100%;
  animation: wc-progress-shimmer 1.35s ease-in-out infinite;
}

.wc-busy-panel {
  animation: wc-busy-panel-pulse 2.4s ease-in-out infinite;
}

.wc-busy-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--wc-brand);
  border-radius: 50%;
  animation: wc-spin 0.85s linear infinite;
}

.wc-busy-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.wc-busy-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgba(23, 23, 23, 0.45);
  animation: wc-busy-dot 1.1s ease-in-out infinite;
}

.wc-busy-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.wc-busy-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes wc-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wc-progress-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes wc-busy-panel-pulse {
  0%,
  100% {
    box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 34px 68px -22px rgba(59, 210, 199, 0.35);
  }
}

@keyframes wc-busy-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.wc-lang-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wc-lang-field label {
  display: block;
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #262626;
  margin-bottom: 0.45rem;
  text-align: center;
}

.wc-lang-picker {
  position: relative;
  width: 100%;
  max-width: 12.5rem;
}

.wc-lang-picker-btn {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.12);
}

.wc-lang-picker-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 6.5rem;
  line-height: 1.2;
}
.wc-lang-picker-btn:hover {
  border-color: rgba(0, 0, 0, 0.22);
}
.wc-lang-picker-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}
.wc-lang-picker-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  opacity: 0.55;
  pointer-events: none;
}
.wc-lang-picker-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  margin-top: 0.35rem;
  max-height: 14rem;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.28);
  padding: 0.35rem;
}
.wc-icon-action:hover:not(:disabled) {
  background: var(--wc-brand) !important;
  border-color: var(--wc-brand) !important;
  color: #111 !important;
}

.wc-icon-action.wc-icon-action--on:hover:not(:disabled) {
  background: var(--wc-brand) !important;
  color: #111 !important;
}

.wc-lang-picker-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.wc-lang-picker-item .wc-lang-picker-label {
  max-width: 7.5rem;
}
.wc-lang-picker-item:hover,
.wc-lang-picker-item.wc-active {
  background: #f5f5f5;
}

.wc-alert-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.wc-alert-card {
  max-width: 22rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 28px 55px -20px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.wc-info-modal-card {
  max-width: min(36rem, 100%);
  max-height: min(85vh, 42rem);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.wc-info-modal-card--contact {
  max-width: min(28rem, 100%);
  max-height: none;
}

.wc-info-modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 0.25rem;
}

.wc-info-modal-body h3 {
  font-size: 0.875rem;
}

/* Auth — login / sign up */
.wc-auth-card {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 28px 55px -24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

@media (min-width: 640px) {
  .wc-auth-card {
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

.wc-auth-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.wc-auth-sub {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #525252;
}

.wc-auth-error {
  margin-top: 1rem;
  border-radius: 0.85rem;
  background: #fef2f2;
  color: #991b1b;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.wc-auth-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wc-auth-label {
  display: block;
  text-align: left;
}

.wc-auth-label > span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #262626;
}

.wc-auth-input {
  display: block;
  width: 100%;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 1.1rem;
  font-size: 0.9375rem;
  color: #171717;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wc-auth-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 3px rgba(59, 210, 199, 0.25);
}

.wc-auth-forgot {
  font-size: 0.75rem;
  font-weight: 600;
  color: #525252;
  text-decoration: none;
}

.wc-auth-forgot:hover {
  text-decoration: underline;
}

.wc-auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #404040;
  cursor: pointer;
}

.wc-auth-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #171717;
}

.wc-auth-social-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wc-auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.8rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wc-auth-social-btn:hover {
  background: var(--wc-brand);
  border-color: var(--wc-brand);
  color: #111;
}

.wc-auth-switch {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #525252;
}

.wc-auth-switch a {
  margin-left: 0.25rem;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wc-account-pill-btn {
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #262626;
  transition: background 0.12s;
}

.wc-account-pill-btn:hover {
  background: #fff;
}

.wc-account-pill-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Profile account — read-only display vs editable inputs */
.wc-profile-account-fields {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.wc-profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.wc-profile-field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #404040;
}

.wc-profile-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.03);
  color: #171717;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: none;
  cursor: default;
  user-select: text;
}

.wc-profile-display-value {
  flex: 1;
  min-width: 0;
}

.wc-profile-display--secret {
  font-variant-numeric: tabular-nums;
}

.wc-profile-show-btn {
  flex-shrink: 0;
}

.wc-profile-field-note {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #737373;
}

.wc-profile-form {
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.wc-profile-form .wc-auth-input {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wc-profile-form .wc-auth-input:focus {
  border-color: rgba(59, 210, 199, 0.85);
  box-shadow: 0 0 0 3px rgba(59, 210, 199, 0.22);
}

.wc-llm-picker {
  margin-top: 1rem;
  max-width: 10rem;
  margin-left: auto;
  margin-right: auto;
}

.wc-llm-picker .wc-lang-picker-btn {
  padding: 0.55rem 1.55rem 0.55rem 0.6rem;
  gap: 0.3rem;
}

.wc-llm-picker .wc-lang-picker-label {
  max-width: 4.75rem;
  font-size: 0.8125rem;
}

.wc-llm-picker .wc-lang-picker-chevron {
  right: 0.55rem;
}

.wc-llm-logo {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

footer button.wc-fig-footer-pill {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Post-upload: Choose Your Next Step */
.wc-next-step-card {
  width: 100%;
  max-width: min(96vw, 40rem);
  margin-left: auto;
  margin-right: auto;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.45);
}

.wc-next-step-title {
  text-align: center;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.wc-next-step-sub {
  text-align: center;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.72);
}

.wc-annotated-frame {
  margin-top: 1.25rem;
  width: 100%;
  max-width: min(96vw, 36rem);
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

.wc-annotated-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 1rem;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wc-generation-block--follow {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.wc-annotated-frame--zoom {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.wc-annotated-frame--zoom img {
  background: transparent;
}

.wc-word-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .wc-word-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
  }
}

.wc-word-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.28);
  border: 2px solid transparent;
}

.wc-word-action-row.wc-selected {
  border-color: #171717;
}

.wc-word-action-label {
  min-width: 0;
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-word-action-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wc-icon-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  border: 1.5px solid #171717;
  background: #fff;
  color: #171717;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wc-icon-action svg {
  width: 1.1rem;
  height: 1.1rem;
}

.wc-icon-action.wc-icon-action--on {
  background: #171717;
  color: #fff;
}

.wc-tooltip {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  background: #fff;
  color: #171717;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 5;
}

.wc-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}

.wc-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.wc-zoom-panel {
  max-width: 28rem;
  width: 100%;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.wc-zoom-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #f5f5f5;
}

.wc-zoom-caption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #171717;
}

/* —— Mobile layout polish (≤639px) —— */
@media (max-width: 639px) {
  .wc-fig-fixed-bg {
    background-attachment: scroll;
  }

  .wc-fig-nav-wrap {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .wc-fig-content-narrow,
  .wc-fig-content-wide {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .wc-fig-content-narrow {
    padding-bottom: 6rem;
  }

  .wc-fig-page-title {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .wc-upload-hero-sub {
    font-size: 0.9375rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .wc-fig-upload-card {
    padding: 1.35rem 1.1rem 1.25rem;
    border-radius: 1.15rem;
  }

  .wc-fig-drop-inner--hero {
    padding: 1.65rem 1rem 1.45rem;
  }

  .wc-upload-lang-grid {
    justify-items: center;
    gap: 1rem;
  }

  .wc-upload-lang-grid .wc-lang-field {
    width: 100%;
    max-width: 17rem;
    margin-left: auto;
    margin-right: auto;
  }

  .wc-upload-lang-grid .wc-lang-picker {
    max-width: 100%;
  }

  .wc-upload-lang-grid .wc-lang-picker-label {
    max-width: 9.5rem;
  }

  .wc-upload-lang-grid .wc-lang-picker-btn {
    min-height: 2.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .wc-llm-picker {
    max-width: 11rem;
  }

  .wc-next-step-card {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 1rem 1.5rem;
    box-sizing: border-box;
  }

  .wc-word-action-row {
    padding: 0.75rem 0.85rem;
  }

  .wc-word-action-label {
    white-space: normal;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .wc-icon-action {
    width: 2.5rem;
    height: 2.5rem;
  }

  .wc-fig-book-card {
    padding: 1.35rem 1.15rem !important;
  }

  .wc-auth-card {
    padding: 1.65rem 1.25rem 1.85rem;
  }

  .wc-info-modal-card {
    max-height: min(88vh, 42rem);
    margin: 0.25rem;
  }

  footer {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(2.75rem, env(safe-area-inset-bottom, 0px));
    gap: 0.65rem;
  }

  .wc-fig-footer-pill {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}
