/* Responsiveness */
@media (max-width: 1024px) {
  .site-header-top {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }
  
  .site-header-top h1 {
    justify-self: center;
  }
  
  .site-header-top .mode-controls {
    justify-self: center;
  }
  
  .grid-view-wrapper, .freq-view-wrapper, .star-view-wrapper {
    flex-direction: column;
  }
  
  .grid-info-panel, .star-info-panel {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .features-sidebar {
    width: 100%;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 80;
  }
  
  body {
    overflow: auto;
  }
  
  .content-area {
    padding: 1rem;
  }
  
  .view-panel {
    padding: 1rem;
  }
  
  .digit-strip-section {
    padding: 0.5rem 1rem;
  }
  
  .digit-strip-layout {
    flex-direction: column;
    padding: 0.75rem;
  }
  
  .digit-strip-totals {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
  }
  
  .digit-stats-equals {
    margin-bottom: 0;
    margin-right: 1rem;
  }
  
  .digit-stats-total-box {
    justify-content: flex-end;
  }
  
  .mode-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .view-modes {
    flex-wrap: wrap;
  }

  .numbers-entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .numbers-entry-meta-grid,
  .numbers-entry-properties {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .digit-val {
    font-size: 1rem;
    padding: 0.3rem 0;
  }
  
  .digit-cell {
    min-width: 20px;
  }
  
  .grid-container {
    max-width: 100%;
  }
  
  .grid-cell {
    font-size: 1rem;
  }
  
  .header-cell {
    font-size: 0.8rem;
  }
}

