:root {
  --dict-primary: #0284c7;
  --dict-primary-dark: #0369a1;
  --dict-primary-light: #38bdf8;
  --dict-primary-glow: rgba(2, 132, 199, 0.22);
  --dict-accent-fil: #0d9488;
  --dict-accent-fil-bg: #ccfbf1;
  --dict-accent-fil-text: #0f766e;
  --dict-bg: #f8fafc;
  --dict-card: #ffffff;
  --dict-stage-bg: #070d1e;
  --dict-text-main: #0f172a;
  --dict-text-muted: #475569;
  --dict-text-subtle: #64748b;
  --dict-border: #e2e8f0;
  --dict-border-hover: #38bdf8;
  --dict-radius-sm: 10px;
  --dict-radius-md: 16px;
  --dict-radius-lg: 20px;
  --dict-radius-xl: 26px;
  --dict-radius-full: 9999px;
  --dict-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --dict-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --dict-shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  --dict-shadow-hover: 0 18px 40px -8px rgba(2, 132, 199, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.14);
}
body {
  --bg-page: #ffffff;
  background-color: #ffffff;
  background-image: none;
}
.dictionary-main {
  width: min(100% - 40px, 1220px);
  margin: 32px auto 60px;
  animation: dictFadeIn 0.35s ease-out;
}
@keyframes dictFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dict-page-header {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 255, 0.98) 100%);
  border: 1.5px solid var(--dict-border);
  border-radius: var(--dict-radius-lg);
  padding: 22px 28px;
  margin-bottom: 22px;
  box-shadow: var(--dict-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.dict-header-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 680px;
}
.dict-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3.5px 11px;
  border-radius: var(--dict-radius-full);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--dict-primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dict-header-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dict-text-main);
  margin: 0;
  letter-spacing: -0.4px;
}
.dict-header-content p {
  font-size: 13.5px;
  color: var(--dict-text-muted);
  margin: 0;
  line-height: 1.45;
}
.dict-header-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dict-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.98) 100%);
  border: 1px solid var(--dict-border);
  border-radius: var(--dict-radius-xl);
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: var(--dict-shadow-md);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}
.dict-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dict-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.dict-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.dict-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--dict-radius-full);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--dict-primary-dark);
  font-family: var(--font-display, inherit);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.dict-hero-badge i {
  color: var(--dict-primary);
  font-size: 13px;
}
.dict-hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dict-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dict-text-subtle);
  background: #ffffff;
  padding: 5px 12px;
  border-radius: var(--dict-radius-full);
  border: 1px solid var(--dict-border);
  box-shadow: var(--dict-shadow-sm);
}
.dict-stat-pill i {
  color: var(--dict-primary);
}
.dict-hero h1 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 30px;
  font-weight: 800;
  color: var(--dict-text-main);
  letter-spacing: -0.6px;
  line-height: 1.25;
}
.dict-hero h1 .highlight-text {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dict-hero p {
  margin: 0;
  color: var(--dict-text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.hero-quick-signs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.hero-quick-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-quick-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-sign-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--dict-border);
  padding: 5px 12px;
  border-radius: var(--dict-radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--dict-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-sign-pill:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  transform: translateY(-1px);
}
.hero-sign-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.dict-hero-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: var(--dict-radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 36px -10px rgba(2, 132, 199, 0.28);
  display: flex;
  flex-direction: column;
}
.hero-3d-viewport {
  width: 100%;
  height: 100%;
  flex: 1;
  position: relative;
}
.hero-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
  touch-action: none;
}
.hero-3d-viewport canvas:active {
  cursor: grabbing;
}
.hero-3d-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 17, 31, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: var(--dict-radius-full);
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  pointer-events: none;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  z-index: 10;
}
.hero-current-sign-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 3px 12px;
  border-radius: var(--dict-radius-full);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  pointer-events: none;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.hero-3d-viewport .stage-icon-halo {
  display: none !important;
}
.hero-3d-viewport .stage-focus-center {
  background: transparent !important;
  pointer-events: none;
}
.hero-3d-viewport .stage-quick-dock,
.hero-3d-viewport .stage-phase-card,
.hero-3d-viewport .stage-title-wrap,
.hero-3d-viewport .stage-sequencer-bar {
  pointer-events: auto;
}
.hero-stage-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 12;
  pointer-events: auto;
}
.stage-ctrls-left,
.stage-ctrls-right {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 15, 30, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--dict-radius-full);
  padding: 3px 6px;
  backdrop-filter: blur(10px);
}
.stage-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--dict-radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.stage-btn:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.18);
}
.stage-btn.active {
  color: #ffffff;
  background: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.avatar-spinner {
  width: 34px;
  height: 34px;
  border: 3.5px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: avatarSpin 0.75s linear infinite;
}
@keyframes avatarSpin {
  to { transform: rotate(360deg); }
}
.modal-3d-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.modal-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}
.modal-3d-viewport canvas:active {
  cursor: grabbing;
}
.dict-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.dictionary-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 20px;
  border: 1.5px solid var(--dict-border);
  border-radius: var(--dict-radius-lg);
  color: var(--dict-text-muted);
  background: #ffffff;
  box-shadow: var(--dict-shadow-sm);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.dictionary-search:focus-within {
  border-color: var(--dict-primary);
  box-shadow: 0 0 0 4px var(--dict-primary-glow), var(--dict-shadow-md);
  transform: translateY(-1px);
}
.dictionary-search .search-icon {
  font-size: 18px;
  color: #94a3b8;
  transition: color 0.2s ease;
}
.dictionary-search:focus-within .search-icon {
  color: var(--dict-primary);
}
.dictionary-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--dict-text-main);
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
}
.dictionary-search input::placeholder {
  color: #94a3b8;
}
.dict-search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.dict-search-clear:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.dict-search-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  user-select: none;
}
.dict-alphabet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}
.dict-alphabet-bar::-webkit-scrollbar {
  height: 4px;
}
.dict-alphabet-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.alphabet-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--dict-border);
  color: var(--dict-text-muted);
  font-family: var(--font-display, inherit);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--dict-shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.alphabet-pill:hover:not(.active) {
  border-color: var(--dict-primary);
  color: var(--dict-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}
.alphabet-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border-color: transparent;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.32);
  transform: translateY(-1px);
}
.dict-filter-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.dict-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dict-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--dict-radius-full);
  background: #ffffff;
  border: 1px solid var(--dict-border);
  color: var(--dict-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.dict-chip:hover:not(.active) {
  border-color: var(--dict-primary);
  color: var(--dict-primary);
}
.dict-chip.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  font-weight: 700;
}
.dict-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0284c7;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.18s ease;
}
.dict-reset-filters:hover {
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
}
.dictionary-section {
  margin-top: 20px;
}
.dictionary-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 2px;
}
.dictionary-section-heading h2 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 20px;
  font-weight: 800;
  color: var(--dict-text-main);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dictionary-section-heading h2 i {
  color: var(--dict-primary);
  font-size: 18px;
}
#dictionaryCount {
  color: var(--dict-text-subtle);
  font-size: 12.5px;
  font-weight: 700;
  background: #ffffff;
  padding: 5px 14px;
  border-radius: var(--dict-radius-full);
  border: 1px solid var(--dict-border);
  box-shadow: var(--dict-shadow-sm);
}
.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.dictionary-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dict-border);
  border-radius: var(--dict-radius-lg);
  background: var(--dict-card);
  box-shadow: var(--dict-shadow-sm);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.dictionary-entry:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: var(--dict-border-hover);
  box-shadow: var(--dict-shadow-hover);
}
.dictionary-entry.is-target-sign {
  border-color: var(--dict-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25), var(--dict-shadow-lg);
  animation: targetPulse 1.8s ease-in-out infinite alternate;
}
@keyframes targetPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}
.dictionary-image-loader {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
.dict-card-media-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #bae6fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.dict-card-media-badge.alphabet {
  background: rgba(49, 46, 129, 0.88);
  color: #c7d2fe;
  border-color: rgba(165, 180, 252, 0.4);
}
.dict-card-media-badge.numbers {
  background: rgba(6, 95, 70, 0.88);
  color: #a7f3d0;
  border-color: rgba(167, 243, 208, 0.4);
}
.dictionary-image-loader img[src$=".svg"],
.dictionary-entry-image[src$=".svg"] {
  object-fit: contain !important;
  padding: 16px;
  background: #ffffff;
}
.sign-modal-media-stage img[src$=".svg"] {
  object-fit: contain !important;
  padding: 24px;
  background: #ffffff;
}
.dict-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 30, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 4;
}
.dictionary-entry:hover .dict-card-hover-overlay {
  opacity: 1;
}
.dict-card-hover-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--dict-radius-full);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(6px);
  transition: transform 0.22s ease;
}
.dictionary-entry:hover .dict-card-hover-btn {
  transform: translateY(0);
}
.dictionary-image-loader.media-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  border: 3px solid rgba(2, 132, 199, 0.15);
  border-top-color: #0284c7;
  border-radius: 50%;
  content: '';
  box-sizing: border-box;
  animation: loading-spin 800ms linear infinite;
  z-index: 5;
  pointer-events: none;
}
.dictionary-image-loader.is-loaded::after {
  display: none !important;
}
.dictionary-entry-image,
.dictionary-entry-thumb,
.dictionary-entry-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
  opacity: 0;
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.dictionary-entry-video {
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
}
.dictionary-image-loader.is-portrait-media {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}
.dictionary-image-loader.is-portrait-media .dictionary-entry-video {
  height: auto;
  max-height: 62vh;
  object-fit: contain;
}
/* Grid clip autoplay. The thumbnail remains the paint layer and the fallback,
   so the clip is stacked over it and only crossfaded in once frames are
   actually advancing. `cover` matches the thumbnail's own framing, which keeps
   the handover from shifting as the video appears. */
.dictionary-image-loader .dictionary-entry-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
/* Portrait signs keep the thumbnail's crop in a grid cell rather than the
   contain/max-height treatment used by the full-width stage. */
.dictionary-image-loader.is-portrait-media .dictionary-entry-video {
  max-height: none;
  object-fit: cover;
}
/* !important is required here: the shared .is-loaded rule above also targets
   .dictionary-entry-video at equal specificity and would otherwise reveal the
   clip before it has decoded. */
.dictionary-image-loader .dictionary-entry-video.is-playing {
  opacity: 1 !important;
}
.dictionary-entry:hover .dictionary-entry-image,
.dictionary-entry:hover .dictionary-entry-thumb,
.dictionary-entry:hover .dictionary-entry-image,
.dictionary-entry:hover .dictionary-entry-video {
  transform: scale(1.04) translateZ(0);
}
.dictionary-image-loader.is-loaded .dictionary-entry-image,
.dictionary-image-loader.is-loaded .dictionary-entry-thumb,
.dictionary-image-loader.is-loaded .dictionary-entry-image,
.dictionary-image-loader.is-loaded .dictionary-entry-video {
  opacity: 1;
}
.dictionary-entry-content {
  padding: 12px 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
}
.dict-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dict-card-en-title {
  margin: 0;
  color: var(--dict-text-main);
  font-family: var(--font-display, inherit);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.dict-card-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}
.dict-card-fil-title {
  margin: 0;
  color: var(--dict-accent-fil-text);
  font-family: var(--font-display, inherit);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.card-pronounce-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--dict-border);
  background: #f8fafc;
  color: var(--dict-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.card-pronounce-btn:hover {
  background: var(--dict-primary);
  color: #ffffff;
  border-color: var(--dict-primary);
  transform: scale(1.08);
}
.card-pronounce-btn.fil {
  color: var(--dict-accent-fil-text);
  border-color: #ccfbf1;
  background: #f0fdf4;
}
.card-pronounce-btn.fil:hover {
  background: var(--dict-accent-fil);
  color: #ffffff;
  border-color: var(--dict-accent-fil);
}
.dictionary-entry-description {
  margin: 6px 0 0;
  color: var(--dict-text-muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dict-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f8fafc;
  margin-top: auto;
}
.dict-card-link-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--dict-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}
.dictionary-entry:hover .dict-card-link-text {
  gap: 8px;
}
.dict-card-copy-btn {
  background: #f8fafc;
  border: 1px solid var(--dict-border);
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.dict-card-copy-btn:hover {
  color: var(--dict-primary);
  border-color: var(--dict-primary);
  background: #f0f9ff;
}
.dictionary-fallback-media {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: radial-gradient(circle at 50% 30%, #0369a1 0%, #0b1329 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  gap: 8px;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.dictionary-fallback-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.dictionary-fallback-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #38bdf8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}
.dictionary-entry:hover .dictionary-fallback-icon {
  transform: scale(1.08);
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}
.dictionary-fallback-text {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-top: 2px;
}
.dictionary-fallback-sub {
  font-size: 11px;
  font-weight: 600;
  color: #7dd3fc;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.dictionary-fallback-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  margin-top: 6px;
  transition: all 0.2s ease;
}
.dictionary-fallback-badge:hover {
  background: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}
.dictionary-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 40px 24px;
  color: var(--dict-text-muted);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  background: #ffffff;
  border-radius: var(--dict-radius-xl);
  border: 1.5px dashed var(--dict-border);
  box-shadow: var(--dict-shadow-sm);
  gap: 12px;
}
.dictionary-message i {
  font-size: 36px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.dictionary-message.loading-state::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3.5px solid rgba(2, 132, 199, 0.15);
  border-top-color: var(--dict-primary);
  border-radius: 50%;
  animation: loading-spin 800ms linear infinite;
  margin-bottom: 12px;
}
.dictionary-message[hidden] {
  display: none !important;
}
@keyframes loading-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.dictionary-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.dictionary-pagination[hidden] {
  display: none !important;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--dict-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--dict-text-main);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--dict-shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--dict-primary);
  color: var(--dict-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15);
}
.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--dict-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--dict-text-main);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--dict-shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pagination-page-btn:hover:not(.active) {
  border-color: var(--dict-primary);
  color: var(--dict-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15);
}
.pagination-page-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border-color: transparent;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.32);
  transform: translateY(-1px);
}
.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 44px;
  color: var(--dict-text-subtle);
  font-weight: 700;
}
.sign-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalBackdropFade 0.25s ease-out;
}
@keyframes modalBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sign-modal-backdrop[hidden] {
  display: none !important;
}
.sign-modal {
  position: relative;
  width: min(100%, 820px);
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--dict-radius-xl);
  border: 1px solid var(--dict-border);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(2, 132, 199, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.sign-modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dict-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.sign-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sign-modal-header h2 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 800;
  color: var(--dict-text-main);
  letter-spacing: -0.4px;
}
.sign-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sign-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.sign-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.sign-modal-media-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sign-modal-media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: var(--dict-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.sign-modal-media-stage img,
.sign-modal-media-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #ffffff;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}
.sign-modal-media-stage video {
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
}
.sign-modal-media-stage.is-portrait-media {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  max-width: 420px;
  margin: 0 auto;
}
.sign-modal-media-stage.is-portrait-media video {
  height: auto;
  max-height: 70vh;
}
.sign-modal-media-stage img[hidden],
.sign-modal-media-stage video[hidden] {
  display: none !important;
}
.sign-modal-media-stage.media-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  margin-left: -21px;
  border: 3.5px solid rgba(2, 132, 199, 0.15);
  border-top-color: #0284c7;
  border-radius: 50%;
  content: '';
  box-sizing: border-box;
  animation: loading-spin 800ms linear infinite;
  z-index: 5;
  pointer-events: none;
}
.avatar-3d-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 35%, #0c1833 0%, #060b18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.avatar-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
  touch-action: none;
}
.avatar-3d-viewport canvas:active {
  cursor: grabbing;
}
.avatar-3d-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 11, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.avatar-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(6, 11, 24, 0.90);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}
.avatar-loading-overlay.hidden {
  display: none !important;
}
.media-controls-left,
.media-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-group-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  padding: 2px;
  border-radius: 9px;
  border: 1px solid var(--dict-border);
}
.sign-cam-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--dict-text-main);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sign-cam-btn:hover {
  background: #f1f5f9;
  color: var(--dict-primary);
}
.sign-cam-btn.active {
  background: #e0f2fe;
  color: #0369a1;
}
.media-ctrl-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sign-modal-media-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--dict-border);
  border-radius: var(--dict-radius-md);
  flex-wrap: wrap;
  gap: 8px;
}
.sign-speed-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--dict-border);
  background: #ffffff;
  color: var(--dict-text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sign-speed-btn:hover {
  border-color: var(--dict-primary);
  color: var(--dict-primary);
}
.sign-speed-btn.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}
.sign-modal-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.sign-modal-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0369a1;
  margin-bottom: 6px;
}
.sign-modal-section-title.fil {
  color: var(--dict-accent-fil-text);
}
.sign-modal-block {
  background: #f8fafc;
  border: 1px solid var(--dict-border);
  border-radius: var(--dict-radius-md);
  padding: 16px;
}
.sign-modal-block h3 {
  margin: 0 0 6px;
  font-family: var(--font-display, inherit);
  font-size: 18px;
  font-weight: 700;
  color: var(--dict-text-main);
}
.sign-modal-block p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dict-text-muted);
}
.sign-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--dict-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.sign-modal-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sign-modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--dict-border);
  background: #ffffff;
  color: var(--dict-text-main);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sign-modal-nav-btn:hover:not(:disabled) {
  border-color: var(--dict-primary);
  color: var(--dict-primary);
}
.sign-modal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.sign-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sign-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--dict-radius-md);
  border: 1px solid var(--dict-border);
  background: #ffffff;
  color: var(--dict-text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sign-btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.sign-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--dict-radius-md);
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sign-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}
.dict-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--dict-radius-full);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: toastPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.dict-toast i {
  color: #38bdf8;
  font-size: 15px;
}
.dict-toast[hidden] {
  display: none !important;
}
@keyframes toastPop {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 1100px) {
  .dictionary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .dict-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
  .dict-hero-stage {
    max-width: 100%;
    height: 300px;
  }
}
@media (max-width: 800px) {
  .dictionary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sign-modal-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 580px) {
  .dictionary-main {
    width: min(100% - 24px, 1220px);
    margin: 16px auto 40px;
  }
  .dict-hero {
    padding: 20px 16px;
    border-radius: var(--dict-radius-lg);
  }
  .dict-hero h1 {
    font-size: 22px;
  }
  .dict-hero p {
    font-size: 13px;
  }
  .dict-filter-chips {
    gap: 8px;
  }
  .dict-chips-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dict-chips-group::-webkit-scrollbar {
    display: none;
  }
  .dict-chip {
    flex-shrink: 0;
  }
  .dictionary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pagination-btn span {
    display: none;
  }
  .dict-toast {
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    justify-content: center;
  }
  .sign-modal-backdrop {
    padding: 10px;
  }
  .sign-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: var(--dict-radius-lg);
  }
  .sign-modal-header {
    padding: 14px 16px;
  }
  .sign-modal-body {
    padding: 16px;
    gap: 16px;
  }
  .sign-modal-media-stage {
    height: clamp(200px, 32vh, 280px);
  }
}
@media (max-width: 360px) {
  .dictionary-main {
    width: min(100% - 16px, 1220px);
  }
  .dict-hero {
    padding: 16px 12px;
  }
  .alphabet-pill {
    min-width: 34px;
    height: 34px;
    font-size: 12px;
    padding: 0 6px;
  }
  .sign-modal-dialog,
  .sign-request-dialog,
  .cancel-request-dialog,
  .my-requests-dialog {
    max-width: calc(100vw - 12px);
    padding: 16px 12px;
  }
}
.ai-tutor-prompt-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.ai-tutor-prompt-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--dict-radius-full);
  padding: 6px 8px 6px 16px;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.12);
  transition: all var(--dict-transition-fast);
}
.ai-tutor-prompt-form:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15), 0 8px 24px rgba(2, 132, 199, 0.18);
  background: #ffffff;
}
.prompt-sparkle-icon {
  color: #0284c7;
  font-size: 16px;
  animation: pulseSparkle 2s infinite ease-in-out;
}
@keyframes pulseSparkle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; color: #38bdf8; }
}
.ai-tutor-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  min-width: 120px;
}
.ai-tutor-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}
.ai-tutor-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--dict-radius-full);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dict-transition-fast);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}
.ai-tutor-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}
.ai-tutor-send-btn:active {
  transform: translateY(0);
}
.ai-tutor-display-card {
  width: 100%;
  background: linear-gradient(145deg, #091326 0%, #050b18 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--dict-radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: 0 10px 26px -8px rgba(2, 132, 199, 0.25);
}
.tutor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.tutor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-family: var(--font-display, inherit);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.tutor-badge i {
  color: #0284c7;
  font-size: 15px;
}
.tutor-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 10px;
  border-radius: var(--dict-radius-full);
}
.tutor-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: tutorPulse 1.8s infinite;
}
@keyframes tutorPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.tutor-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tutor-sign-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--dict-radius-md);
  padding: 10px 14px;
}
.tutor-sign-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tutor-sign-en {
  font-family: var(--font-display, inherit);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}
.tutor-sign-fil {
  font-size: 12.5px;
  font-weight: 600;
  color: #38bdf8;
}
.tutor-sign-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 10px;
  border-radius: var(--dict-radius-full);
}
.tutor-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.tutor-chip {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--dict-radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color var(--dict-transition-fast);
}
.tutor-chip:hover {
  border-color: rgba(56, 189, 248, 0.35);
}
.tutor-chip-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tutor-chip-val {
  font-size: 12px;
  line-height: 1.35;
  color: #e2e8f0;
}
.tutor-notes-box {
  background: rgba(2, 132, 199, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.20);
  border-radius: var(--dict-radius-sm);
  padding: 8px 12px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #cbd5e1;
}
.tutor-notes-box strong {
  color: #38bdf8;
}
.tutor-topic-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tutor-topic-title {
  font-family: var(--font-display, inherit);
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
}
.tutor-topic-summary {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.4;
}
.tutor-topic-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.modal-ai-breakdown-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: var(--dict-radius-md);
  border: 1px solid var(--dict-border);
  margin-top: 14px;
}
.modal-ai-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.modal-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.modal-ai-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--dict-radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.modal-ai-item-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.modal-ai-item-val {
  font-size: 12px;
  color: #1e293b;
  line-height: 1.35;
}
.hero-auth-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236, 253, 245, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 4px 12px;
  border-radius: var(--dict-radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.stage-focus-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 36px 20px;
  text-align: center;
  gap: 12px;
}
.stage-icon-halo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.05) 70%);
  border: 2px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 38px;
  margin-bottom: 4px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}
.stage-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  animation: stageRingSpin 16s linear infinite;
}
.stage-ring.ring-2 {
  inset: -18px;
  border: 1px dotted rgba(56, 189, 248, 0.25);
  animation: stageRingSpin 24s linear infinite reverse;
}
@keyframes stageRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.is-paused .stage-ring {
  animation-play-state: paused;
}
.stage-sign-title {
  font-family: var(--font-display, inherit);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.stage-sign-fil {
  font-size: 15px;
  font-weight: 600;
  color: #38bdf8;
  margin-top: -8px;
}
.stage-motion-pill,
.stage-face-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--dict-radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  max-width: 90%;
  text-align: left;
}
.stage-motion-pill i {
  color: #38bdf8;
}
.stage-face-pill i {
  color: #fbbf24;
}
.stage-fsl-card {
  padding: 44px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
}
.fsl-k-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  margin-bottom: 4px;
}
.stage-fsl-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--dict-radius-md);
  padding: 8px 12px;
}
.stage-fsl-card.notes-mode .fsl-notes-lead {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stage-fsl-card.notes-mode .fsl-notes-body {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--dict-radius-md);
  padding: 10px 14px;
}
.fsl-example-box {
  margin-top: 6px;
}
.fsl-example-text {
  font-family: monospace;
  font-size: 12px;
  color: #34d399 !important;
  background: rgba(6, 78, 59, 0.3) !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}
.hero-stage-video,
.hero-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}
.hero-stage-video {
  width: auto;
  max-width: min(100%, 420px);
  margin: 0 auto;
}
.fsl-visualizer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, #0c1833 0%, #060b18 100%);
  color: #ffffff;
  overflow-y: auto;
  gap: 14px;
  justify-content: space-between;
}
.visualizer-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.visualizer-icon-box {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #38bdf8;
  flex-shrink: 0;
}
.visualizer-radar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  animation: stageRingSpin 18s linear infinite;
}
.visualizer-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.visualizer-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #34d399;
  letter-spacing: 0.5px;
}
.visualizer-sign-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.visualizer-fil-name {
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
}
.visualizer-core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.visualizer-param-tile {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--dict-radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.v-param-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.v-param-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #cbd5e1;
}
.visualizer-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.visualizer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--dict-radius-md);
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #e2e8f0;
}
.visualizer-note i {
  color: #38bdf8;
  margin-top: 2px;
}
.visualizer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v-action-btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--dict-radius-md);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}
.v-action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}
.stage-sequencer-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--dict-radius-full);
  padding: 4px 10px;
  backdrop-filter: blur(12px);
  z-index: 12;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.seq-step-pill {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--dict-radius-full);
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.seq-step-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.seq-step-pill.active {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}
.seq-step-pill .step-num {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
}
.seq-step-pill.active .step-num {
  background: #38bdf8;
  color: #0c4a6e;
  font-weight: 800;
}
.seq-step-pill .step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  display: none;
  animation: stepDotGlow 1.2s infinite ease-in-out;
}
.seq-step-pill.active .step-dot {
  display: inline-block;
}
@keyframes stepDotGlow {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}
.seq-step-line {
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.stage-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -2px;
  flex-wrap: wrap;
}
.stage-badge-audio,
.stage-audio-pill,
.card-pronounce-btn,
.tutor-audio-btn,
.modal-audio-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-badge-audio:hover,
.stage-audio-pill:hover,
.card-pronounce-btn:hover,
.tutor-audio-btn:hover,
.modal-audio-btn:hover {
  background: #38bdf8;
  color: #080f1e;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-fav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}
.modal-fav-btn:hover,
.modal-fav-btn.active {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.15);
  transform: scale(1.08);
}
.stage-phase-card {
  width: min(100% - 24px, 340px);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--dict-radius-md);
  padding: 10px 14px;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  animation: phaseFade 0.3s ease-out;
}
@keyframes phaseFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.stage-phase-card .phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #38bdf8;
  margin-bottom: 4px;
}
.stage-phase-card .phase-desc {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #f1f5f9;
}
.stage-phase-card .phase-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
.stage-phase-card.step-1 {
  border-color: rgba(14, 165, 233, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(3, 105, 161, 0.15) 100%);
}
.stage-phase-card.step-2 {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(217, 119, 6, 0.15) 100%);
}
.stage-phase-card.step-2 .phase-tag {
  color: #fbbf24;
}
.stage-quick-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.stage-dock-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--dict-radius-full);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stage-dock-act:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}
.stage-dock-act.primary {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}
.stage-dock-act.primary:hover {
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.6);
}
.stage-dock-act.active {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.15);
}
.dict-card-visual {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}
.dict-card-visual.theme-cyan {
  background: linear-gradient(135deg, #082f49 0%, #0369a1 50%, #06b6d4 100%);
}
.dict-card-visual.theme-rose {
  background: linear-gradient(135deg, #4c0519 0%, #9f1239 50%, #f43f5e 100%);
}
.dict-card-visual.theme-indigo {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #6366f1 100%);
}
.dict-card-visual.theme-amber {
  background: linear-gradient(135deg, #451a03 0%, #b45309 50%, #f59e0b 100%);
}
.dict-card-visual.theme-emerald {
  background: linear-gradient(135deg, #022c22 0%, #047857 50%, #10b981 100%);
}
.dict-card-visual.dict-card-avatar-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background: radial-gradient(circle at 50% 25%, #1e293b 0%, #0a0f1d 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  position: relative;
  overflow: hidden;
}
.dict-card-avatar-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dict-card-avatar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dict-card-avatar-canvas.is-active {
  opacity: 1;
}
.dict-card-avatar-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.dict-card-avatar-model {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.dictionary-entry:hover .dict-card-avatar-canvas,
.dictionary-entry:hover .dict-card-avatar-poster,
.dictionary-entry:hover .dict-card-avatar-model {
  transform: scale(1.05);
}
.dict-card-model-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(10, 15, 29, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 9px;
  border-radius: var(--dict-radius-full);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.3px;
}
.dict-card-model-badge i {
  font-size: 9px;
  color: #38bdf8;
}
.stage-focus-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  pointer-events: none;
  z-index: 6;
}
.stage-focus-hud .stage-title-wrap,
.stage-focus-hud .stage-quick-dock {
  pointer-events: auto;
}
.dict-card-badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.dict-card-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--dict-radius-full);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}
.dict-card-fav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.dict-card-fav-btn:hover,
.dict-card-fav-btn.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  transform: scale(1.1);
}
.dict-card-icon-halo {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.dictionary-entry:hover .dict-card-icon-halo {
  transform: scale(1.08);
}
.dict-card-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  animation: stageRingSpin 18s linear infinite;
}
.dict-card-auth-tag {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: var(--dict-radius-full);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.dict-hover-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--dict-radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.dict-hover-act-btn.preview {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.dict-hover-act-btn.preview:hover {
  background: #0369a1;
  transform: scale(1.04);
}
.dict-hover-act-btn.inspect {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.dict-hover-act-btn.inspect:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}
.dict-lang-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.dict-card-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dict-card-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--dict-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  transition: all 0.2s ease;
}
.dict-card-action-icon:hover {
  background: var(--dict-primary);
  color: #ffffff;
  transform: translateY(-1px);
}
.dictionary-entry.is-favorited {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}
.dict-header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--dict-radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.dict-header-action-btn.primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}
.dict-header-action-btn.primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
}
.dict-header-action-btn.secondary {
  background: #ffffff;
  color: var(--dict-text-main);
  border: 1.5px solid var(--dict-border);
  box-shadow: var(--dict-shadow-sm);
}
.dict-header-action-btn.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.my-requests-count-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
}
.request-modal-dialog {
  max-width: 530px !important;
  width: 92vw;
}
.request-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  max-height: 75vh;
  overflow-y: auto;
}
.request-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--dict-text-main);
  margin-bottom: 4px;
}
.request-step-badge .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dict-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.request-step-desc {
  font-size: 12.5px;
  color: var(--dict-text-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}
.request-form-group {
  margin-bottom: 14px;
}
.request-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dict-text-main);
  margin-bottom: 6px;
}
.req-star {
  color: #ef4444;
}
.request-form-input {
  width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--dict-border);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--dict-text-main);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.request-form-input:focus {
  outline: none;
  border-color: var(--dict-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.request-requirements-card {
  background: #f8fafc;
  border: 1px solid var(--dict-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.req-check-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.req-check-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dict-primary-dark);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.req-check-progress {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.req-check-progress.all-complete {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}
.req-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.req-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  padding: 3px 0;
  transition: color 0.2s;
}
.req-check-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.req-check-item i {
  color: #94a3b8;
  font-size: 13px;
  transition: color 0.2s, transform 0.2s;
}
.req-check-item.is-valid {
  color: #047857;
}
.req-check-item.is-valid i {
  color: #10b981;
  transform: scale(1.08);
}
.req-check-status-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.req-check-item.is-valid .req-check-status-tag {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.request-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.request-stage-box video,
.request-stage-box canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); 
}
.request-cam-placeholder {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.request-controls-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.request-replay-box {
  margin-top: 14px;
  background: #0f172a;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #1e293b;
}
.request-replay-box canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.dict-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  border-radius: var(--dict-radius-full);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all 0.2s;
}
.dict-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
}
.dict-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.dict-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #ffffff;
  color: var(--dict-text-main);
  border: 1.5px solid var(--dict-border);
  border-radius: var(--dict-radius-full);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.dict-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.btn-tiny {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #bae6fd;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-tiny:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn-tiny-primary {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
}
.btn-tiny-primary:hover {
  background: #0369a1;
}
.btn-tiny-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-tiny-danger:hover {
  background: #fecaca;
  color: #b91c1c;
}
.my-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.my-request-card {
  background: #ffffff;
  border: 1.5px solid var(--dict-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--dict-shadow-sm);
  transition: border-color 0.2s;
}
.my-request-card.status-pending {
  border-left: 4px solid #f59e0b;
}
.my-request-card.status-approved {
  border-left: 4px solid #10b981;
}
.my-request-card.status-rejected {
  border-left: 4px solid #ef4444;
}
.my-request-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.my-request-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.my-request-status-pill.status-pending {
  background: #fef3c7;
  color: #92400e;
}
.my-request-status-pill.status-approved {
  background: #d1fae5;
  color: #065f46;
}
.my-request-status-pill.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}
.my-request-note {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  font-size: 12px;
  color: #9f1239;
}
.req-hand-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.req-hand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: #f8fafc;
  border: 1.5px solid var(--dict-border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dict-text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.req-hand-chip i {
  font-size: 16px;
  color: #64748b;
  transition: transform 0.2s, color 0.2s;
}
.req-hand-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--dict-text-main);
}
.req-hand-chip.active {
  background: #f0f9ff;
  border-color: var(--dict-primary);
  color: var(--dict-primary-dark);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.req-hand-chip.active i {
  color: var(--dict-primary);
  transform: scale(1.1);
}
.req-hand-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}
.req-hand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.req-hand-pill.hand-right {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}
.req-hand-pill.hand-left {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.req-hand-pill.hand-both {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}
.req-no-camera-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}
.req-no-camera-toggle-wrap:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.req-no-camera-toggle-wrap.active {
  background: #fdf4ff;
  border-color: #d8b4fe;
  border-style: solid;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.08);
}
.req-no-cam-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.req-no-cam-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.req-no-cam-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.req-no-cam-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.req-no-cam-switch input:checked + .req-no-cam-slider {
  background-color: #9333ea;
}
.req-no-cam-switch input:checked + .req-no-cam-slider:before {
  transform: translateX(20px);
}
.req-no-cam-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.req-no-cam-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.req-no-camera-toggle-wrap.active .req-no-cam-title {
  color: #7e22ce;
}
.req-no-cam-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}
.req-text-only-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fdf4ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  font-size: 12px;
  color: #7e22ce;
  margin-bottom: 12px;
}
.req-text-only-banner i {
  font-size: 15px;
  color: #a855f7;
}
.request-studio-col.text-only-mode .request-stage-box,
.request-studio-col.text-only-mode .recorder-progress-wrap,
.request-studio-col.text-only-mode .request-controls-row,
.request-studio-col.text-only-mode .request-replay-box,
.request-studio-col.text-only-mode .req-studio-status-row {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.6);
  user-select: none;
}
.req-check-status-tag.status-skipped {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}
.req-check-item.is-skipped {
  border-color: #e2e8f0;
  background: #f8fafc;
  opacity: 0.85;
}
.req-check-item.is-skipped i {
  color: #94a3b8;
}
.req-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.req-type-pill.text-only {
  background: #fdf4ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}
.req-type-pill.gesture-sample {
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.req-guidance-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.req-guidance-title {
  font-size: 12px;
  font-weight: 800;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.req-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 600px) {
  .req-guidance-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.req-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dcfce7;
}
.req-guide-icon {
  font-size: 14px;
  line-height: 1.2;
}
.req-guide-item strong {
  display: block;
  font-size: 11.5px;
  color: #14532d;
}
.req-guide-item p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #4b5563;
  line-height: 1.3;
}
.request-success-view {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 14px;
  max-height: 88vh;
  overflow-y: auto;
  animation: successModalCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.request-success-view[hidden] {
  display: none !important;
}
@keyframes successModalCardIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.request-success-confetti-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.request-success-confetti-wrap canvas {
  width: 100%;
  height: 100%;
}
.request-success-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.request-success-icon-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.success-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(56, 189, 248, 0) 70%);
  animation: successPulseRing 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes successPulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0.25; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.success-icon-circle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 24px -5px rgba(16, 185, 129, 0.55), 0 0 18px rgba(56, 189, 248, 0.35);
  animation: successIconPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes successIconPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.success-sparkle {
  position: absolute;
  color: #38bdf8;
  font-size: 13px;
  animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}
.success-sparkle.s1 {
  top: 1px;
  right: -3px;
  font-size: 14px;
  color: #f59e0b;
}
.success-sparkle.s2 {
  bottom: 4px;
  left: -2px;
  font-size: 12px;
  color: #38bdf8;
  animation-delay: 0.6s;
}
@keyframes sparkleTwinkle {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.4; }
  100% { transform: scale(1.25) rotate(20deg); opacity: 1; }
}
.request-success-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.request-success-subtitle {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  max-width: 390px;
}
.request-success-card {
  position: relative;
  z-index: 2;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.request-success-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.request-success-badge-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.request-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.request-summary-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.request-summary-item.main-item {
  grid-column: 1 / -1;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}
.summary-value.english {
  font-size: 17px;
  font-weight: 800;
  color: #0284c7;
}
.summary-value.filipino {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.summary-value.note {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.35;
}
.request-timeline-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
}
.request-timeline-card .timeline-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.request-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}
.request-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.step-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}
.timeline-step.step-done .step-marker {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.timeline-step.step-current .step-marker {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}
.timeline-step.step-upcoming .step-marker {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #94a3b8;
}
.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step-text strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}
.step-text span {
  font-size: 10px;
  color: #64748b;
  line-height: 1.25;
  max-width: 110px;
}
.request-success-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.request-success-footer .dict-btn-primary,
.request-success-footer .dict-btn-secondary {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .request-summary-grid {
    grid-template-columns: 1fr;
  }
  .request-timeline::before {
    left: 16px;
    right: 16px;
  }
  .step-text span {
    max-width: 85px;
  }
  .request-success-footer {
    justify-content: stretch;
  }
  .request-success-footer button {
    flex: 1 1 100%;
    justify-content: center;
  }
}
.request-success-view .sign-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}
.req-category-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.req-category-badge.fooddrink,
.req-category-badge.food_drink {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}
.req-category-badge.greetings {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
.req-category-badge.emotions {
  background: #fce7f3;
  color: #be185d;
  border-color: #fbcfe8;
}
.req-category-badge.family {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}
.req-category-badge.emergency {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}
.req-category-badge.actions {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}
.req-category-badge.school {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fed7aa;
}
.dict-confirm-backdrop {
  z-index: 1200 !important;
}
.dict-confirm-dialog {
  max-width: 440px !important;
  width: 90vw;
  padding: 24px 22px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(2, 132, 199, 0.15);
}
.dict-confirm-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.confirm-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0) 70%);
  animation: confirmPulseRing 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes confirmPulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0.25; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.confirm-icon-circle {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  animation: confirmIconPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes confirmIconPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.confirm-icon-circle.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 24px -5px rgba(239, 68, 68, 0.5), 0 0 16px rgba(248, 113, 113, 0.35);
}
.confirm-icon-circle.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 24px -5px rgba(245, 158, 11, 0.5), 0 0 16px rgba(251, 191, 36, 0.35);
}
.confirm-icon-circle.info {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 10px 24px -5px rgba(2, 132, 199, 0.5), 0 0 16px rgba(56, 189, 248, 0.35);
}
.dict-confirm-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.dict-confirm-message {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  max-width: 360px;
}
.dict-confirm-message strong {
  color: #0f172a;
}
.dict-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}
.dict-confirm-actions button {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13.5px;
}
.dict-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--dict-radius-md, 10px);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.dict-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}
.cancel-modal-backdrop {
  z-index: 1250 !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.cancel-modal-dialog {
  max-width: 480px !important;
  width: 92vw;
  padding: 26px 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(239, 68, 68, 0.12);
  animation: cancelDialogEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cancelDialogEntrance {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cancel-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cancel-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.cancel-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0) 70%);
  animation: confirmPulseRing 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.cancel-icon-circle {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 24px -5px rgba(239, 68, 68, 0.5), 0 0 16px rgba(248, 113, 113, 0.35);
  animation: confirmIconPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.cancel-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 3px 10px;
  border-radius: 999px;
}
.cancel-modal-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.cancel-modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  max-width: 380px;
}
.cancel-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cancel-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cancel-preview-word-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cancel-preview-word {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.cancel-preview-tagalog {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.cancel-preview-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.cancel-preview-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  flex-wrap: wrap;
}
.cancel-meta-bullet {
  color: #cbd5e1;
}
.cancel-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cancel-preview-note {
  margin: 0;
  font-size: 12px;
  color: #475569;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}
.cancel-consequences-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}
.consequences-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.consequences-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consequence-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.consequence-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10.5px;
}
.consequence-icon.remove {
  background: #fef2f2;
  color: #ef4444;
}
.consequence-icon.clear {
  background: #eef2ff;
  color: #6366f1;
}
.consequence-icon.resubmit {
  background: #f0fdf4;
  color: #10b981;
}
.consequence-text strong {
  color: #1e293b;
  display: block;
}
.consequence-text span {
  color: #64748b;
  font-size: 11.5px;
}
.cancel-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.cancel-modal-actions button {
  flex: 1;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  justify-content: center;
  border-radius: 12px;
}
.cancel-action-keep {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}
.cancel-action-keep:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
.cancel-action-confirm {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}
.cancel-action-confirm:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4) !important;
}
.my-request-card.removing {
  transform: scale(0.94);
  opacity: 0;
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dict-floating-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dict-floating-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dict-floating-toast.hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.dict-floating-toast .toast-icon-wrap {
  color: #10b981;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.5;
  color: var(--dict-text-muted);
  border-top: 1px dashed var(--dict-border);
  padding-top: 10px;
}
.dict-card-def-row {
  margin-bottom: 6px;
}
.dict-card-def-row:last-child {
  margin-bottom: 0;
}
.dict-card-def-label {
  font-weight: 700;
  color: var(--dict-text-main);
  display: inline-block;
  margin-right: 4px;
  font-style: italic;
}
.dict-card-def-fil .dict-card-def-label {
  color: var(--dict-primary);
}
.dict-card-def-eng .dict-card-def-label {
  color: var(--dict-accent-fil-text);
}

/* Modern Dictionary Definitions UI */
.dict-card-definitions {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dict-card-def-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dict-card-def-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 5px;
  line-height: 1.3;
}
.dict-card-def-tag.fil {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
.dict-card-def-tag.en {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.dict-card-def-text {
  color: #334155;
}
