@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Roboto:wght@400;500&display=swap');

@font-face {
  font-family: 'EBAS Medium';
  src: url('../fonts/EBAS Medium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --fc-bg: #050608;
  --fc-surface: rgba(12, 14, 19, 0.82);
  --fc-surface-strong: rgba(18, 21, 28, 0.92);
  --fc-line: rgba(255, 255, 255, 0.08);
  --fc-line-strong: rgba(255, 255, 255, 0.14);
  --fc-text: #f4f4f1;
  --fc-text-muted: rgba(244, 244, 241, 0.68);
  --fc-text-soft: rgba(244, 244, 241, 0.42);
  --fc-red: #9e1f1f;
  --fc-green: #1d7d47;
  --fc-red-soft: rgba(147, 32, 32, 0.82);
  --fc-green-soft: rgba(22, 110, 58, 0.82);
  --fc-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --fc-radius-xl: 32px;
  --fc-radius-lg: 24px;
  --fc-radius-md: 16px;
  --fc-radius-pill: 999px;
  --fc-page-width: 1240px;
  --fc-study-width: 960px;
  --fc-card-height: clamp(440px, calc(100svh - 210px), 660px);
  --fc-font-ui:
    'Space Grotesk',
    'Inter',
    system-ui,
    sans-serif;
  --fc-font-mono:
    'IBM Plex Mono',
    'SFMono-Regular',
    'SF Mono',
    'Roboto Mono',
    monospace;
  --fc-font-hanzi:
    'Noto Sans SC',
    'PingFang TC',
    'Microsoft JhengHei',
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--fc-bg);
  color: var(--fc-text);
  font-family: var(--fc-font-ui);
}

body {
  overflow-x: hidden;
}

button,
select {
  font: inherit;
}

button {
  color: inherit;
}

.fc-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fc-background__grid,
.fc-background__glow,
.fc-background__vignette {
  position: absolute;
  inset: 0;
}

.fc-background__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
  opacity: 0.45;
}

.fc-background__glow--left {
  background: radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.08), transparent 28%);
}

.fc-background__glow--right {
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.05), transparent 24%);
}

.fc-background__vignette {
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
}

body[data-fc-background-mode='stage'] .fc-background {
  display: none;
}

.fc-app {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 28px;
}

.fc-shell {
  width: min(100%, var(--fc-page-width));
  margin: 0 auto;
}

.fc-panel {
  border: 1px solid var(--fc-line);
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.92), rgba(9, 10, 14, 0.96));
  box-shadow: var(--fc-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.fc-chip,
.fc-icon-btn,
.fc-select,
.fc-action-btn,
.fc-utility-btn,
.fc-auth-btn,
.fc-page-btn,
.fc-pill {
  border: 1px solid var(--fc-line);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    filter 0.16s ease;
}

.fc-chip:hover,
.fc-icon-btn:hover,
.fc-action-btn:hover,
.fc-utility-btn:hover,
.fc-auth-btn:hover,
.fc-page-btn:hover {
  transform: translateY(-1px);
  border-color: var(--fc-line-strong);
}

.fc-selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fc-line);
}

.fc-selection-header__left,
.fc-selection-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fc-selection-header__left {
  flex: 1 1 auto;
}

.fc-selection-header__left--website {
  gap: 18px;
}

.fc-selection-header__left--page {
  gap: 14px;
  flex: 0 0 auto;
}

.fc-selection-header__copy .fc-kicker {
  margin-bottom: 0;
}

.fc-selection-header__right--website {
  gap: 16px;
}

.fc-selection-header__right--page {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.fc-selection-header__divider {
  width: 1px;
  height: 14px;
  background: var(--fc-line);
}

.fc-selection-header__back {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fc-text-muted);
  cursor: pointer;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

.fc-selection-header__back svg {
  width: 14px;
  height: 14px;
}

.fc-selection-header__back:hover {
  color: var(--fc-text);
  transform: translateX(-1px);
}

.fc-auth-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--fc-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.fc-main {
  width: min(100%, var(--fc-page-width));
  margin: 28px auto 0;
}

.fc-center-stage {
  min-height: calc(100svh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-auth-stage {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.fc-auth-stage > :not(.pattern):not(.vignette) {
  position: relative;
  z-index: 2;
}

.pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.pattern__char {
  position: absolute;
  left: var(--base-x);
  top: var(--base-y);
  font-family: 'EBAS Medium', 'IBM Plex Mono', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  transform: translate3d(
    calc(-50% + var(--mx, 0px)),
    calc(-50% + var(--my, 0px)),
    var(--mz, -180px)
  );
  color: rgba(255, 255, 255, 0.25);
  opacity: var(--opacity, 0.25);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  will-change: transform, opacity;
  text-rendering: optimizeLegibility;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    80% 60% at 50% 50%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

.fc-auth-stage .vignette {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      78% 62% at 50% 46%,
      rgba(0, 0, 0, 0) 18%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.34) 0%,
      rgba(0, 0, 0, 0.16) 18%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

.fc-empty-state,
.fc-signin-state {
  width: min(100%, 560px);
  padding: 40px;
  border-radius: var(--fc-radius-xl);
  text-align: center;
}

.signin-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
  min-height: calc(100vh - 4rem);
}

.signin-card {
  width: 100%;
  min-height: 320px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  position: relative;
  overflow: clip;
  z-index: 0;
  border: 1px solid #1f1f1f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0))
      padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0))
      border-box;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: #fff;
  font-family: 'Arimo', sans-serif;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.signin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid #2a2a2a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.03);
}

.signin-card::after {
  content: none;
}

.signin-card:hover {
  transform: translateY(-1px);
  border-color: #333;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
}

.signin-card > * {
  position: relative;
  z-index: 1;
}

.fc-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fc-text-soft);
  font-family: var(--fc-font-mono);
}

.fc-empty-state h1,
.fc-signin-state h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.signin-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
}

.fc-empty-state p,
.fc-signin-state p {
  margin: 0;
  color: var(--fc-text-muted);
  line-height: 1.6;
}

.signin-card > p {
  margin: 0 0 1.5rem;
  color: #b9b9b9;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.6;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: rgb(255 255 255 / 100%);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
  margin: 0 auto 2rem auto;
  display: block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
}

.gsi-material-button:disabled .gsi-material-button-contents,
.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #001d35;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #001d35;
  opacity: 8%;
}

.privacy-note {
  margin: 0;
  color: #b9b9b9;
  font-size: 12.5px;
  line-height: 1.5;
}

.signin-card a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 2px;
  margin: 0;
}

.privacy-link {
  color: #fff;
  text-decoration: none;
}

.signin-card a:hover {
  border-color: #fff;
}

.privacy-link:hover {
  text-decoration: none;
}

.signin-card--loading-hosted {
  justify-content: center;
  min-height: 320px;
}

.signin-card--loading-hosted .fc-kicker {
  margin-bottom: 10px;
}

.signin-card--loading-hosted h3 {
  margin-bottom: 0.9rem;
}

.signin-card--loading-hosted > p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .signin-card,
  .signin-card:hover {
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .signin-content {
    max-width: 100%;
    padding: 20px;
  }

  .signin-card {
    padding: 25px;
    min-height: 280px;
  }

  .signin-card h3 {
    font-size: 1.5rem;
  }

  .signin-card > p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .gsi-material-button {
    font-size: 14px;
    height: 40px;
    max-width: 400px;
    width: auto;
  }
}

.fc-selection-view,
.fc-page-view,
.fc-deck-view {
  display: grid;
  gap: 24px;
}

.fc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.fc-section-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.fc-section-head p {
  margin: 10px 0 0;
  color: var(--fc-text-muted);
}

.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.fc-site-card,
.fc-page-card,
.fc-complete-card,
.fc-feature-card,
.fc-focus-banner,
.fc-inline-empty {
  border-radius: 24px 14px 24px 14px;
  padding: 24px;
}

.fc-stat-box {
  min-height: 94px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--fc-line);
  background: rgba(255, 255, 255, 0.03);
}

.fc-stat-box__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fc-text-soft);
}

.fc-stat-box__value {
  display: block;
  margin-top: 12px;
  font-size: 1.8rem;
  font-weight: 700;
}

.fc-progress-track {
  margin-top: 14px;
  height: 8px;
  border-radius: var(--fc-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.fc-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(63, 186, 110, 0.9), rgba(124, 234, 166, 0.82));
}

.fc-auth-btn--primary,
.fc-page-cta {
  border: 1px solid var(--fc-line);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.fc-auth-btn--light {
  border-color: var(--fc-line);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.fc-pill--ghost {
  background: rgba(255, 255, 255, 0.02);
  border: none;
  color: rgba(244, 244, 241, 0.72);
}

.fc-list,
.fc-feature-stack {
  display: grid;
  gap: 12px;
}

.fc-feature-stack {
  position: relative;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px 18px 28px 18px;
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.95), rgba(12, 14, 19, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 56px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.fc-feature-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 32%);
  pointer-events: none;
}

.fc-feature-stack > * {
  position: relative;
  z-index: 1;
}

.fc-selection-toolbar__stats,
.fc-feature-row__actions,
.fc-page-row__modes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--fc-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(244, 244, 241, 0.9);
  font-size: 0.82rem;
}

.fc-meta-pill__label {
  color: var(--fc-text-soft);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--fc-font-mono);
}

.fc-meta-pill strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.fc-feature-row,
.fc-site-row,
.fc-focus-row,
.fc-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fc-line);
}

.fc-feature-stack .fc-feature-row {
  gap: 22px;
  padding: 18px 0;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.fc-feature-stack .fc-feature-row__copy {
  display: grid;
  gap: 8px;
}

.fc-feature-stack .fc-feature-row__copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 0.96;
}

.fc-feature-stack .fc-feature-card__detail {
  font-size: 1rem;
  color: rgba(244, 244, 241, 0.84);
}

.fc-feature-stack .fc-feature-card__kicker {
  color: rgba(244, 244, 241, 0.54);
}

.fc-feature-stack .fc-feature-row__actions {
  gap: 12px;
}

.fc-feature-stack .fc-feature-row__copy h2 {
  color: var(--fc-text);
}

.fc-feature-stack .fc-pill--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 241, 0.72);
}

.fc-feature-stack .fc-auth-btn--light {
  border-color: rgba(255, 255, 255, 0.82);
  background: #f4f4f1;
  color: #050608;
}

.fc-feature-stack .fc-auth-btn--light:hover {
  border-color: #fff;
  background: #fff;
}

.fc-feature-stack .fc-feature-row--current {
  padding-bottom: 22px;
}

.fc-feature-stack .fc-feature-row--current .fc-feature-row__copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.fc-feature-row:first-child,
.fc-focus-row:first-child {
  padding-top: 0;
}

.fc-feature-row:last-child,
.fc-focus-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.fc-feature-row__copy,
.fc-site-row__main,
.fc-focus-row__copy {
  min-width: 0;
}

.fc-site-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: 24px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 14px 24px 14px;
  border-bottom: none;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.fc-site-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), transparent 18%);
  pointer-events: none;
}

.fc-site-row > * {
  position: relative;
  z-index: 1;
}

.fc-site-row__main {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.fc-feature-row__copy h2,
.fc-focus-row__copy h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.02;
}

.fc-feature-row__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.fc-site-row__heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.fc-site-row__copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 4px;
}

.fc-site-row__topline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.fc-site-row__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(244, 244, 241, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--fc-font-mono);
}

.fc-site-row__copy .fc-site-card__title {
  margin: 0;
  font-family: var(--fc-font-ui);
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.fc-site-row__signal {
  margin: 0;
  color: rgba(244, 244, 241, 0.96);
  font-family: var(--fc-font-ui);
  font-size: clamp(1.34rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.fc-site-row__copy .fc-site-card__meta,
.fc-site-row__timeline {
  font-family: var(--fc-font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.fc-site-row__copy .fc-site-card__meta {
  margin: 2px 0 0;
  color: rgba(244, 244, 241, 0.62);
}

.fc-site-row__timeline {
  margin: 0;
  color: rgba(244, 244, 241, 0.5);
}

.fc-site-row__rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.fc-site-row__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fc-site-row__stats .fc-stat-box {
  min-height: 0;
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, 0.015);
}

.fc-site-row__stats .fc-stat-box__value {
  margin-top: 8px;
  font-size: 1.45rem;
}

.fc-focus-row__copy,
.fc-page-row__headline,
.fc-page-row__main {
  display: grid;
  gap: 16px;
}

.fc-page-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  grid-template-areas:
    'headline rail';
  align-items: start;
  gap: 18px 22px;
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 14px 24px 14px;
  border-bottom: none;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.fc-page-row.is-matched {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    transparent;
}

.fc-page-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), transparent 18%);
  pointer-events: none;
}

.fc-page-row > * {
  position: relative;
  z-index: 1;
}

.fc-page-row__headline {
  grid-area: headline;
  min-width: 0;
  gap: 12px;
}

.fc-page-row__rail {
  grid-area: rail;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.fc-site-row__rail .fc-auth-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.fc-page-row__actions {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 460px;
}

.fc-page-card__header {
  display: grid;
  gap: 8px;
}

.fc-page-card__title {
  margin: 0;
  font-family: var(--fc-font-hanzi);
  font-size: clamp(1.55rem, 2.6vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: min(100%, 26ch);
}

.fc-page-card__subtitle {
  margin: 0;
  max-width: min(100%, 32rem);
  color: rgba(244, 244, 241, 0.58);
  font-size: clamp(0.88rem, 1.35vw, 1rem);
  line-height: 1.38;
  letter-spacing: 0.01em;
}

.fc-page-card__badge {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.fc-search {
  min-width: min(100%, 320px);
}

.fc-search__input {
  width: min(100%, 320px);
  min-height: 40px;
  border-radius: var(--fc-radius-pill);
  background: rgba(255, 255, 255, 0.025);
}

.fc-page-word-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--fc-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(244, 244, 241, 0.94);
  font-size: 0.94rem;
  cursor: pointer;
}

.fc-page-word-chip:hover:not(:disabled) {
  border-color: var(--fc-line-strong);
}

.fc-page-word-chip:disabled {
  opacity: 0.45;
  cursor: default;
}

.fc-site-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.fc-selection-rack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, auto);
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
}

.fc-selection-rack::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 22%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 54px,
      rgba(255, 255, 255, 0.02) 54px,
      rgba(255, 255, 255, 0.02) 55px
    );
  pointer-events: none;
}

.fc-selection-rack__lead,
.fc-selection-rack__stats {
  position: relative;
  z-index: 1;
}

.fc-selection-rack__lead {
  display: grid;
  gap: 10px;
}

.fc-selection-rack__signal {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.fc-selection-rack__title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--fc-font-mono);
}

.fc-selection-rack__code {
  margin: 0;
  color: var(--fc-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--fc-font-mono);
}

.fc-selection-rack__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fc-selection-rack__stats .fc-stat-box {
  min-height: 0;
  background: rgba(255, 255, 255, 0.018);
}

.fc-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.fc-feature-card {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 17, 24, 0.95), rgba(7, 9, 14, 0.98)),
    linear-gradient(90deg, rgba(31, 54, 94, 0.08), transparent 32%);
}

.fc-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(90deg, transparent 0 72%, rgba(255, 255, 255, 0.04) 72%, transparent 73%);
  pointer-events: none;
}

.fc-feature-card::after,
.fc-site-card::after,
.fc-page-card::after,
.fc-focus-banner::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 18px 8px 18px 8px;
  pointer-events: none;
}

.fc-feature-card--current {
  border-color: rgba(90, 120, 176, 0.32);
  background:
    linear-gradient(180deg, rgba(14, 17, 24, 0.95), rgba(7, 9, 14, 0.98)),
    linear-gradient(90deg, rgba(38, 84, 168, 0.14), transparent 36%);
}

.fc-feature-card__kicker,
.fc-site-card__eyebrow,
.fc-page-card__eyebrow,
.fc-focus-banner__kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fc-text-soft);
  font-weight: 700;
  font-family: var(--fc-font-mono);
}

.fc-feature-card h2,
.fc-focus-banner h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 0.98;
}

.fc-feature-card__detail,
.fc-focus-banner__detail {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(244, 244, 241, 0.86);
  line-height: 1.5;
}

.fc-feature-card p,
.fc-focus-banner p,
.fc-inline-empty p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--fc-text-muted);
  line-height: 1.6;
}

.fc-feature-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fc-site-card {
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 17, 24, 0.96), rgba(7, 9, 14, 0.99)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 42%);
}

.fc-site-card::before,
.fc-page-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.022), transparent 18%),
    linear-gradient(180deg, transparent 0 82%, rgba(255, 255, 255, 0.03) 82%, transparent 83%);
  pointer-events: none;
}

.fc-site-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.fc-page-card__header {
  position: relative;
  z-index: 1;
}

.fc-site-card__copy {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
}

.fc-site-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.08;
}

.fc-site-card__meta,
.fc-page-card__meta {
  margin: 0;
  color: var(--fc-text-muted);
  font-size: 0.92rem;
}

.fc-site-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 60%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.fc-site-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: none;
}

.fc-site-logo--mono {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--fc-font-mono);
}

.fc-site-card__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fc-site-card__stats .fc-stat-box {
  min-height: 0;
  padding: 14px 12px;
}

.fc-site-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.fc-site-card__signal {
  display: grid;
  gap: 4px;
  max-width: min(100%, 28rem);
}

.fc-site-card__signal-label {
  color: var(--fc-text-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fc-site-card__signal strong {
  font-size: 1rem;
  line-height: 1.35;
}

.fc-site-card__signal span:last-child {
  color: var(--fc-text-muted);
  font-size: 0.88rem;
}

.fc-page-hero {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.fc-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 18%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.018) 60px,
      rgba(255, 255, 255, 0.018) 61px
    );
  pointer-events: none;
}

.fc-page-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fc-search {
  display: grid;
  gap: 8px;
  min-width: min(100%, 360px);
}

.fc-search--page {
  gap: 0;
  flex: 0 1 340px;
  min-width: 260px;
}

.fc-search__label {
  color: var(--fc-text-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fc-search__input {
  width: min(100%, 360px);
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.84), rgba(10, 12, 16, 0.94));
  color: var(--fc-text);
  outline: none;
}

.fc-search--page .fc-search__input {
  width: 100%;
  min-height: 42px;
}

.fc-search__input::placeholder {
  color: rgba(244, 244, 241, 0.42);
}

.fc-search__input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.fc-focus-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 17, 24, 0.96), rgba(7, 9, 14, 0.99)),
    linear-gradient(90deg, rgba(38, 84, 168, 0.12), transparent 42%);
}

.fc-focus-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(90deg, transparent 0 78%, rgba(255, 255, 255, 0.04) 78%, transparent 79%);
  pointer-events: none;
}

.fc-page-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.fc-page-card {
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 17, 24, 0.96), rgba(7, 9, 14, 0.99)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 36%);
}

.fc-page-card.is-matched {
  border-color: rgba(90, 120, 176, 0.32);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.fc-page-card__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fc-page-card__badge {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--fc-font-mono);
}

.fc-page-card__title {
  display: block;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.fc-page-progress {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  max-width: 100%;
}

.fc-page-progress__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.fc-page-progress__copy {
  display: grid;
  gap: 6px;
}

.fc-page-progress__label,
.fc-page-row__actions-label {
  margin: 0;
  color: rgba(244, 244, 241, 0.46);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--fc-font-mono);
}

.fc-page-progress__detail {
  margin: 0;
  color: rgba(244, 244, 241, 0.72);
  font-size: 0.76rem;
  line-height: 1.35;
}

.fc-page-progress__value {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.fc-progress-track--page {
  margin-top: 0;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.fc-progress-fill--page {
  background: linear-gradient(90deg, rgba(244, 244, 241, 0.94), rgba(168, 227, 193, 0.9));
}

.fc-page-progress__recent {
  display: grid;
  gap: 6px;
  max-width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.fc-page-row__section-title {
  margin: 0;
  color: rgba(244, 244, 241, 0.46);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--fc-font-mono);
}

.fc-page-row__empty {
  margin: 0;
  color: rgba(244, 244, 241, 0.56);
  font-family: var(--fc-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.fc-page-card__preview {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-page-word-chip {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 244, 241, 0.9);
  font-family: var(--fc-font-hanzi);
  font-size: 0.82rem;
}

.fc-page-cta {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}

.fc-page-cta:hover {
  transform: translateY(-1px);
  border-color: var(--fc-line-strong);
}

.fc-page-cta span,
.fc-page-cta strong {
  font-weight: 700;
}

.fc-page-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fc-page-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}

.fc-page-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--fc-line-strong);
}

.fc-page-chip span {
  color: rgba(244, 244, 241, 0.68);
  font-family: var(--fc-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fc-page-chip strong {
  color: rgba(244, 244, 241, 0.92);
  font-size: 0.92rem;
}

.fc-page-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fc-page-chip.is-recommended {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.fc-page-chip.is-recommended span,
.fc-page-chip.is-recommended strong {
  color: rgba(244, 244, 241, 0.98);
}

.fc-page-row__modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 460px;
}

.fc-inline-empty {
  display: grid;
  gap: 10px;
}

.fc-inline-empty h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.08;
}

.fc-study-view {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 0 0;
}

.fc-study-shell {
  width: min(100%, var(--fc-study-width));
  position: relative;
  height: var(--fc-study-shell-height, calc(100svh - 36px));
  min-height: var(--fc-study-shell-height, calc(100svh - 36px));
}

.fc-study-shell > * {
  min-width: 0;
}

.fc-study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fc-line);
  min-width: 0;
}

.fc-study-header__left,
.fc-study-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fc-study-header__left {
  flex: 1 1 auto;
}

.fc-study-header__right {
  flex: 0 0 auto;
}

.fc-study-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-study-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.fc-study-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.96rem;
  font-weight: 700;
}

.fc-icon-btn,
.fc-utility-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fc-select,
.fc-pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
}

.fc-select {
  min-width: 132px;
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-text);
  border-color: rgba(255, 255, 255, 0.12);
  font-family: var(--fc-font-mono);
  box-shadow: none;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.5L6 8.25L9.75 4.5' stroke='rgba(244,244,241,0.82)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 14px center;
  background-size: auto, 12px 12px;
}

.fc-select:hover,
.fc-select:focus-visible {
  border-color: var(--fc-line-strong);
}

.fc-select:focus-visible {
  outline: 2px solid rgba(92, 142, 255, 0.34);
  outline-offset: 2px;
}

.fc-select option {
  color: var(--fc-text);
  background: #0f1219;
}

.fc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fc-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fc-study-body {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--fc-study-header-height, 72px);
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.fc-study-stack {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
}

.fc-study-stage {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.fc-study-card-row {
  display: block;
  width: 100%;
  min-width: 0;
}

.fc-score {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 2px 16px 4px;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  background:
    linear-gradient(180deg, rgba(16, 19, 25, 0.96), rgba(10, 12, 16, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.18);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fc-score::before {
  content: '';
  position: absolute;
  top: 0;
  left: -18px;
  right: -18px;
  height: 2px;
  background: linear-gradient(180deg, rgba(16, 19, 25, 0.96), rgba(10, 12, 16, 0.99));
}

.fc-score__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fc-score__item--bad {
  color: rgba(235, 161, 161, 0.92);
  text-shadow: 0 0 18px rgba(117, 39, 45, 0.14);
}

.fc-score__item--good {
  color: rgba(149, 222, 175, 0.92);
  text-shadow: 0 0 18px rgba(35, 89, 56, 0.14);
}

.fc-score__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.fc-card-shell {
  position: relative;
  width: 100%;
  height: var(--fc-card-height);
  min-width: 0;
  border-radius: 30px;
  perspective: 1200px;
  cursor: pointer;
  transform-origin: center center;
}

.fc-card-shell.is-deal-in {
  animation: fc-card-enter 420ms cubic-bezier(0.18, 0.88, 0.24, 1);
}

.fc-card-shell.is-deal-in .fc-card {
  animation: fc-card-deal-in 420ms cubic-bezier(0.18, 0.88, 0.24, 1);
}

.fc-card-shell.is-direction-flip .fc-card {
  animation: fc-card-direction-flip 340ms cubic-bezier(0.24, 0.82, 0.3, 1);
}

.fc-card-shell.is-swipe-left,
.fc-card-shell.is-swipe-right {
  pointer-events: none;
}

.fc-card-shell.is-swipe-left {
  animation: fc-card-swipe-left 220ms cubic-bezier(0.3, 0.1, 0.7, 1) forwards;
}

.fc-card-shell.is-swipe-right {
  animation: fc-card-swipe-right 220ms cubic-bezier(0.3, 0.1, 0.7, 1) forwards;
}

.fc-card-utilities {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-card.is-flipped {
  transform: rotateY(180deg);
}

.fc-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.97), rgba(9, 11, 15, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 32px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fc-card-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.028), transparent 22%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.014), transparent 62%);
  pointer-events: none;
}

.fc-card-face--back {
  transform: rotateY(180deg);
}

.fc-card-audio-slot {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

.fc-card-audio {
  position: static;
}

.fc-card-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 52px 56px 64px;
}

.fc-card-face--back .fc-card-inner {
  align-items: stretch;
}

.fc-card-label {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fc-text-soft);
}

.fc-card-word {
  margin: 0;
  text-align: center;
  font-family: var(--fc-font-hanzi);
  font-size: clamp(4.4rem, 8vw, 6.8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.fc-card-meaning {
  display: grid;
  gap: 16px;
  width: min(100%, 560px);
  margin: 0 auto;
}

.fc-card-copy {
  width: min(100%, 640px);
  margin: 0 auto;
}

.fc-definition-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(244, 244, 241, 0.84);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.42;
}

.fc-definition-list--large {
  font-size: clamp(1.65rem, 2.35vw, 2.2rem);
  line-height: 1.34;
}

.fc-definition-list--medium {
  font-size: clamp(1.35rem, 1.95vw, 1.72rem);
  line-height: 1.4;
}

.fc-definition-list--small {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.52;
}

.fc-definition-list li + li {
  margin-top: 0.7rem;
}

.fc-context-panel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.fc-context-panel__label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fc-text-soft);
}

.fc-context-panel__text {
  margin: 0;
  text-align: left;
  font-size: clamp(1.6rem, 2.55vw, 2.35rem);
  line-height: 1.62;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.96);
}

.fc-context-panel__text--large {
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.48;
}

.fc-context-panel__text--medium {
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  line-height: 1.54;
}

.fc-context-panel__text--small {
  font-size: clamp(1.45rem, 2.05vw, 1.88rem);
  line-height: 1.62;
}

.fc-context-panel__translation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: 18px;
}

.fc-context-panel__translation:not(.is-visible) {
  grid-template-columns: auto;
}

.fc-context-panel__toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 244, 241, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.fc-context-panel__toggle:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 244, 241, 0.94);
}

.fc-context-panel__translation-text {
  margin: 1px 0 0;
  color: rgba(244, 244, 241, 0.62);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.65;
  white-space: pre-wrap;
}

.fc-context-word {
  color: #66a8ff;
  font-weight: 700;
}

.fc-study-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.fc-study-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.fc-action-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 20, 27, 0.94), rgba(11, 13, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease;
}

.fc-action-btn--bad {
  border-color: rgba(168, 78, 78, 0.22);
  background:
    linear-gradient(180deg, rgba(62, 23, 27, 0.16), rgba(62, 23, 27, 0.05)),
    linear-gradient(180deg, rgba(17, 19, 24, 0.94), rgba(10, 11, 15, 0.98));
}

.fc-action-btn--good {
  border-color: rgba(77, 141, 101, 0.22);
  background:
    linear-gradient(180deg, rgba(23, 59, 39, 0.16), rgba(23, 59, 39, 0.05)),
    linear-gradient(180deg, rgba(17, 19, 24, 0.94), rgba(10, 11, 15, 0.98));
}

.fc-action-btn:hover,
.fc-action-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.fc-action-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.fc-action-btn__label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fc-study-utilities {
  display: contents;
}

.fc-utility-btn[data-tooltip] {
  position: relative;
}

.fc-utility-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 20, 0.94);
  color: rgba(244, 244, 241, 0.92);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.fc-utility-btn[data-tooltip]:hover::after,
.fc-utility-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.fc-utility-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.fc-complete-view {
  min-height: calc(100svh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-complete-card {
  width: min(100%, 640px);
  display: grid;
  gap: 20px;
}

.fc-complete-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.fc-complete-card p {
  margin: 0;
  color: var(--fc-text-muted);
  line-height: 1.55;
}

.fc-complete-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fc-complete-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.fc-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--fc-line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.fc-button--primary {
  background: rgba(255, 255, 255, 0.1);
}

.fc-inline-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

svg {
  display: block;
}

@keyframes fc-card-enter {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.968);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fc-card-deal-in {
  0% {
    opacity: 0.18;
    transform: rotateX(10deg) rotateY(-18deg) scale(0.982);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

@keyframes fc-card-direction-flip {
  0% {
    transform: rotateY(-22deg) scale(0.99);
    opacity: 0.74;
  }

  55% {
    transform: rotateY(-8deg) scale(0.996);
    opacity: 0.9;
  }

  100% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes fc-card-swipe-left {
  0% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-92px) rotate(-7deg) scale(0.982);
  }
}

@keyframes fc-card-swipe-right {
  0% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(92px) rotate(7deg) scale(0.982);
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .fc-app {
    padding: 18px;
  }

  .fc-site-row {
    grid-template-columns: 1fr;
  }

  .fc-page-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      'headline'
      'rail';
    gap: 16px;
    padding: 24px 22px 22px;
  }

  .fc-site-row__rail {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .fc-study-shell {
    width: 100%;
    position: static;
    height: var(--fc-study-shell-height, calc(100svh - 26px));
    min-height: var(--fc-study-shell-height, calc(100svh - 26px));
  }

  .fc-study-header {
    flex-wrap: wrap;
  }

  .fc-study-header__left,
  .fc-study-header__right {
    width: 100%;
  }

  .fc-study-header__right {
    justify-content: space-between;
  }

  .fc-study-body {
    position: static;
    height: auto;
    min-height: 0;
    padding: 0 0 8px;
  }
}

@media (max-width: 760px) {
  .fc-app {
    padding: 10px;
  }

  .fc-selection-header {
    padding-bottom: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .fc-main {
    margin-top: 16px;
  }

  .fc-feature-stack {
    gap: 14px;
    padding: 18px 16px;
    border-radius: 24px 16px 24px 16px;
  }

  .fc-feature-row,
  .fc-site-row,
  .fc-focus-row,
  .fc-page-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .fc-page-row {
    gap: 18px;
    padding: 20px 16px 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      'headline'
      'rail';
  }

  .fc-selection-header__right--website,
  .fc-selection-header__right--page,
  .fc-selection-toolbar__stats,
  .fc-site-row__rail,
  .fc-site-row__stats,
  .fc-page-row__actions,
  .fc-page-row__modes,
  .fc-feature-row__actions {
    width: 100%;
  }

  .fc-page-row__actions {
    justify-items: stretch;
    min-width: 0;
  }

  .fc-selection-header__right--website {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .fc-selection-header__right--page,
  .fc-page-hero__meta {
    align-items: stretch;
    flex-direction: column;
  }

  .fc-feature-row__actions,
  .fc-site-row__rail {
    justify-content: flex-start;
  }

  .fc-site-row__rail .fc-auth-btn {
    min-width: 0;
  }

  .fc-selection-rack {
    grid-template-columns: 1fr;
  }

  .fc-selection-rack__stats,
  .fc-grid,
  .fc-page-list {
    grid-template-columns: 1fr;
  }

  .fc-complete-stats {
    grid-template-columns: 1fr;
  }

  .fc-selection-rack__stats {
    gap: 10px;
  }

  .fc-search,
  .fc-search__input {
    width: 100%;
    min-width: 0;
  }

  .fc-search--page {
    flex: none;
    min-width: 0;
  }

  .fc-page-progress__head {
    align-items: start;
    flex-direction: column;
  }

  .fc-site-row__rail {
    grid-template-columns: 1fr;
  }

  .fc-study-view,
  .fc-center-stage,
  .fc-complete-view {
    min-height: calc(100svh - 20px);
  }

  .fc-study-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100svh - 20px);
    min-height: calc(100svh - 20px);
  }

  .fc-study-header {
    gap: 8px;
    padding-bottom: 8px;
  }

  .fc-study-title {
    font-size: 0.76rem;
  }

  .fc-study-header__right {
    justify-content: flex-end;
  }

  .fc-study-meta {
    width: auto;
    max-width: 100%;
    gap: 6px;
    justify-content: flex-end;
  }

  .fc-select,
  .fc-pill {
    min-height: 30px;
    border-radius: 15px;
  }

  .fc-select {
    width: 112px;
    max-width: 112px;
    min-width: 112px;
    flex: 0 0 112px;
    text-align: right;
    text-align-last: right;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    padding: 0 28px 0 10px;
    background-position: center, right 10px center;
    background-size: auto, 10px 10px;
  }

  .fc-pill {
    flex: 0 0 58px;
    min-width: 58px;
    padding: 0 8px;
    font-size: 0.68rem;
    justify-content: center;
    text-align: center;
  }

  .fc-study-body {
    position: static;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 6px;
  }

  .fc-study-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
  }

  .fc-study-stage {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .fc-study-card-row {
    flex: 1 1 auto;
    min-height: 0;
  }

  .fc-card-shell {
    height: 100%;
    min-height: 360px;
  }

  .fc-card-inner {
    padding: 42px 20px 70px;
  }

  .fc-card-word {
    font-size: clamp(3.4rem, 13vw, 5rem);
  }

  .fc-context-panel {
    width: 100%;
  }

  .fc-context-panel__text {
    font-size: 1.42rem;
    line-height: 1.58;
  }

  .fc-context-panel__translation {
    gap: 10px;
    margin-top: 16px;
  }

  .fc-context-panel__translation-text {
    font-size: 0.96rem;
  }

  .fc-definition-list {
    font-size: 1.08rem;
    line-height: 1.46;
  }

  .fc-action-btn {
    min-height: 50px;
    padding: 0 12px;
  }

  .fc-action-btn__label {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .fc-study-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 980px) {
  .fc-card-utilities {
    right: 10px;
    bottom: 12px;
    flex-direction: column;
    transform: none;
    gap: 5px;
  }

  .fc-study-actions {
    width: 100%;
  }

  .fc-utility-btn {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 460px) {
  .fc-app {
    padding: 10px;
  }

  .fc-feature-stack {
    padding: 16px 14px;
  }

  .fc-selection-toolbar__stats,
  .fc-site-row__stats,
  .fc-page-row__meta,
  .fc-page-row__modes {
    gap: 6px;
  }

  .fc-site-row__signal {
    font-size: 1.04rem;
  }

  .fc-site-row__stats {
    grid-template-columns: 1fr 1fr;
  }

  .fc-page-actions {
    grid-template-columns: 1fr;
  }

  .fc-feature-card__meta {
    align-items: stretch;
  }

  .fc-study-header__left {
    gap: 10px;
  }

  .fc-study-brand {
    font-size: 0.64rem;
    letter-spacing: 0.24em;
  }

  .fc-study-title {
    font-size: 0.76rem;
  }

  .fc-study-header__right {
    flex-wrap: nowrap;
  }

  .fc-study-header__left,
  .fc-study-header__right {
    width: 100%;
  }

  .fc-study-header__right {
    justify-content: flex-end;
  }

  .fc-score {
    justify-content: center;
    min-height: 30px;
    padding: 2px 12px 4px;
  }

  .fc-study-actions {
    grid-template-columns: 1fr;
  }

  .fc-study-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .fc-card-shell {
    height: 100%;
  }

  .fc-card-word {
    font-size: clamp(3.4rem, 14vw, 5.4rem);
  }

  .fc-select {
    width: 104px;
    max-width: 104px;
    min-width: 104px;
    flex-basis: 104px;
  }
}
