.ff-root {
    max-width: 1000px;
    margin: 0 auto;
  }

  .ff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .ff-col-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .ff-col-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .ff-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
  }

  .theme-dark .ff-card {
    background: #0f172a;
    border-color: #1e293b;
  }

  .ff-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
  }

  .theme-dark .ff-card-title {
    color: #fff;
  }

  .ff-card-title svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .ff-card-title svg:first-child {
    color: #6366f1;
  }

  .ff-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .ff-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .ff-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
  }

  .ff-input {
    width: 100%;
    background: #f8fafc;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    transition: box-shadow 0.15s ease;
    box-sizing: border-box;
  }

  .ff-input:focus {
    box-shadow: 0 0 0 2px #6366f1;
  }

  .theme-dark .ff-input {
    background: #1e293b;
    color: #fff;
  }

  .ff-input::-webkit-outer-spin-button,
  .ff-input::-webkit-inner-spin-button {
    appearance: none;
  }

  .ff-input[type="number"] {
    appearance: textfield;
  }

  .ff-hint {
    font-size: 0.625rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
  }

  .ff-margin-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
  }

  .theme-dark .ff-margin-row {
    border-color: #1e293b;
  }

  .ff-margin-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .ff-slider {
    width: 100%;
    accent-color: #6366f1;
    cursor: pointer;
  }

  .ff-margin-display {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    min-width: 2.5rem;
    text-align: right;
  }

  .ff-visual-container {
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 2.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
  }

  .theme-dark .ff-visual-container {
    background: #020617;
    border-color: #1e293b;
  }

  .ff-perspective {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    perspective: 1000px;
  }

  .ff-visual {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(12deg) rotateY(-12deg);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ff-space-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    border: 2px dashed #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition:
      width 0.5s ease,
      height 0.5s ease;
    width: 200px;
    height: 200px;
  }

  .theme-dark .ff-space-box {
    border-color: #334155;
  }

  .ff-obj-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: rgba(99, 102, 241, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.8);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition:
      width 0.5s ease,
      height 0.5s ease,
      background 0.5s ease,
      border-color 0.5s ease;
    width: 160px;
    height: 80px;
  }

  .ff-viz-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
  }

  .ff-viz-label svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .ff-verdict {
    background: #f1f5f9;
    border-left: 8px solid #94a3b8;
    border-radius: 1.5rem;
    padding: 2rem;
    color: #1e293b;
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .theme-dark .ff-verdict {
    background: #1e293b;
    border-color: #475569;
    color: #fff;
  }

  .ff-verdict[data-ff-fits="yes"] {
    background: #10b981;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  }

  .ff-verdict[data-ff-fits="no"] {
    background: #f43f5e;
    border-color: #e11d48;
    color: #fff;
    box-shadow: 0 8px 32px rgba(244, 63, 94, 0.3);
  }

  .ff-verdict-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .ff-verdict-icon-wrap {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
  }

  .ff-verdict-icon-wrap svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .ff-verdict-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 0.25rem;
    line-height: 1.2;
  }

  .ff-verdict-reason {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
  }

  .ff-diag-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .ff-diag-val {
    font-weight: 700;
  }

  .ff-hidden {
    display: none;
  }

  @media (max-width: 768px) {
    .ff-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }