* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: #f5f5f5;
  overflow: hidden;
  touch-action: none;
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

#umbrellaCanvas {
  flex: 1;
  max-width: calc(100% - 340px);
  max-height: 100%;
  touch-action: none;
  cursor: grab;
}

#umbrellaCanvas:active {
  cursor: grabbing;
}

.controls {
  width: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.controls-panel {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }
  
  #umbrellaCanvas {
    flex: 1;
    max-width: 100%;
    max-height: 60vh;
  }
  
  .controls {
    width: 100%;
    height: auto;
    max-height: 35vh;
  }
}

.control-group {
  margin-bottom: 20px;
}

.control-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.control-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
}

.control-group input[type="color"] {
  width: 100%;
  height: 44px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.color-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-cell.active {
  border-color: #333;
  transform: scale(1.1);
}

.btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:active {
  background: #555;
}

#panelCountValue {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.view-buttons {
  display: flex;
  gap: 8px;
}

.view-btn {
  flex: 1;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn.active {
  background: #333;
  color: white;
  border-color: #333;
}

.view-btn:active {
  transform: scale(0.95);
}