.gm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.gm-overlay.gm-open {
  display: flex;
}

.gm-modal {
  background: #d2d1cf;
  border-radius: 20px;
  width: 55vw;
  max-width: 900px;
  height: 70vh;
  max-height: 800px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.gm-header h3 {
  font-size: 1.4rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gm-close {
  background: #333333;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.gm-list {
  list-style: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 1.5px solid #adb4ae;
  border-radius: 12px;
  background: #c8c7c4;
}

.gm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #b7b6b3;
  font-size: 1.1rem;
  font-weight: 600;
  color: #22392F;
}

.gm-item:last-child { border-bottom: none; }

.gm-item-delete {
  background: #c6c5c3;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  color: #b02a2a;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  position: relative;
}

.gm-item-delete::after {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: -16px;
  left: -16px;
}

.gm-empty {
  padding: 20px 16px;
  color: #888;
  font-size: 1rem;
  text-align: center;
}

.gm-input {
  flex-shrink: 0;
  font-size: 1.2rem;
  padding: 12px 16px;
  border: 2px solid #2C4A6E;
  border-radius: 10px;
  outline: none;
  color: #22392F;
  background: #c8c7c4;
}

.gm-keyboard {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gm-kb-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.gm-key {
  flex: 1;
  background: #c6c5c3;
  border: 1px solid #b1b0ad;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  color: #1a1a1a;
}

.gm-key:active {
  background: #b6b5b2;
}

.gm-key-wide {
  flex: 1.5;
}

.gm-key-space {
  flex: 4;
}

.gm-key-enter {
  flex: 2;
  background: #2C4A6E;
  color: #fff;
}